Inno Setup Questions

Reply

Join Date: Aug 2008
Posts: 19
Reputation: Deemar is an unknown quantity at this point 
Solved Threads: 0
Deemar Deemar is offline Offline
Newbie Poster

Inno Setup Questions

 
0
  #1
Nov 11th, 2008
I'm creating an installation program using Inno Setup and I have all the custom install pages made but I need to know how to set whether or not a component will be installed. Normally there's a premade page which allows the user to select which components will get installed and which won't but I want to create a custom page with radio buttons for component1, component2 and both. I already know how to check whether a radio button is checked, I just need to know if there's any code that I can use to set the component to be installed. Too confusing?

It'd be like this:

Pascal and Delphi Syntax (Toggle Plain Text)
  1. if component1.checked = true then
  2. component1.install = true;
  3. else if component 2.checked = true then
  4. component2.install = true;
  5. end;

as the bare basics.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 19
Reputation: Deemar is an unknown quantity at this point 
Solved Threads: 0
Deemar Deemar is offline Offline
Newbie Poster

Re: Inno Setup Questions

 
0
  #2
Nov 12th, 2008
please
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 19
Reputation: Deemar is an unknown quantity at this point 
Solved Threads: 0
Deemar Deemar is offline Offline
Newbie Poster

Re: Inno Setup Questions

 
0
  #3
Nov 13th, 2008
Looking for any help. I got some pretty good advice on my last Inno Setup problem here.
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,951
Reputation: Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of 
Solved Threads: 214
Featured Poster
Duoas's Avatar
Duoas Duoas is offline Offline
Posting Virtuoso

Re: Inno Setup Questions

 
0
  #4
Nov 16th, 2008
I don't know how you have your script set up, but the [Tasks] and [Components] sections are specifically designed for this. Every "task" you list in the tasks section indicates some component to install.

The Inno Setup Help documentation is very complete, and gives examples. You have to stare at it a little while, but it is actually pretty simple. Read the section on installation order to see where stuff fits in. Understanding that section is the key to understanding how to modify the script.

If you must do it in code, take a look through the event and support functions. (It is worth your time to read the entire Pascal Scripting section though.)

Hope this helps.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 1
Reputation: almir.s is an unknown quantity at this point 
Solved Threads: 0
almir.s almir.s is offline Offline
Newbie Poster

Re: Inno Setup Questions

 
0
  #5
Nov 28th, 2008
; Example
[Components]
Name: "Custom"; Description: "Custom Installation"

; Chose beetwen Applicaton 1 or 2, Components tree shows radio buttons
Name: "Custom\App1"; Description: "Application 1"; Flags: exclusive
Name: "Custom\App2"; Description: "Application 2"; Flags: exclusive

[Files]
Source: "C:\files\app1.exe"; DestDir: "{tmp}"; Components: Custom\App1
Source: "C:\files\app2.exe"; DestDir: "{tmp}"; Components: Custom\App2
....


; I have another problem, when installing multiple components, setup installer unpacks to temp and executing programs , but progress bar shows 100%, how can i solve this
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Pascal and Delphi Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC