View Single Post
  #13  
Old 08-08-2022, 01:55
pcblizzard pcblizzard is offline
Registered User
 
Join Date: Aug 2009
Location: Germany
Posts: 32
Thanks: 65
Thanked 3 Times in 3 Posts
pcblizzard is on a distinguished road
Hey,

I have a question: in the "Script.iss" file, there is the "[Files]" section, I would like to copy files / folders, depending on what was selected during setup as a component, which I can define in the "Settings.ini" under "[ComponentsSettings]".

But somehow I'm at a loss and don't know what to specify in the "[Files]" section, in the "Script.iss", so that either only the files from the Update 1 or Update 2 folder are copied.

Script.iss:
Code:
[Files]
Source: "Path to the Update 1-folder\*"; DestDir: "{app}"; Flags: external ignoreversion recursesubdirs createallsubdirs
Source: "Path to the Update 2-folder\*"; DestDir: "{app}"; Flags: external ignoreversion recursesubdirs createallsubdirs
Settings.ini:
Code:
[ComponentsSettings]
Enable=1
FlatPageMode=0
ShowComponentSize=1

;; requires at least two components to enable page. 
;; if components is used the global size will be ignored. 

Component1.Name=Update 1
Component1.ItemType=RADIO
Component1.Size=2,12 MB
Component1.Level=0
Component1.Checked=1
Component1.Enabled=1

Component2.Name=Update 2
Component2.ItemType=RADIO
Component2.Size=7,34 MB
Component2.Level=0
Component2.Checked=0
Component2.Enabled=1

KR blizz
Reply With Quote