I am using InstallAware to make a build and also to support web updates. In the installation process, for the first time, user is allowed to choose the destination folder. The system also supplies the default value.
Everything is working fine until a user chooses his custom folder instead of default one. On the update mode, the setup installs application in the default target directory instead of the user-chosen one. As documentation from InstallAware, the update mode will first uninstall the application and then install it again. Because I run the update in silent mode, the installer will get the default value.
How can I make it install in the original destination?
Most setup authoring tools include a mechanism which retrieves the original installation path and uses it during an upgrade. I guess InstallAware doesn't have it, so you will have to make it yourself:
Please note that only win32 DLL, VBScript and WiX Toolset custom actions can set installer properties.