[DUG] InstallAware Questions

John Bird johnkbird at paradise.net.nz
Tue Jan 30 17:36:11 NZDT 2007


Thanks for that! - I will have to read up more on this and do some
experimenting!

The specific need I have for it is in this distribution update section:

[Files]
;only send files put in the JBCLDIST folder
Source: "C:\JBCLDIST\*.exe"; DestDir: "{app}"; Flags: ignoreversion

And the files I send vary from one distribution to another - I just put the
files I want into the distribution folder and the Inno compiler picks up
whatever is there.  Will the suggestion you made or the flag calling a
script..

; BeforeInstall: MyBeforeInstall

Added at the end of the line allow me to call a procedure to only backup the
files distributed in this setup?  I will have to play with how it interprets
wild cards....

John

-----Original Message-----
From: Conor Boyd [mailto:Conor.Boyd at trimble.co.nz] 
Sent: Tuesday, 30 January 2007 3:31 p.m.
To: johnkbird at paradise.net.nz; NZ Borland Developers Group - Delphi List
Subject: RE: [DUG] InstallAware Questions


John,

Can you not script that yourself in your own CurStepChanged function?

>From the Inno help:

	procedure CurStepChanged(CurStep: TSetupStep); 
		You can use this event function to perform your own
pre-install and post-install tasks.
 
I've found the scripting ability of Inno Setup to be hugely useful.

For example, the program I'm using it for checks my website on startup for a
newer version, downloads the latest installer, executes the latest
installer, the installer sends a custom Windows message to my app to shut it
down, the installer runs unattended, and then the installer starts the new
version of my program.  I was very impressed with how solid the scripting
is.

HTH,

Conor

-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz]
On Behalf Of John Bird

The only thing I haven't found a way to do in the standard program is : I
like to keep a backup program folder (called OldPrograms) and copy the old
version into there before the update is installed - Inno doesn't seem to
have a way to process operations for the older site versions of the sent
files before installing the new ones.

__________ NOD32 1.1461 (20060329) Information __________

This message was checked by NOD32 antivirus system. http://www.eset.com





More information about the Delphi mailing list