I need to get a path name from an INI-file. I already know how to read a INI-file and asked a question here. This helped me a lot. Right now I am confused by dynamic paths. I run another program from within the setup, which works perfect. The path to this other program is written within my INI-File, it looks like this:
[setup]
FileOfOtherProgram="C:\Users\desktop\somefile\Other Program.exe"
This works. What I need right now is a dynamic path like this:
FileOfOtherProgram="..\somefile\Other Program.exe"
Which does not work but throws the following error:
Unable to execute file:
..\somefile\Other Program.exe
CreateProcess failed; code 267.
The directory name is invalid.
I read this question and answer on stackoverflow as well, which told me that it should work.
EDIT: I normally run the setup with /SILENT
. When I tried it without this is what I got. On the wizard-page where I normally should enter a path for the Other Program.exe
the path from the INI-file is pre-set. This works fine with normal fully qualified paths. But with the dynamic path I still get the exact string from the INI-file which would be (as sugeestet by S.Spieker) {src}\..\somefile\Other Program.exe
I can't figure out what to change to make this work, can you tell me what I did wrong or tell me that it is impossible?
C:\Users\desktop\someotherfolder\setup.exe
– Viki Stepinfaith