Strange behavior of ROOTDIR and EXEDIR
Posted: Fri Jun 22, 2012 3:21 am
EDIT:
Found the solution.
In my case (compressed single file installation) "SFXPATH" contains the path of the executable which initialized the installation.
But still the question: Why do the other variables contain different values?
Hey all,
I've got a question related to the predefined variables "ROOTDIR" and "EXEDIR":
The IA help file includes the following description of both variables: "The folder containing the setup executable itself."
Means they'll hold the Path, were the user started the installation from. Am I right?
Example:
MyInstallation.exe is in the folder C:\MyProgramsSo both variables should contain "C:\MyPrograms\". Am I right?
Now i got the following strange "error":
Now have a look at the attachment of this post.
1. I create a debug build of my installation. I've added a textbox at the beginning of the installation which contains the both variables.
2. i start the installation via "debug". You can see the values of the variables in the first messagebox in my screenshot.
3. i'll start the installation via "Start" (the green arrow). You can see the values of the variables in the second messagebox in my screenshot.
4. I'll create a compressed release build of my installation and start it. You can see the values of the variables in the third messagebox in my screenshot.
Could someone explain my why they hold 3 different paths?
Solved: Final question: How can i retrieve the Path to my executable file which was started by the user?
Thanks in advance!
Greetings
Feyh
Found the solution.
In my case (compressed single file installation) "SFXPATH" contains the path of the executable which initialized the installation.
But still the question: Why do the other variables contain different values?
Hey all,
I've got a question related to the predefined variables "ROOTDIR" and "EXEDIR":
The IA help file includes the following description of both variables: "The folder containing the setup executable itself."
Means they'll hold the Path, were the user started the installation from. Am I right?
Example:
MyInstallation.exe is in the folder C:\MyProgramsSo both variables should contain "C:\MyPrograms\". Am I right?
Now i got the following strange "error":
Now have a look at the attachment of this post.
1. I create a debug build of my installation. I've added a textbox at the beginning of the installation which contains the both variables.
2. i start the installation via "debug". You can see the values of the variables in the first messagebox in my screenshot.
3. i'll start the installation via "Start" (the green arrow). You can see the values of the variables in the second messagebox in my screenshot.
4. I'll create a compressed release build of my installation and start it. You can see the values of the variables in the third messagebox in my screenshot.
Could someone explain my why they hold 3 different paths?
Solved: Final question: How can i retrieve the Path to my executable file which was started by the user?
Thanks in advance!
Greetings
Feyh