Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 3rd August 2012, 18:16   #1
jai123
Member
 
Join Date: Apr 2011
Posts: 58
Include files using folder above

Hi,

I have a directory as follows.

- Folder1
--- Folder2
----- File1.nsi
--- Folder3
----- File2.nsi
----- File3.nsh
----- x64
----- x86

File3.nsh is used by both, File1.nsi and File3.nsi.

File3.nsh includes several files into my installer. The original implementation was

code:

${If} ${RunningX64}
file x64\*.*
${Else}
file x86\*.*
${EndIf}



This was working properly, but as soon as I tried using File3.nsh from File1.nsi, it did not compile.

I already tried

code:


${If} ${RunningX64}
file ..\Folder3\x64\*.*
${Else}
file ..\Folder3\x86\*.*
${EndIf}



Do you know how it should be written to included the right files as long as they are in the same level.

Thanks,
jai123 is offline   Reply With Quote
Old 3rd August 2012, 21:07   #2
jai123
Member
 
Join Date: Apr 2011
Posts: 58
Hey guys, I just realized that I had a small typo in my code. It should work with my original solution.
jai123 is offline   Reply With Quote
Reply
Go Back   Winamp 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