Changes

MyODBC connector

756 bytes added, 13:03, 24 November 2008
big tidyup
This is a silent installer and uninstaller for MySQL Connector/ODBC (also once known as MyODBC). MyODBC  MySQL Connector/ODBC allows you to connect from Windows programs , for example OpenOffice, to connect to a remote MySQL database, for example on an office serverMySQL Connector/ODBC can be dowloaded from http://www.mysql.com/products/connector/odbc/. == MySQL Connector/ODBC 3 == === MSI Installer ===
<source lang="xml">
<package id="myodbc" name="MyODBC connector" revision="1" reboot="false" priority="0" >
<check type="uninstall" condition="exists" path="MySQL Connector/ODBC 3.51" />
<install cmd='msiexec /passive /i "%SOFTWARE%\myodbc\myodbc-3.51.1226-win32.exe /smsi" ' /> <remove cmd="%windir%\system32\unwiseMsiExec.exe /S %windir%\system32\myodbc3_install.logqb /uninstall {0CB3C535-1171-4A20-B549-E2CB5DEB9723}" />
</package>
</source>
Or === .exe Installer === 
<source lang="xml">
<package id="myodbc" name="MyODBC connector" revision="1" reboot="false" priority="0" > <install cmdcheck type='msiexec "uninstall" condition="exists" path="MySQL Connector/passive ODBC 3.51" /i > <install cmd="%SOFTWARE%\myodbc\myodbc-3.51.12-win3226.msiexe /s"' /> <remove cmd="%windir%\system32\unwise.exe /S %windir%\system32\myodbc3_install.log" /></package>
</source>
== MySQL Connector /ODBC 5.1.5== 
<source lang="xml">
<package id="myodbc" name="MyODBC connector" revision="3" reboot="false" priority="5" >
<check type="uninstall" condition="exists" path="MySQL Connector/ODBC 5.1" />
<!-- install/upgrade of 5.1.5 fails if earlier (eg 5.1.4) version is installed, so we do a remove first. -->
<install cmd="msiexec /qn /x{29042B1C-0713-4575-B7CA-5C8E7B0899D4}" ><exit code="0"/><exit code="1605" /></install>
<install cmd="msiexec /qn /i %SOFTWARE%\myodbc\mysql-connector-odbc-5.1.5-win32.msi " />
<upgrade cmd="msiexec /qn /x{29042B1C-0713-4575-B7CA-5C8E7B0899D4}" ><exit code="0"/><exit code="1605" /></upgrade>
<upgrade cmd="msiexec /qn /i %SOFTWARE%\myodbc\mysql-connector-odbc-5.1.5-win32.msi " />
<remove cmd="msiexec /qn /x{29042B1C-0713-4575-B7CA-5C8E7B0899D4}" />
</source>
=== If you were beta testing earlier 5.1 versions prior to 5.1.5 === install/upgrade of 5.1.5 fails if earlier (eg 5.1.4) version is installed, so we do a remove first by adding these: <source lang="xml"> <install cmd="msiexec /qn /x{29042B1C-0713-4575-B7CA-5C8E7B0899D4}" ><exit code="0"/><exit code="1605" /></install> <upgrade cmd="msiexec /qn /x{29042B1C-0713-4575-B7CA-5C8E7B0899D4}" ><exit code="0"/><exit code="1605" /></upgrade></source> == Setting up an ODBC DSN (== dummy.reg is HKLM\SOFTWARE\ODBC\ODBC.ini\dummy exported via regedit on a machine with the appropriate dsn DSN defined). 
<source lang="xml">
<package id="mysql_dummy" name="My Dummy ODBC Connection" revision="2" reboot="false" priority="4" >
<depends package-id="myodbc" />
<depends package-id="reg" /> <!-- win2k Windows 2000 doesn't come with reg.exe, so I have hence this dependency -->
<check type="registry" condition="exists" path="HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\dummy" />
<install cmd="regedit /s %SOFTWARE%\myodbc\dummy.reg " />
</source>
=== Reg.exe for win2kWindows 2000 === reg.exe isn't bundled with Windows 2000 by default, it is only available as a download or as part of the Windows 2000 Resource Kit. This copies reg.exe into place so it can be used in the above: 
<source lang="xml">
<package id="reg" name="Reg.exe" revision="1" reboot="false" priority="99" >
</source>
== Mysql Tools 5.0-r14== 
<source lang="xml">
<package id="mysql_gui_tools" name="MyODBC GUI Tools" revision="1" reboot="false" priority="4" >
</package>
</source>
 
MyODBC can be dowloaded from http://www.mysql.com/products/connector/odbc/.
[[category:Silent Installers]]
Anonymous user