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.
Related articles
Related discussion
-
Run-time error '91'
by converter2009 (1 replies)
-
VB6 Runtime error 381 subsript out of range Error
by Uncle (2 replies)
-
passing and reading parameters from using Shell
by jigartoliya (0 replies)
-
Convert C++ code to VB6
by mawcot (4 replies)
-
listbox scrollbar
by Dennijr (10 replies)
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...
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 .....
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...
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
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.
This thread is for discussions of Visual Studio Installer.