Exforsys.com
 
Home Tutorials VB.NET 2005
 

Customizing Setup Project in Visual Studio.NET 2005

 

Customizing Setup Project in Visual Studio.NET 2005

Page 1 of 2

VIB.NET 2005 Tutorials : Customizing a Setup Project

Deployment projects in Visual Studio.NET allow the specification of where and how the application will be deployed on the user system. Each of the setup editors contain a file system configuration editor. The setup can sometimes include Registry configuration options and options to check special conditions. This ability to customize the installer’s user interface is a handy tool. The number of editors which can be accessed through the view menu are:



File System Editor—Adds files and shortcuts, such as Start menu items, to the installation package
Registry Editor—Manipulate Registry entries on the target computer
File Types Editor—Associates file extensions with applications; useful in cases when your application uses custom file extensions and you want to associate a specific application with that file extension
User Interface Editor—Configures the dialogs that are shown during the installation
Custom Actions Editor—Starts external programs during installs and uninstalls
Launch Conditions Editor—Specifies the requirements for your application to be installed on the target computer


File System Editor


This editor is automatically displayed for your VS.NET’s document Window when the Setup Project is created. Though, this editor and the other editors available via the View-Editor menu option in the VS.NET IDE, the File System Editor is used to manage all the file system aspects of the installation including:


  • Creating folders on the user’s machine
  • Adding files to the folders defined
  • Creating shortcuts

Basically, this is the editor is used to define what files need to installed and where they are installed on the use’s machine.


The File System split into two panes in the Document Window. The left hand pane shows a list of folders that have been created automatically for the project. When a folder is selected in the left pane, two things happen: firstly, the right-hand of the editor displays a list of the files that are to installed into the selected folder, and secondly, the properties windows will change to show the properties of the currently selected folder.


Adding Items to a folder


To add item that needs to be installed to a folder, right-click the folder in the left-hand pane and choose Add from the popup menu. Four options are available:


  • Project output
  • File
  • Assembly
  • Folder

The fourth option (Folder) allows the addition of a subfolder to the currently selected folder. This subfolder becomes a standard folder that can be used to add files. If any .NET component or executable is added, the dependencies of these components will also be added to the installation automatically.



Adding Special Folders


When we create a new deployment project, a set of standard folders will be created for us (listed in the desktop application section). if the folders created do not match our requirements, we can also use the File System to add special folders.


To add a special folder, right-click any where in the left-hand pane (other than on a folder) and you will be presented with a popup menu that has one item: AddSpecialFolder. Alternatively, it’s also available through the Action -> Add Special Folder menu option. This menu item expands to show you a list of folders that you can add to the installation (folder already added to the project will be grayed out).




(Sample screenshot from older version)


Next Page: Customizing Setup Project in Visual Studio.NET 2005 - Page 2


Read Next: Deploying Windows Applications In Visual Studio.NET 2005



 

 

Comments


shobhit rai said:

  i got a problem when i make the setup of my visual studio 2005 project it contains the source code as well
plz help me
thanks
March 14, 2007, 7:56 am

Sandeepan Kundu said:

  when making the setup project .. i assume you are selecting the content files also... which is not required in your case... i suggest lease select only the primary output... this should solve your issue...
any difficulty cntact me @ sandeepan.kundu@gmail.com
April 19, 2007, 7:07 am

Jats said:

  I would like to make my own customized setp User inteface, i mean i want to change the look and feel of the User interface.

Is it possible please help...
May 5, 2008, 2:04 am

Awais Malik said:

  Yes that is possible to an extent. If you right on your setup project and then goto view->user interface it will present you with all forms that are displayed during the installation process. You can even add your own if you want or customize the ones already available to you.
May 7, 2008, 6:22 pm

Ramandeep said:

  I want to add folders & subfolders recursively in application folder. How i can give options like custom, full & typical installation
April 18, 2009, 7:31 am

Abbid said:

  How to make an action based on your customized setup screen? e.g. if we give 2 options like Network installation and Desktop installation to the user, how to to proceed if the user selects any choice? Just require a brief idea for that.
June 11, 2009, 12:53 am

ganesh shankar dixit said:

  Sir,i want custom url option in setup,it is fixed at installation time of setup
June 11, 2009, 5:17 am

Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    

Sponsored Links

 

Subscribe via RSS


Get Daily Updates via Subscribe to Exforsys Free Training via email


Get Latest Free Training Updates delivered directly to your Inbox...

Enter your email address:


 

Subscribe to Exforsys Free Training via RSS
 

 
Partners -  Privacy and Legal Policy -  Site News -  Contact   Sitemap  

Copyright © 2000 - 2009 exforsys.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape