Old 21st October 2014, 14:43   #1
edunwat
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
edunwat is offline   Reply With Quote
Old 21st October 2014, 14:54   #2
Anders
Moderator
 
Anders's Avatar
 
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
Anders 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