Difference between revisions of "MyODBC connector"
From WPKG | Open Source Software Deployment and Distribution
m |
|||
Line 12: | Line 12: | ||
<source lang="xml"> | <source lang="xml"> | ||
<install cmd='msiexec /passive /i "%SOFTWARE%\myodbc\myodbc-3.51.12-win32.msi"' /> | <install cmd='msiexec /passive /i "%SOFTWARE%\myodbc\myodbc-3.51.12-win32.msi"' /> | ||
+ | </source> | ||
+ | |||
+ | MySQL Connector 5.1.4 | ||
+ | <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 cmd="msiexec /qn /i %SOFTWARE%\myodbc\mysql-connector-odbc-5.1.4-win32.msi " /> | ||
+ | <upgrade cmd="msiexec /qn /i %SOFTWARE%\myodbc\mysql-connector-odbc-5.1.4-win32.msi " /> | ||
+ | <remove cmd="msiexec /qn /x{29042B1C-0713-4575-B7CA-5C8E7B0899D4}" /> | ||
+ | </package> | ||
+ | </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 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 doesn't come with reg.exe, so I have this dependency --> | ||
+ | <check type="registry" condition="exists" path="HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\dummy" /> | ||
+ | <install cmd="regedit /s %SOFTWARE%\myodbc\dummy.reg " /> | ||
+ | <install cmd='reg.exe add "HKLM\SOFTWARE\ODBC\ODBC.INI\ODBC DATA SOURCES" /v dummy /t REG_SZ /d "MySQL ODBC 5.1 Driver" /f ' /> | ||
+ | <upgrade cmd="regedit /s %SOFTWARE%\myodbc\dummy.reg " /> | ||
+ | <upgrade cmd='reg.exe add "HKLM\SOFTWARE\ODBC\ODBC.INI\ODBC DATA SOURCES" /v dummy /t REG_SZ /d "MySQL ODBC 5.1 Driver" /f ' /> | ||
+ | <remove cmd="reg.exe del HKLM\SOFTWARE\ODBC\ODBC.INI\dummy /f" /> | ||
+ | <remove cmd='reg.exe del "HKLM\SOFTWARE\ODBC\ODBC.INI\ODBC DATA SOURCES" /v dummy /f ' /> | ||
+ | </package> | ||
+ | </source> | ||
+ | |||
+ | Reg.exe for win2k | ||
+ | <source lang="xml"> | ||
+ | <package id="reg" name="Reg.exe" revision="1" reboot="false" priority="99" > | ||
+ | <check type="file" condition="exists" path="%WINDIR%\system32\reg.exe" /> | ||
+ | <install cmd='xcopy /Q /R /Y "%SOFTWARE%\reg.exe" "%WINDIR%\system32\" ' /> | ||
+ | </package> | ||
+ | </source> | ||
+ | |||
+ | Mysql Tools 5.0-r12 | ||
+ | <source lang="xml"> | ||
+ | <package id="mysql_gui_tools" name="MyODBC GUI Tools" revision="1" reboot="false" priority="4" > | ||
+ | <check type="uninstall" condition="exists" path="MySQL Tools for 5.0" /> | ||
+ | <install cmd="msiexec /qn /i %SOFTWARE%\myodbc\mysql-gui-tools-5.0-r12-win32.msi " /> | ||
+ | <upgrade cmd="msiexec /qn /i %SOFTWARE%\myodbc\mysql-gui-tools-5.0-r12-win32.msi " /> | ||
+ | <remove cmd="msiexec /qn /x{EC561602-C0B9-4FAA-A175-1B3273639AC3}" /> | ||
+ | </package> | ||
</source> | </source> | ||
Revision as of 02:36, 14 May 2008
This is a silent installer and uninstaller for MySQL Connector/ODBC (also known as MyODBC). MyODBC allows you to connect from Windows programs to a remote MySQL database.
<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="%SOFTWARE%\myodbc\myodbc-3.51.12.exe /s" />
<remove cmd="%windir%\system32\unwise.exe /S %windir%\system32\myodbc3_install.log" />
</package>
Or
<install cmd='msiexec /passive /i "%SOFTWARE%\myodbc\myodbc-3.51.12-win32.msi"' />
MySQL Connector 5.1.4
<package id="myodbc" name="MyODBC connector" revision="3" reboot="false" priority="5" >
<check type="uninstall" condition="exists" path="MySQL Connector/ODBC 5.1" />
<install cmd="msiexec /qn /i %SOFTWARE%\myodbc\mysql-connector-odbc-5.1.4-win32.msi " />
<upgrade cmd="msiexec /qn /i %SOFTWARE%\myodbc\mysql-connector-odbc-5.1.4-win32.msi " />
<remove cmd="msiexec /qn /x{29042B1C-0713-4575-B7CA-5C8E7B0899D4}" />
</package>
Setting up an ODBC DSN (dummy.reg is HKLM\SOFTWARE\ODBC\ODBC.ini\dummy exported via regedit on a machine with the appropriate dsn defined)
<package id="mysql_dummy" name="My Dummy ODBC Connection" revision="2" reboot="false" priority="4" >
<depends package-id="myodbc" />
<depends package-id="reg" /> <!-- win2k doesn't come with reg.exe, so I have this dependency -->
<check type="registry" condition="exists" path="HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\dummy" />
<install cmd="regedit /s %SOFTWARE%\myodbc\dummy.reg " />
<install cmd='reg.exe add "HKLM\SOFTWARE\ODBC\ODBC.INI\ODBC DATA SOURCES" /v dummy /t REG_SZ /d "MySQL ODBC 5.1 Driver" /f ' />
<upgrade cmd="regedit /s %SOFTWARE%\myodbc\dummy.reg " />
<upgrade cmd='reg.exe add "HKLM\SOFTWARE\ODBC\ODBC.INI\ODBC DATA SOURCES" /v dummy /t REG_SZ /d "MySQL ODBC 5.1 Driver" /f ' />
<remove cmd="reg.exe del HKLM\SOFTWARE\ODBC\ODBC.INI\dummy /f" />
<remove cmd='reg.exe del "HKLM\SOFTWARE\ODBC\ODBC.INI\ODBC DATA SOURCES" /v dummy /f ' />
</package>
Reg.exe for win2k
<package id="reg" name="Reg.exe" revision="1" reboot="false" priority="99" >
<check type="file" condition="exists" path="%WINDIR%\system32\reg.exe" />
<install cmd='xcopy /Q /R /Y "%SOFTWARE%\reg.exe" "%WINDIR%\system32\" ' />
</package>
Mysql Tools 5.0-r12
<package id="mysql_gui_tools" name="MyODBC GUI Tools" revision="1" reboot="false" priority="4" >
<check type="uninstall" condition="exists" path="MySQL Tools for 5.0" />
<install cmd="msiexec /qn /i %SOFTWARE%\myodbc\mysql-gui-tools-5.0-r12-win32.msi " />
<upgrade cmd="msiexec /qn /i %SOFTWARE%\myodbc\mysql-gui-tools-5.0-r12-win32.msi " />
<remove cmd="msiexec /qn /x{EC561602-C0B9-4FAA-A175-1B3273639AC3}" />
</package>
MyODBC can be dowloaded from http://www.mysql.com/products/connector/odbc/.