[DUG] Installers

Stacey Verner stacey at cjntech.co.nz
Mon Sep 4 10:40:46 NZST 2006


InnoSetup provides Pascal like scripting capabilities which you can use
to do all sorts of things before and after installations.

e.g.

...
[Code]
var
  MyProgChecked: Boolean;
  MyProgCheckResult: Boolean;
  FinishedInstall: Boolean;

function InitializeSetup(): Boolean;
begin
  Result := MsgBox('InitializeSetup:' #13#13
      'Setup is initializing. Do you really want to start setup?'
      , mbConfirmation, MB_YESNO) = idYes;
  if Result = False then
    MsgBox('InitializeSetup:' #13#13 'Ok, bye bye.', mbInformation,
MB_OK);
end;
...

This is a snippet from CodeExample1.iss under the Examples folder (this
is with InnoSetup 5, but there should be a similar example in InnoSetup
4).

I assume that you would have to have a zip dll or exe that gets put in a
temporary location and used to zip up the previous install.

Stacey

-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz]
On Behalf Of John Bird
Sent: Monday, 04 September 2006 10:20
To: 'NZ Borland Developers Group - Delphi List'
Subject: [DUG] Installers

Up to now I have been using the Inno Setup 4 installer, its pretty
simple
and powerful.  (And written in Delphi)
The only thing it doesn't do that I would like is to be able to
archive/zip
up older programs before I install an update (which gives a fall back if
there is a problem with an updated program).  Ie it doesn't offer
actions
that can be done before the programs are installed other than creating
directories..

I noticed that the latest Firefox V2 beta 2 (which looks like a really
terrific version btw) now uses the Nullsoft Scriptable Install System
which
looks really good too...

http://nsis.sourceforge.net/Features

What do others use?
Being a single developer I don't really want to pay for high end ones if
free ones do what I want...


John

_______________________________________________
Delphi mailing list
Delphi at ns3.123.co.nz
http://ns3.123.co.nz/mailman/listinfo/delphi



More information about the Delphi mailing list