How do I make the properties in the package keep their values during Maintenance?AnswerMost of the installation packages use custom properties for retrieving information from the user. Since the values of these properties are specific to the install process which sets them, the values set in one process cannot be used in another process (for example the properties set in the first installation don't have the same value during a repair). This can be solved by writing the values of the properties into the registry. Let's suppose that the installation package requires an Username and a Password every time it is launched in order to determine what it must do. For this purpose you can use two Edit Box controls which have the properties USER and PASSWORD Write the values of the properties into the registryThis can be done by following these steps:
This way you will create two registry values (Username and Password) which will contain the values of the properties "USER" and "PASSWORD" (which are set by the end-user). Read the values of the properties from the registryWhen running the installation in Maintenance mode (the "Modify", "Repair" and "Remove" options) the package must have access to the username and password. In order to improve the functionality, this information should be stored in the USER and PASSWORD properties.. For this you can follow these steps:
This way the Username and Password set during the first installation can be used during Maintenance. | |
| Privacy Policy | Windows Installer | Search Engine Ranking | Link Analyzer | ||
| © 2002 - 2008 Caphyon Ltd. Trademarks belong to their respective owners. All rights reserved. | ||