+++ /dev/null
-'
-' When the dll name of the driver is not of 8.3-format
-' the modification of the FileName is needed
-'
-' This is to work-around an oversight in Windows Installer, see
-' http://wixtoolset.org/issues/1422/
-'
-' We remove the short name from the filename field in the File-table
-' of the two DLLs that need to be registered as ODBC drivers. Strictly
-' speaking, that makes the contents of the table invalid, because a short
-' name is mandatory, but Windows Installer seems nevertheless install it
-' just fine.
-
-Option Explicit
-
-Const msiOpenDatabaseModeTransact = 1
-Const msiViewModifyInsert = 1
-Const msiViewModifyUpdate = 2
-Const query = "SELECT * FROM File"
-
-Dim installer, database
-Dim view, record
-Dim pos, filename
-
-Set installer = Wscript.CreateObject("WindowsInstaller.Installer")
-Set database = installer.OpenDatabase(WScript.Arguments(0), _
- msiOpenDatabaseModeTransact)
-Set view = database.OpenView(query)
-view.Execute
-
-Set record = view.Fetch
-Do While Not record Is Nothing
-
- filename = record.StringData(3)
- pos = InStr(filename, "|psqlodbc")
-
- If (pos > 0) Then
-
- ' Remove the ShortName part
- filename = Mid(filename, pos + 1)
- WScript.echo record.StringData(3) & " -> " & filename
-
- record.StringData(3) = filename
- view.Modify msiViewModifyUpdate, record
-
- End If
-
- Set record = view.Fetch
-
-Loop
-
-database.Commit
<Directory Id="INSTALLFOLDER" />
<!-- PostgreSQL -->
- <File Name="psqlodbc30a.dll" Source="$(BINBASE)\$(ANSIFOLDER)\psqlodbc30a.dll">
+ <File Name="podbc30a.dll" Source="$(BINBASE)\$(ANSIFOLDER)\psqlodbc30a.dll">
+ <CopyFile DestinationName="psqlodbc30a.dll" />
<ODBCDriver Id="Psqlodbc_9.0_Driver_ANSI" Name="PostgreSQL ANSI($(Platform))">
<Property Id="CPTimeout" Value="60" />
</ODBCDriver>
<File Name="psqlodbc30a.pdb" Source="$(BINBASE)\$(ANSIFOLDER)\psqlodbc30a.pdb" />
<File Name="pgenlista.pdb" Source="$(BINBASE)\$(ANSIFOLDER)\pgenlista.pdb" />
<?endif ?>
- <File Name="psqlodbc35w.dll" Source="$(BINBASE)\$(UNICODEFOLDER)\psqlodbc35w.dll">
+ <File Name="podbc35w.dll" Source="$(BINBASE)\$(UNICODEFOLDER)\psqlodbc35w.dll">
+ <CopyFile DestinationName="psqlodbc35w.dll" />
<ODBCDriver Id="Psqlodbc_9.0_Driver" Name="PostgreSQL Unicode($(Platform))">
<Property Id="CPTimeout" Value="60" />
</ODBCDriver>