ODBC Snapshot Installer (for Dave Page)

From: anthony(dot)caduto(at)micorp(dot)com
To: pgsql-odbc(at)postgresql(dot)org
Subject: ODBC Snapshot Installer (for Dave Page)
Date: 2004-10-06 15:58:57
Message-ID: OFA418A34D.CD4E7A72-ON86256F25.0056BDAF-86256F25.0057E08B@micorp.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Dave,
I have successfully created a ODBC installer and it looks almost identical
to the current MSI one.
I looked at the M$ stuff you mentioned and the learning curve is pretty
high.
I created this one with Inno Setup 5 and it only took a few minutes and is
much easier to use than MSI or that xml msi stuff

Like I said, I would be willing to take over creating the installer if you
don't mind switching to Inno Setup.

I could also do the setup for PGAdmin III :-)

The entire setup with source is available here:

http://www.amsoftwaredesign.com/downloads/pgodbc.zip

Just to show how simple and easy Inno is to use, here is the entire setup
script:

; -- psqlodbc.iss --
; Installs the PostgreSQL ODBC driver
; Installer script created by Anthony J. Caduto
[Setup]
AppName=PostgreSQL ODBC Driver
AppVerName=PostgreSQL ODBC Driver 8.0
DisableDirPage=yes
LicenseFile=lgpl.rtf
DefaultDirName={pf}\PostgreSQL ODBC Driver
DefaultGroupName=PostgreSQL ODBC Driver
Compression=lzma
SolidCompression=yes
;WindowVisible=yes
OutputBaseFilename=psqlodbc
WizardImageStretch=yes
WizardSmallImageFile=banner.bmp
WizardImageFile=screen.bmp
[Files]
Source: "psqlodbc.dll"; DestDir: "{sys}"
[Registry]
Root: HKLM; Subkey:"SOFTWARE\ODBC\ODBCINST.INI\ODBC Drivers";ValueType:
string; ValueName: "PostgreSQL";ValueData:
"Installed";flags:uninsdeletevalue
Root: HKLM; Subkey:"SOFTWARE\ODBC\ODBCINST.INI\PostgreSQL";ValueType:
string; ValueName: "APILevel";ValueData: "1" ;flags:uninsdeletekey
Root: HKLM; Subkey:"SOFTWARE\ODBC\ODBCINST.INI\PostgreSQL";ValueType:
string; ValueName: "ConnectFunctions";ValueData: "YYN"
;flags:uninsdeletekey
Root: HKLM; Subkey:"SOFTWARE\ODBC\ODBCINST.INI\PostgreSQL";ValueType:
string; ValueName: "Driver";ValueData: "PSQLODBC.DLL"
;flags:uninsdeletekey
Root: HKLM; Subkey:"SOFTWARE\ODBC\ODBCINST.INI\PostgreSQL";ValueType:
string; ValueName: "DriverODBCVer";ValueData: "03.00";flags:uninsdeletekey
Root: HKLM; Subkey:"SOFTWARE\ODBC\ODBCINST.INI\PostgreSQL";ValueType:
string; ValueName: "FileUsage";ValueData: "0" ;flags:uninsdeletekey
Root: HKLM; Subkey:"SOFTWARE\ODBC\ODBCINST.INI\PostgreSQL";ValueType:
string; ValueName: "Setup";ValueData: "PSQLODBC.DLL";flags:uninsdeletekey
Root: HKLM; Subkey:"SOFTWARE\ODBC\ODBCINST.INI\PostgreSQL";ValueType:
string; ValueName: "SQLLevel";ValueData: "1";flags:uninsdeletekey
Root: HKLM; Subkey:"SOFTWARE\ODBC\ODBCINST.INI\PostgreSQL";ValueType:
dword; ValueName: "UsageCount";ValueData: "00000001" ;flags:uninsdeletekey

Tony Caduto
Senior Programmer/Analyst
M&I Trust and Investment Management

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message anthony.caduto 2004-10-06 16:22:23 Schema support problems with latest snapshot
Previous Message Greg Campbell 2004-10-06 13:25:51 Re: Can't find ODBC driver in the admin list