The propert ROOTDIR allows you to set the disk drive name , but to dynamically set the installdir will probably have to be written as a piece of VB Script that happens first as a custom action...
Hi
I am using Wise for Windows Installer 3.5, Windows 2000
I am trying to read the value from the registry and set my installtion path based on that value.
Is it possible to do this without using any other scripting stuff and only using Wise?
Thanks
You can use the system search to read a registry value. Simply give it a property to place the data in, give it a key to search for, and tell it the format you want returned. You can then create a custom action:
I'll assume that INSTALLDIR has some default value
If MyReturnedPath (this is true if any non-empty value so it read something from the registry)
Set Directory INSTALLDIR (or whatever) to [MyReturnedPath]
End
Place this action after CostFinalize and before InstallValidate.
HtH,
Rob
robschultz@yahoo.com
-Focus on the solution to the problem, not the obstacles in the way.-
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.