Page 1 of 1

obtaining the dir where the install file is located

Posted: Tue Feb 13, 2007 4:40 am
by ross
hello

my users can put the install file anywhere on their machine
eg d:\\ or c:\\aa

I want to put an INI file in the same directory that forces values into certain dialog boxes

How can I determine the path for the ACTUAL install exe?

I have tried DATADIR, EXEDIR, MSIFILE but they display temporary files

regards

ross

Posted: Tue Feb 13, 2007 9:43 am
by Gizm0
It's TARGETDIR

obtaining the dir where the install file is located

Posted: Tue Feb 13, 2007 2:34 pm
by ross
hello

I dont think I was clear enough in my original question

I have created a single install exe (setup.exe). One of the aspects of the install is it reads an INI file that the customer can create. The values in the INI file load variables into the setup.

The user would place the setup.exe and the INI file in the same directory and then run setup.exe to commence the install process. The main reason I want this functionality is to enable silent install while also loading variables.

How can I determine the directory name in the instyall script so it can load the INI file?

regards

ross

Posted: Tue Feb 13, 2007 10:52 pm
by MichaelNesmith
$SFXPATH$ or $EXEDIR$.

$SFXPATH$ should be used with web and compressed builds.
$EXEDIR$ with uncompressed builds.

obtaining the dir where the install file is located

Posted: Tue Feb 13, 2007 11:56 pm
by ross
hello

I have done some more work on this and discovered the variable $SFXPATH$

This works perfect for a single file install

Now I am adding the Group Policy Wizard, which required a rethink. I am now using the cmdline.

In my project I have
if Variable $CMDLINE$ Contains SERVER
Set Variable SERVER_SETTINGS_FILE_DIR to $SERVER$
else
Set Variable SERVER_SETTINGS_FILE_DIR to $SFXPATH$
end

If I set the properties of a shortcut to the single file exe to
E:\\Release\\Single\\setup.exe SERVER="E:\\"
This gets correctly displayed in the setup

If I set the properties of a shortcut to the msi created from group policy wizard, the command line data does not transfer accross

Also to create a quiet install, I set /s on the setup.exe, but need to set /q on the msi

regards

ross

Posted: Wed Feb 14, 2007 1:23 am
by MichaelNesmith
You can set the public CMDLINE property of the GP MSI.

obtaining the dir where the install file is located

Posted: Fri Feb 16, 2007 2:25 am
by ross
Finally got it!!!!

In a shortcut to the exe uncompressed file use:
E:\\Release\\Single\\setup.exe SERVER="E:\\"

In a shortcut to the msi file use:
E:\\Release\\Single\\setup.msi CMDLINE="SERVER=E:\\"

In my project I have
if Variable $CMDLINE$ Contains SERVER
Set Variable SERVER_SETTINGS_FILE_DIR to $SERVER$
else
Set Variable SERVER_SETTINGS_FILE_DIR to $SFXPATH$
end

Being a producer of software products sold to the general public, I understand the issues (and costs) of customer support.

In the last 2 weeks in developing my installation I have found installware to be a great product.

However I respectfully suggest that more tutorials and sample scripts be produced for us 'beginers'

regards

ross

Posted: Fri Feb 16, 2007 7:44 am
by MichaelNesmith
I agree. What sort of a tutorial do you think, for example, we could create based on your support experiences?