|
|
#1 |
|
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 |
|
|
|
|
|
#2 |
|
Forum King
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 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|