Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 28th March 2009, 22:10   #1
I_Need_help2
Junior Member
 
Join Date: Jun 2008
Posts: 11
Macro to miss sections if no Files exist

Hi
I'm try to build a generic installer and as part of it I have a number of lines that Extract files such as:

File Common\*.*
File Test\*.*

Installer "a" may have files in folder "Test" but instaler "b" may not!

so when compiling the installer for setup "b" the install needs to discard the line:

File Test\*.*

I tried IfFileExist but this doesn't work at the time of building the setup So i assume it would be Macro function of some kind!?
I_Need_help2 is offline   Reply With Quote
Old 28th March 2009, 22:51   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
Use the /nonfatal flag for File.

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 29th March 2009, 10:50   #3
I_Need_help2
Junior Member
 
Join Date: Jun 2008
Posts: 11
that did it thanks
I_Need_help2 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