|
|
#1 |
|
Junior Member
Join Date: Oct 2014
Posts: 1
|
How to Install zero byte version of files in folder?
Hi,
I'm trying to install a folder full of files to a target system, where each file is written as a zero byte file, but using a directory listing on the Build PC at compile time as the list of file names to create on the target. I'm currently doing this by distributing & installing the original files using File '<Path>\*.ext' ... then using a loop with FindFirst / Delete / FileOpen / FileClose / FindNext to delete & create blank versions of the same files. This works, but is not very elegant and bloats out the installer by having to distribute the full files. Without having to maintain a list of file names in the script, is there an easier way? Cheers Duncan |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
You can use !system to call a batch file that generates a list and/or code you can include.
See also: http://stackoverflow.com/questions/7...h-nsis/7318869 IntOp $PostCount $PostCount + 1 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|