Archive: ExecWait doesn't work with relative path?!


ExecWait doesn't work with relative path?!
Hy!

I've got the following problem:

I have a programm witch requires .Net-Framework. So if the user has no Framework installed, the setup of my program installs it automatically. I'm delivering my program on cd including .Net setup.

The Path of the installer:
\software\products\lbw\app\setup.exe

From this path I want to go to the setup of .Net-Framework witch is located in this folder.

\software\common\Frameworkredist\dotnetfx.exe

So i have to go 3 folders up and from there 2 folders down.
I tried to solve the problem like this:

ExecWait '".\..\..\..\common\Frameworkredist\dotnetfx.exe" /q /c:"install /q"'

But it seems like the relative path doesn't work with "ExecWait".


That path is relative to the working directory which changes according to Explorer and NSIS's SetOutPath. If you want it to be relative to the directory where the installer is located, use $EXEDIR\..\..


Thank you very much!!

Now it works!