Monday, March 4, 2013

Make an installer from within Visual Studio 2010.

Consistent with this, make a console app installer, as follows:

  1. From within Visual Studio 2010, right-click on the solution and pick "Add" followed by "New Project..."
  2. The "Add New Project" dialog box will appear. Navigate to "Visual Studio Installer" (beneath "Setup and Deployment" beneath "Other Project Types" beneath "Installed Templates") and then pick "Setup Project" as the project type.
  3. After you add a project, you will see a "File System" tab in Visual Studio. Right-click on the "Application Folder" folder here and pick first "Add" and then "Project Output..."
  4. In the "Add Project Output Group" dialog box, select all the options available and then click "OK"
  5. Contents will populate to the installer project, some of them may be .dlls which are required to run such as .dlls from supporting projects.
  6. Build the project after making it.

 
 

If you right-click on the the installer project there should be an option for "Install." This should let you publish files to a share on the target server. From there, you will need to open a command prompt, navigate to C:\Windows\Microsoft.NET\Framework\v4.0.30319 and then run installutil.exe like so:

 
 

installutil C:\LocaleOfPublishedFiles\setup.exe

No comments:

Post a Comment