Old 2nd April 2007, 15:54   #1
KoenDV
Junior Member
 
Join Date: Apr 2007
Posts: 1
File access at compile time

Is it possible to have file access at compile time? How would I do this? I'm trying to make an installer that installs a selection of files from the filesystem based on information in a txt/ini file. The compiler script would be called with an ordernumber as argument. Then read a file that looks like this:

[ordernumbre1]
c:/file1
c:/file2

[ordernumbre2]
c:/file1
c:/file3

And include the matching files in the installer. So i would get an order specific installer.

can anybody help me?
thx
Koen
KoenDV is offline   Reply With Quote
Old 2nd April 2007, 17:24   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
How about creating a header like,
!ifdef ordernumber1
file "c:\dir1\file1"
file "c:\dir1\file2"
!endif

!ifdef ordernumber2
file "c:\dir2\file1"
file "c:\dir2\file2"
!endif

and call the compiler with /D.

You may even automate the creation of the header, see below,

http://forums.winamp.com/showthread....hreadid=265319

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine 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