Old 6th January 2021, 15:17   #1
Anders Hydén
Junior Member
 
Join Date: Jan 2021
Posts: 10
install a folder and subfolders and all files

Hi,
This is my first meeting to NSIS.
I laborate with the Example1.nsi and want to install a hole folder with its subfolders and all files.
I did try to read about the command File, but I don't get it right.

this is my script :
; Put file there
File "C:\UTV\DF191\FOLDER-A\*.*"
but I do not get the subfolders, just the files under FOLDER-A, File-AA and File-BB

The structure is like this:

C:\UTV\DF191\FOLDER-A\
FOLDER-B
File-1
File-2
Folder-C
File-45
File-AA
File-BB


How should I do this?
Anders Hydén is offline   Reply With Quote
Old 6th January 2021, 15:47   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,358
File /r c:\whatever\*.*

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 6th January 2021, 20:17   #3
Anders Hydén
Junior Member
 
Join Date: Jan 2021
Posts: 10
Thanks for the quick answer!
That worked fine.
Probably we will meet again. I am going to make my first installation of my application.

Regards
Anders
Anders Hydén 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