How do I install an user specific file?AnswerSometimes an installation package may need to install a file which is specific to each user. For example, this file can be a license file which is generated automatically when the user downloads the installation package or it can be distributed with the MSI. Since Windows Installer handles only the files inside the MSI package and the external file can be changed at any time, the user specific file must not be included in the package. In this case, the file will be placed next to the MSI (or EXE) installation package and it will be accessed by using the SourceDir (or SETUPEXEDIR) property. In order to install the external file on the target machine, you can follow these steps:
This file operation will copy the external file into the installation folder. It doesn't matter what this file contains (it can be modified anytime) as long as it has the name used by the file operation. Since this file is not inside the MSI package, an uninstall will not remove it automatically. If you want to remove this file when the package is uninstalled, you can use one of the approaches explained in the Remove a file or a folder during installation how-to. | |
|
| Privacy Policy | Windows Installer | Search Engine Ranking | Link Analyzer | ||
| © 2002 - 2008 Caphyon Ltd. Trademarks belong to their respective owners. All rights reserved. | ||