• Jueves 25 de Abril de 2024, 06:53

Autor Tema:  Integrar Driver ODBC 3.51 MYSQL  (Leído 2583 veces)

MUSUL

  • Nuevo Miembro
  • *
  • Mensajes: 3
    • Ver Perfil
Integrar Driver ODBC 3.51 MYSQL
« en: Sábado 20 de Marzo de 2010, 01:11 »
0
Hola,

Estoy haciendo una aplicación que necesita una conexión a MYSQL, y estoy usando el MYSQL ODBC Driver.

El caso es que para que funcione en los clientes, hay que instalar aparte el conector ODBC, y necesito que venga integrado en el programa.

Algun consejo? Se podria agregar como alguna referencia/componente?

F_Tanori

  • Moderador
  • ******
  • Mensajes: 1919
  • Nacionalidad: mx
    • Ver Perfil
Re: Integrar Driver ODBC 3.51 MYSQL
« Respuesta #1 en: Sábado 20 de Marzo de 2010, 09:58 »
0
Puedes intentar lo siguiente:

Incluir el driver ODBC en MSI (Windows ® Installer)
el cual puede recibir parametros, para instalarse en modo desatendido, minimo,silencioso etc...
Por ejemplo:

En modo Silencioso

Citar
DriverODBC.msi /q

Esto lo puedes lograr con cualquier instalador por ejemplo InnoSetup etc, hasta winrar... que permiten ejecutar una aplicacion despues de terminar la instalacion entoces puedes ejecutar un pequeno programa que configure tu aplicacion, o si solo necesita instalar el driver, solo ejecutas esa linea (o segun lo deseado) La lista de parametros y opciones es la siguiente para la version (5.0.7600.16385 )

La cual puede obteberse

Citar
DriverODBC.msi /?

Citar
Windows ® Installer. V 5.0.7600.16385

msiexec /Option <Required Parameter> [Optional Parameter]

Install Options
   </package | /i> <Product.msi>
      Installs or configures a product
   /a <Product.msi>
      Administrative install - Installs a product on the network
   /j<u|m> <Product.msi> [/t <Transform List>] [/g <Language ID>]
      Advertises a product - m to all users, u to current user
   </uninstall | /x> <Product.msi | ProductCode>
      Uninstalls the product
Display Options
   /quiet
      Quiet mode, no user interaction
   /passive
      Unattended mode - progress bar only
   /q[n|b|r|f]
      Sets user interface level
      n - No UI
      b - Basic UI
      r - Reduced UI
      f - Full UI (default)
   /help
      Help information
Restart Options
   /norestart
      Do not restart after the installation is complete
   /promptrestart
      Prompts the user for restart if necessary
   /forcerestart
      Always restart the computer after installation
Logging Options
   /l[i|w|e|a|r|u|c|m|o|p|v|x|+|!|*] <LogFile>
      i - Status messages
      w - Nonfatal warnings
      e - All error messages
      a - Start up of actions
      r - Action-specific records
      u - User requests
      c - Initial UI parameters
      m - Out-of-memory or fatal exit information
      o - Out-of-disk-space messages
      p - Terminal properties
      v - Verbose output
      x - Extra debugging information
      + - Append to existing log file
      ! - Flush each line to the log
      * - Log all information, except for v and x options
   /log <LogFile>
      Equivalent of /l* <LogFile>
Update Options
   /update <Update1.msp>[;Update2.msp]
      Applies update(s)
   /uninstall <PatchCodeGuid>[;Update2.msp] /package <Product.msi | ProductCode>
      Remove update(s) for a product
Repair Options
   /f[p|e|c|m|s|o|d|a|u|v] <Product.msi | ProductCode>
      Repairs a product
      p - only if file is missing
      o - if file is missing or an older version is installed (default)
      e - if file is missing or an equal or older version is installed
      d - if file is missing or a different version is installed
      c - if file is missing or checksum does not match the calculated value
      a - forces all files to be reinstalled
      u - all required user-specific registry entries (default)
      m - all required computer-specific registry entries (default)
      s - all existing shortcuts (default)
      v - runs from source and recaches local package
Setting Public Properties
   [PROPERTY=PropertyValue]

Consult the Windows ® Installer SDK for additional documentation on the
command line syntax.

Copyright © Microsoft Corporation. All rights reserved.
Portions of this software are based in part on the work of the Independent JPEG Group.

Saludos
" ExIsTo y A vEcEs PiEnSo "

NOTA:
===========================================================================================================================
Este foro es para ayudar, aprender, compartir... usenlo para eso,
NO SE RESUELVEN DUDAS POR MENSAJE PRIVADO Y MENOS POR CORREO
===========================================================================================================================

MUSUL

  • Nuevo Miembro
  • *
  • Mensajes: 3
    • Ver Perfil
Re: Integrar Driver ODBC 3.51 MYSQL
« Respuesta #2 en: Sábado 20 de Marzo de 2010, 17:53 »
0
perfecto. Muchas gracias. Con esto se puede hacer un apaño.