Subject Re: [firebird-support] Re: Installing FB 2.5 with my App
Author Robert
On 20/01/2011 09:16, Werner F. Bruhin wrote:
> Can you attach it here again?

Sure, I just didn't want to tread on anyone's toes with an unsolicited
repost. Don't forget this was written for FB2.1 and may not work on FB2.5.

--- In firebird-support@yahoogroups.com, Robert <birmingham_spider@...>
wrote:

I have an NSIS installer script that does just this. The script allows
the user to choose client, server, or both. For the client components
I use:

DetailPrint 'Installing Firebird Client'
ExecWait '"$OUTDIR\Firebird_Server.exe" /DIR="$INSTDIR\Server"
/GROUP="$STARTMENUDIR\Server" /SP- /SILENT /NORESTART /RESTARTEXITCODE=9
/COMPONENTS=ClientComponent' $0

and

DetailPrint 'Installing Firebird ODBC Driver'
ExecWait '"$OUTDIR\Firebird_ODBC.exe" /DIR="$INSTDIR\ODBC"
/GROUP="$STARTMENUDIR\ODBC" /SP- /SILENT /NORESTART /RESTARTEXITCODE=9' $0

For the server I use:

ExecWait '"$OUTDIR\Firebird_Server.exe" /DIR="$INSTDIR\Server"
/GROUP="Firebird\Server" /SP- /SILENT /NORESTART /RESTARTEXITCODE=9
/COMPONENTS=ServerComponent,ServerComponent\SuperServerComponent,DevAdminComponent

/NOGDS32' $0

ExecWait executes an executable file. Firebird_Server.exe is the
renamed Firebird installer. Firebird_ODBC.exe is the installer for the
IBPhoenix ODBC driver. Most (but not all) of the switches are
documented - the ones that weren't I guessed at. I googled the
switches I knew to find the documentation for the rest :). $OUTDIR and
$INSTDIR are the executable directory and installation directory
respectively. $STARTMENUDIR is the start menu directory. After
execution the variable $0 contains the "error level" - if the value is 9
(set by /RESTARTEXITCODE), the installation requires a reboot to complete.

==End of repost

Regards,

Robert.

--
() Plain text email - safe, readable, inclusive.
/\ http://www.asciiribbon.org/