install to $TargetDir$

Got a problem you cannot solve? Try here.
Post Reply
GW44
Posts: 37
Joined: Wed Feb 22, 2006 3:13 pm

install to $TargetDir$

Post by GW44 »

I've defined the $TargetDir$ as C:\\XYZ\\DATA

Look at the code view and shows selected files being installed as such.

When I run the setpupscript the dialog still shows:

C:\\Program files..... etc.

What am I missing?

thks GW44
GW44
Posts: 37
Joined: Wed Feb 22, 2006 3:13 pm

Post by GW44 »

Some more info.

In the View menu, also specified Target Folder as $TargetDir$

GW44
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

You may hide the destination directory dialog, if you don't wish for end-users to modify the default folder.

The destination directory browser control also has some logic which auto-selects likely nodes on the directory tree. This might be confusing you. However the correct path should be shown in the text field.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
GW44
Posts: 37
Joined: Wed Feb 22, 2006 3:13 pm

Post by GW44 »

Yes I know I can hide the destination info but we must give the user the option of installing other than the default we specify (which most users, but not all accept).

So what does one have to do to show the default dir we specified for the $TARGETDIR$

When running the script is still comes up with default of \\progam files etc.

Guaranteed that's what the user will use, not what we want. We want the specified dir to show as default.

Currently the user is not presented with the target folder we specified.



Presume the initialize globals are the problem as shown. What needs to change?

Does one of these need to point to $TARGETDIR$ ???

// Initialize Setup Globals
Get Folder Location System->Program Files Directory into PROGRAMFILES
Get Common Folder Location System->Program Files Directory into COMMONFILES
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Hi!

Just be sure you are calling Set Variable TARGETDIR to <desired path> in the setup globals section. Also check the remainder of the script which may reset TARGETDIR to the predefined value - make sure only your desired Set Variable command remains. The script does what you tell it to.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply