Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing Default Directory(dynamic Destination folder)

Status
Not open for further replies.

raja1234

Programmer
Apr 9, 2003
5
US
Hi,

I wanted to change my destination folder dynamically for my application.

For example: in Product Details page.

Default Directory : [PATH]

The path value will be pulled from conf_loc.

Path=d:\(will change dynamically)

Can Anyone help...


Regards,
Nallaraja.
 
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

 
To earth2308:

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.-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top