Library tutorials & articles

Visual Studio Installer

Installation Files

We will now add one more file before moving on to customizing the installation. First, create a new word document in your example VB projects folder, convert it to RTF format, and name it readme.rtf. Then, in VSI, click Project|Add File(s) and select the readme file.

Now that the file has been added, double click on the File System item in the Project Explorer. You can control from here where all the files and shortcuts in the project are installed.

Click on the Application Folder to see the files that will be copied to where your application is installed (ie C:Program FilesMyTestApp). You will notice that the example EXE program and the readme.rtf file has already been added here. If you want to add any further files, simply right click and select Add File(s)... Likewise, you can remove a file by right clicking on it and selecting Delete. To specify a default installation folder (for example, C:Program FilesMicrosoft Office), click Project|Properties... (at the bottom of the menu). You can then go to the Installation Folder tab and specify the default location (ie Program Files, Common Files etc), and the name of the folder (ie Microsoft Office). In this project properties dialog, you can also specify a company name, application name etc. When you have finished, click OK, and return to the File System window.

The File System area also allows you to control where shortcuts to your application are created, either on the Desktop or on the users Start Menu. If you click on User's Start Menu you will see that a shortcut has already been added to the example application. You can rename, delete or add another shortcut by right clicking. If you want a folder to be added to the start menu (usually when you have more than one shortcut to be created), simply right click, and choose Add Folder. You can then add the icons to there.

If there is another location where you want files to be installed other than in the Application Folder, you can right click, and select Add Special Folder. You can then choose from a large number of other locations such as the Windows directory and font folder. We won't use any of these for this installation.

Comments

  1. 26 Sep 2008 at 14:20

    Can anybody plz tell how to map the check boxes or radio buttons present in the user interface editor of setup wizard with some link so that only the desired features gets installed .....

  2. 30 Mar 2007 at 11:31
    Trying to download Windows Installer from this page but the link behind the word 'here' doesn't work but I think it's at http://msdn2.microsoft.com/en-us/vstudio/aa718352.aspx



  3. 28 Sep 2005 at 15:48
    I have done a couple of installs to Win98 machines and have found various components missing as is quite common for '98.

    How do I get the setup to check to see if MDAC, JET and DCOM are available on the target machine, install if required and then install the actual application?

    I have found that the Installer has a setting to check for the INSTMSIA.exe file so it must be able to do other checks...
  4. 08 Oct 2004 at 07:25
    Hi,



    I am calling the function MsiInstallMissingComponent from a wrapper to the msi to fix a missing components and I noticed that all the custom actions that are in the UI sequence table are called during the call of this function.



    If I have a custom action that I don't want to be called during the call of the function, is there a flag\property that I can use?



    Thanks



    -- Dafna
  5. 20 Nov 2002 at 05:16


    This article does not contain much information about how to handle registry.
    There is no information whether we can access some runtime informations like the application folder path or not .This might be required for saving the path of the application in registry.

  6. 01 Jan 1999 at 00:00

    This thread is for discussions of Visual Studio Installer.

Leave a comment

Sign in or Join us (it's free).

James Crowley James first started this website when learning Visual Basic back in 1999 whilst studying his GCSEs. The site grew steadily over the years while being run as a hobby - to a regular monthly audience ...

Related discussion

Related podcasts

  • Christian Beauclair

    14 mai 2008 (�mission #0074) ::.Christian Beauclair: Stratégies de migration VB6 vers .NET Nous discutons avec Christian Beauclair des stratégies de migration VB6 vers .NET. Entre autres, nous discutons comment utiliser le "VB 6 Code Advisor" et le "Interop Forms Toolkit" pour ajouter la puiss...

Want to stay in touch with what's going on? Follow us on twitter!