knowledge-database (beta)

Current group: jrsoftware.innosetup

Install Types

Install Types  
Al Vas
 Re: Install Types  
Gavin Lambert
 Re: Install Types  
Martijn Laan
From:Al Vas
Subject:Install Types
Date:Thu, 16 Dec 2004 19:32:41 +1100
Hi,

I am setting up install types in my installer project. The project will
cater for demonstration installs and full product installs. I would like to
define what the installer shows by the presence or absence of a file in the
installer's directory. So for example:

I have 2 install types; Demo and Full. Installer checks for a file called
FULL and if it is there it shows FULL as the only install type, otherwise it
will show DEMO?

Firstly is this possible and if so how? My aim is to only write one
installation script rather than two.

Thanks

Alex
From:Gavin Lambert
Subject:Re: Install Types
Date:Fri, 17 Dec 2004 10:28:13 +1300
Al Vas wrote:
> I am setting up install types in my installer project. The project will
> cater for demonstration installs and full product installs. I would like to
> define what the installer shows by the presence or absence of a file in the
> installer's directory. So for example:
>
> I have 2 install types; Demo and Full. Installer checks for a file called
> FULL and if it is there it shows FULL as the only install type, otherwise it
> will show DEMO?
>
> Firstly is this possible and if so how? My aim is to only write one
> installation script rather than two.

[Types]
Name: full; Description: "Full installation"; Check: IsFullOk
Name: demo; Description: "Demo installation"; Check: IsFullNotOk

[Code]
function IsFullOk(): Boolean;
begin
Result := FileExists(ExpandConstant('{src}\fullsetup.key'));
end;

function IsFullNotOk(): Boolean;
begin
Result := not IsFullOk();
end;


If you're using IS5, then you can delete the IsFullNotOk function
definition and replace the second Check value with "not IsFullOk"
(without the quotes).
From:Martijn Laan
Subject:Re: Install Types
Date:Thu, 16 Dec 2004 22:41:58 +0100
Hi,

Gavin Lambert wrote:
> If you're using IS5, then you can delete the IsFullNotOk function
> definition and replace the second Check value with "not IsFullOk"
> (without the quotes).

.... and IS5 also allow things like:

Check: FileExists(ExpandConstant('{src}\fullsetup.key'));

Greetings,
Martijn Laan
--
// Live Good. Do Right. Ride Hard.
//
// Inno Setup QuickStart Pack: http://www.jrsoftware.org/isdl.php#qsp
// My Inno Setup Extensions: http://isx.wintax.nl
   

Copyright © 2006 knowledge-database   -   All rights reserved