obtaining the dir where the install file is located

Got a problem you cannot solve? Try here.
ross
Posts: 9
Joined: Tue Feb 13, 2007 4:35 am

obtaining the dir where the install file is located

Postby ross » Tue Feb 13, 2007 4:40 am

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

Gizm0
Posts: 339
Joined: Wed Nov 09, 2005 8:47 pm

Postby Gizm0 » Tue Feb 13, 2007 9:43 am

It's TARGETDIR
Panagiotis Kefalidis
Software Design Team Lead
\"In order to succeed, your desire for success should be greater than your fear of failure\"
InstallAware Software Corporation

ross
Posts: 9
Joined: Tue Feb 13, 2007 4:35 am

obtaining the dir where the install file is located

Postby ross » Tue Feb 13, 2007 2:34 pm

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

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

Postby MichaelNesmith » Tue Feb 13, 2007 10:52 pm

$SFXPATH$ or $EXEDIR$.

$SFXPATH$ should be used with web and compressed builds.
$EXEDIR$ with uncompressed builds.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

ross
Posts: 9
Joined: Tue Feb 13, 2007 4:35 am

obtaining the dir where the install file is located

Postby ross » Tue Feb 13, 2007 11:56 pm

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

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

Postby MichaelNesmith » Wed Feb 14, 2007 1:23 am

You can set the public CMDLINE property of the GP MSI.
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

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

ross
Posts: 9
Joined: Tue Feb 13, 2007 4:35 am

obtaining the dir where the install file is located

Postby ross » Fri Feb 16, 2007 2:25 am

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

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

Postby MichaelNesmith » Fri Feb 16, 2007 7:44 am

I agree. What sort of a tutorial do you think, for example, we could create based on your support experiences?
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: No registered users and 51 guests