The easiest way to install 100s of files in a Visual Studio installation project

I have a standard C # application that acts as a GUI for the "R" statistics engine. An "R" consists of approximately 600 files in approximately 50 different folders and can be "installed" on the machine through xcopy deployment.

I would like to pack both the R engine and my C # gui into one setup.exe file so that the user does not need to install R first and then my C # application.

I know that I can create an installation project and then add the R files one at a time, but adding all 600 files will be very tedious!

Is there an easier way to do what I want? Can I add a separate R folder and automatically add subfolders and files to save me by adding them one at a time? Or maybe follow the unpacking procedure in my configuration project, which will unzip the R engine at a time?

+3
source share
5 answers

I could not process the project file, so in the end I had to zip up all the files that I wanted to deploy, add the zip file to the application and create my own installer class to unzip them (using CSharp ziplib)

+1
source

Windows vdproj. .

. SVN , , ! PowerShell,

get-childitem . -include _svn -force -recurse | foreach ($_) {remove-item -recurse -force $_.fullname}

Windows, .

+3

, .

600 , " " , :

  • >
  • , ,
  • " "
  • .

, , "" > " " , .

, , .

+2

. , . , --.

+1

One thing you can try is to add R files as content in a C # project - then the installation project can just copy them for you (make sure you set up the installation file to copy the content files from your project, not just the primary output )

You can either add the R folders to the project manually, or configure the script to modify the .csproj file (it's just an XML file). Content elements are represented by these nodes:

<Content Include="myfile" /> 
+1
source

Source: https://habr.com/ru/post/1702527/


All Articles