21 July 2008

Create Setup Files in .NET

Most of the time, we, the programmers, want to create the Setup File for our projects. This blog contains the basic steps of creating setup files in .NET. The easy steps are as follows (in MS Visual Studio 2005)-

  1. Create a Setup Project. [File > New > Project]
  2. Add your Project to Setup Project.
    1. Open Solution Explorer window
    2. Right click on Solution Icon
    3. Add Exsiting Project (Here JSAPIObfuscatorProg)
  3. Create Exe File
    1. Right click on Application Folder > Add > Project Output
    2. Select Primary Output of the project
  4. Select Location of Installed Components
    1. Go to Properties of Application Folder
    2. Change Default Location (if you wish)
    3. Make Always Create = true
  5. Add Shortcut to Program Files
    1. Go to properties of User’s Programs Menu
    2. Make Always Create = true
    3. Click on User’s Program Menu
    4. Right Click on the blank white space

    5. Select Create New Shortcut
    6. Choose the target item [Application Folder > Primary Output From…]

  6. Add Shortcut to User’s Desktop
    1. Similar to Program File shortcut
  7. Change Icon of Exe file
    1. Right Click on YOUR PROGRAM [Here JSAPIObfuscatorProg]

    2. Select Properties
    3. Select Icon file

  8. Change Name & Icon of Shortcuts
    1. Go to properties of created shortcut from step 5
    2. Change Name
    3. Select Icon : You might have to add an icon to Application Folder.
      i.
      Right Click on Application Folder ii. Add an *.ico file.
  1. Prerequisites: Sometimes you might need to install .NET framework, Crystal Report etc. before installing your product. In this case, you need to add Pre-requisites. If prerequisites will be installed only if they are not installed in user computer.
    1. Go to Project -> Properties.

    2. Click on Prerequisites button

    3. Select the prerequisites from the list
    4. Choose Download prerequisites from same location as my application option

  2. Build the project. You will get the setup files insides Debug folder.

1 Comment:

Shimul said...

good tutorial
will come handy, can you add some advanced features like how to add some entry into the registry with setup project etc

 

© 2007 t!ps n tr!cks: Create Setup Files in .NET



Template unik dari rohman


---[[ Skip to top ]]---