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
obtaining the dir where the install file is located
obtaining the dir where the install file is located
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
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
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
$SFXPATH$ or $EXEDIR$.
$SFXPATH$ should be used with web and compressed builds.
$EXEDIR$ with uncompressed builds.
$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/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
obtaining the dir where the install file is located
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
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
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
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/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
obtaining the dir where the install file is located
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
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
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
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/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Who is online
Users browsing this forum: No registered users and 51 guests