install to $TargetDir$

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

install to $TargetDir$

Postby GW44 » Thu Feb 23, 2006 12:15 am

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

Postby GW44 » Thu Feb 23, 2006 12:24 am

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:

Postby MichaelNesmith » Thu Feb 23, 2006 8:21 am

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
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

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

Postby GW44 » Thu Feb 23, 2006 1:12 pm

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:

Postby MichaelNesmith » Thu Feb 23, 2006 5:11 pm

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

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 233 guests