×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

changing Default Directory(dynamic Destination folder)

changing Default Directory(dynamic Destination folder)

changing Default Directory(dynamic Destination folder)

(OP)
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.

RE: changing Default Directory(dynamic Destination folder)

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...

RE: changing Default Directory(dynamic Destination folder)

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

RE: changing Default Directory(dynamic Destination folder)

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.-

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close