Own functions possible?

Got a problem you cannot solve? Try here.
Post Reply
smilyface
Posts: 12
Joined: Mon Jun 21, 2010 2:55 am

Own functions possible?

Post by smilyface »

Hi,

I used to create setups with InnoSetup. With InnoSetup you can define own functions in the script section like this:

Code: Select all

function MyFunction1(Value1: String; Value2: LongInt): Boolean;
begin
 ... do some special things
 result := true;
end;
Is this possible with InstallAware?

Greetings Frank
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Re: Own functions possible?

Post by MichaelNesmith »

There's a couple ways to do that. For simple things, use the Include Script mechanism. For complex things, write your own plug-in in your favorite programming language. Plug-ins participate natively in the MSIcode script, render their own line, and can do anything - they also get access to script variables, can report live progress, participate in the build by adding files to a build, etc. Check out the Delphi plug-in template.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply