Library tutorials & articles

Visual Studio Installer

Customizing the Setup

Next stop is the User Interface item. This is where you can specify the dialogs that are displayed in the setup process:

You can change some properties of each dialog by selecting it and editing the Properties window (usually below the Project Explorer). You can also add some extra dialogs such as a Customer Information or Readme page by right clicking and selecting Add Dialog. We won't make any changes in this case.

In the Registry section, you are presented with a similar interface to RegEdit, where you can add registry keys that you want added. For a VB program, you would not usually need to do this, as GetSetting and SaveSetting will create the keys for you when your program is first run.

The final section is Associations. This is where you can create associations with certain file types (ie open .doc with Microsoft Word). If you wanted to specify that any file with a .fdf extension opens with your program, right click and select Add Document Type. Then, select the item named 'New Document Type', and in the properties window set its Name, Icon and Description (ie Word Document) to whatever you want. Next, select the item item 'New Extension', and set its properties... Set Name to the extension you want to associate (ie .fdf), set the Command property to a file in the installation, and the verb to the default verb (ie Open). For more information on file assocations, click here.

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...

We'd love to hear what you think! Submit ideas or give us feedback