Page 1 of 1

install to $TargetDir$

Posted: Thu Feb 23, 2006 12:15 am
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

Posted: Thu Feb 23, 2006 12:24 am
by GW44
Some more info.

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

GW44

Posted: Thu Feb 23, 2006 8:21 am
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.

Posted: Thu Feb 23, 2006 1:12 pm
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

Posted: Thu Feb 23, 2006 5:11 pm
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.