hi,
I tried but did not find a way to know from which directory the setup (generated with IA) is executed on the client computer.
I tried DATADIR, EXEDIR, EXEFILE, ROOTDIR but the results point to temporary directory of the user
...documents and settings\\my user\\...\\Temp
But I run my setup.exe from D:So is there any variable that can give me D:\\ ? The directory from which the setup on the client machine is ran.
I absolutely need this info for our customer installation.
Thank you
Target System Folder finding
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
I think you want to use SFXPATH...also, in the help index, type "pre-defined variables" to see a full list of each pre-defined setup variable and their values.
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/
bendrouet wrote:Thank you for the response
I tried to use the EXEPATH variable that you indicate but I did not find a variable called EXEPATH in IA
What do you mean by EXEPATH variable ?
How to obtain it and use its value ?
Thank you
Sorry, I meant EXEDIR (should never write posts and emails at the same time...)
cu
Markus
Markus Diettrich
InstallAware MVP
If it can't be done with InstallAWARE then you are not using Windows
InstallAware MVP
If it can't be done with InstallAWARE then you are not using Windows
-
- Posts: 5
- Joined: Thu Aug 16, 2007 4:14 pm
problem still exists
Just to let you know i've encountered that problem.
It used to work fine about a week ago; but this simple test of displaying all the variables in a newly created sample project yields the same results as above.
Steps:
- Create a new project
- Type: Single or Compressed
- Paste the following MessageBox code at the beginning:
~InstallAware Clipboard Data~
~MessageBox~
~{0FA9E976-FBB6-4150-82C6-A730A2100FDB}~
~check app requi~
~Filename: $EXEFILE$$NEWLINE$Curdir: $EXEDIR$$NEWLINE$MSIFILE: $MSIFILE$$NEWLINE$ROOTDIR: $ROOTDIR$$NEWLINE$SFXFILE: $SFXFILE$$NEWLINE$SFXPATH: $SFXPATH$$NEWLINE$~
~2~
~1~
~~
- build the test.
Run the sample executable and you'll notice it displays the temp folder.
IF you use a filename that is longer than 8 characters, it will get truncacted to a 8 character limit with a delta at the end (~).
We need the full long file name support.
If you rename the sample application, it still references the original filename.
I had tested this earlier with the above code and it worked as expected. Rename setup app, and it will display the renamed name; not the original.
Any help or suggestions is greatly appreciated as i'm at a loss to why this is happening.
I'm assuming the MSI engine in windows has something to do with it - but can't find anything to go on.
Help?!
It used to work fine about a week ago; but this simple test of displaying all the variables in a newly created sample project yields the same results as above.
Steps:
- Create a new project
- Type: Single or Compressed
- Paste the following MessageBox code at the beginning:
~InstallAware Clipboard Data~
~MessageBox~
~{0FA9E976-FBB6-4150-82C6-A730A2100FDB}~
~check app requi~
~Filename: $EXEFILE$$NEWLINE$Curdir: $EXEDIR$$NEWLINE$MSIFILE: $MSIFILE$$NEWLINE$ROOTDIR: $ROOTDIR$$NEWLINE$SFXFILE: $SFXFILE$$NEWLINE$SFXPATH: $SFXPATH$$NEWLINE$~
~2~
~1~
~~
- build the test.
Run the sample executable and you'll notice it displays the temp folder.
IF you use a filename that is longer than 8 characters, it will get truncacted to a 8 character limit with a delta at the end (~).
We need the full long file name support.
If you rename the sample application, it still references the original filename.
I had tested this earlier with the above code and it worked as expected. Rename setup app, and it will display the renamed name; not the original.
Any help or suggestions is greatly appreciated as i'm at a loss to why this is happening.
I'm assuming the MSI engine in windows has something to do with it - but can't find anything to go on.
Help?!
setup file's folder location
I'm having the same issue getting the original setup file's folder, prior to it being copied to the temp folder. I have some specific files that may or may not be located on the CD-ROM in the same folder as the Setup.exe. If they exist, I need to copy the files to the $TARGETDIR$. However, the $EXEDIR$ pre-defined variable returns the temp Setup folder, not the folder on the CD-ROM.
Has anyone figured out how to get the staring folder of the Setup.exe file, in my case this would typically be on the CD-ROM.
Has anyone figured out how to get the staring folder of the Setup.exe file, in my case this would typically be on the CD-ROM.
-
- Posts: 149
- Joined: Fri Oct 21, 2005 8:42 am
- Location: UK
Who is online
Users browsing this forum: No registered users and 105 guests