Monday, March 05, 2007 - Posts

Creating a Deployment Package in VS.Net 2003

I'm sure, many of you use 'Click Once Deployment' feature of VS.Net 2005. However, it's not surprising that some projects still require msi files to be created using the traditional 'Setup and Deployment'. So here's how:

  1. Add a Deployment project to the existing project. Make sure to specify the correct folder in the location field. i.e. the folder in which the deployment project is being added. If not sure, click the 'Browse' button and pick the folder.
  2. Set the name as the project name + setup. i.e. MyProjectSetup
  3. Right click on the Deployment Project node and View - File System.
  4. Right click on the Application Folder, Add, Project Output. Select the project name from the Project drop down window.
  5. Highlight the Primary Output, select 'Release.Net' from the configuration and click OK. (This will build and add all the assemblies)
  6. Right click on the Deployment Project node and click 'Properties'.
  7. Click 'Configuration Manager'.
  8. Select 'Release' from Active Solution Configuration drop down window. Check the SetupProject and hit Close.
  9. Highlight 'Application Folder' under the File System on Targe Machine and view its properties or simply press F4 key.
  10. Change the following properties: Always Create - True; Default Location: C:\MyProjectFolder\Programs\MyProjectName\
  11. Build the Setup Project.
  12. Make sure to change to Release mode prior to building the solution.
  13. You are done.

Cheers,

Obi Oberoi