How I can change INSTALLDIR using Custom Action??
Posted 22 June 2004 - 11:44
The utility must install to the same folder that main program installed.
I look for the path in registry using script file.
After this I have the destination path, but I can't change INSTALLDIR!! Where? How? Please help me anybody!
Posted 22 June 2004 - 11:54
Or do a search here: http://helpnet.installshield.com
If a match is found you could assign the result of the search to the INSTALLDIR property. This should be done at least in the execute sequence. You might also want to insert it in the user interface sequence to show the path you want to install to in the custom installation dialog.
Edited by Glytzhkof, 22 June 2004 - 11:56.
Posted 22 June 2004 - 11:55
Posted 23 June 2004 - 08:10
I don't need for AppSearch, because I'm looking for my path in the registry. The problem was to change INSTALLDIR during the installation process.
I created Custom Action 32
NEWINSTALLDIR is Property in Property Manager where I put my new path.
(function MsiSetProperty(hInstall, "NEWINSTALLDIR", sPath) in the script)
And included this CA immediately after CostFinalize
"How do I change the target location for a directory?"
Posted 29 June 2004 - 11:40