Old 19th October 2007, 08:58   #1
maitai
Junior Member
 
Join Date: Oct 2007
Posts: 2
Unhappy 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".
maitai is offline   Reply With Quote
Old 19th October 2007, 11:47   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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\..\..

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 19th October 2007, 13:28   #3
maitai
Junior Member
 
Join Date: Oct 2007
Posts: 2
Talking

Thank you very much!!

Now it works!
maitai is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump