Old 4th June 2005, 06:36   #1
sennah18
Guest
 
Posts: n/a
NSIS descends to any directories

Hello,

while compiling my installer does a very strange thing:

He returns to "." - thats right.
Then he descends into a directory that is in the "."-directory. But this this directory isn't respond anywhere in the NSIS-Script.

Can you help me???


Best regards
Johannes
  Reply With Quote
Old 4th June 2005, 10:33   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
If you use /r it will descend into every subdirectory.

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 4th June 2005, 11:45   #3
sennah18
Guest
 
Posts: n/a
Yes, i know that with /r.

I will now post you a snippet out of my code:

File /r conf
File /r Treiber
File /r Manual
File "FPMgr Standalone\install_Mgr.exe"

SetOutPath "C:\"
File /r LMSBio



SetOutPath $SYSDIR
File "dlls\bdfis.dll"
File "dlls\Bergdata-Engine.dll"
  Reply With Quote
Old 4th June 2005, 11:49   #4
sennah18
Guest
 
Posts: n/a
Yes, i know that with /r.

I will now post you a snippet out of my code:

File /r conf
File /r Treiber
File /r Manual
File "FPMgr Standalone\install_Mgr.exe"

SetOutPath "C:\"
File /r LMSBio

*

SetOutPath $SYSDIR
File "dlls\bdfis.dll"
File "dlls\Bergdata-Engine.dll"

---

The problem is at the *. The LMSBio-folder is copied ok. But between "File /r LMSBio" and "SetOutPath $SYSDIR" the installer copies three other directories and I don't know why.

Interesting is also, that these happened at one of two PCs - The same Files.

Have you any statement?


Best regards
Johannes
  Reply With Quote
Old 4th June 2005, 11:51   #5
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Use for each directory:
code:
SetOutPath $INSTDIR\conf
File /r conf\*.*

In your script, NSIS will look for every file and folder named "conf" under the current directory.

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
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