Hi,
I have a problem with a installaware project and I can't solve it.
My problem is that I have the necessity to getting the current folder path where an user launch an installaware setup.
For example if I have a xxx.exe placed in C:\Dir\Dir1\xxx.exe I want to have a variable that return me C:\Dir\Dir1\.
I tried to search in installaware project but I didn't found any solution.
Some help will be appreciated.
Thanks.
Bye
GETTING STARTUP PATH
Re: GETTING STARTUP PATH
Hi,
Check out these predefined variables:
Check out these predefined variables:
EXEDIR: The folder containing the setup executable itself.
SFXPATH: If an uncompressed directory layout is used, this variable is empty. Otherwise set to the full path of the folder containing the self extracting executable which bootstrapped the installer.
GPOPATH: If an uncompressed directory layout is used, this variable is empty. If setup has not been deployed through Group Policy, this variable is empty. Otherwise set to the full path of the folder containing the Single File MSI that started the current installation.
SETUPPATH: This variable provides a convenient mechanism to detect the outermost folder containing the executable program or setup database that initiated the installation. In other words, this value is set to the value of the variable GPOPATH, or SFXPATH, or EXEDIR in that order of priority - until the first variable containing a non-empty value is found.
Aviv Giladi
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: GETTING STARTUP PATH
Hi,
Thanks very much for your reply.
Finally I found a solution; SFXPATH work fine for me.
Thanks very much.
Bye.
Thanks very much for your reply.
Finally I found a solution; SFXPATH work fine for me.
Thanks very much.
Bye.
Re: GETTING STARTUP PATH
You're welcome!
Aviv Giladi
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

