I'm trying to build an installer for my product, but it requires me to run an installer for an ODBC driver first. I would like my installer to launch the ODBC driver EXE installer before installing my product. What is the standard way to install a prerequisite? I tried creating a custom action called ODBCINST that runs in the InstallExecuteSequence with the Before InstallFiles timing. It seems to work on some workstations, but on other workstations it seems that the ODBC driver install is failing with error 1721. The only way to get the installer to install the driver is to right click on the installer executable and "Run as Administrator". I'm assuming that the driver install is not running with elevated permissions and should be. This is what I see in the MSI logs when the driver install fails:
Should I take a different approach to get the driver EXE to install from my own installer? Thanks!
Code:
MSI (s) (44:38) [11:39:45:799]: Doing action: ODBCINST Action 11:39:45: ODBCINST. Action start 11:39:45: ODBCINST. MSI (s) (44:38) [11:39:45:949]: Note: 1: 1721 2: ODBCINST 3: C:\WINDOWS\Installer\MSID605.tmp 4: /S Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: ODBCINST, location: C:\WINDOWS\Installer\MSID605.tmp, command: /S MSI (s) (44:38) [11:39:50:286]: Product: Produce Pro Scanning -- Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: ODBCINST, location: C:\WINDOWS\Installer\MSID605.tmp, command: /S Action ended 11:39:50: ODBCINST. Return value 3.
Comment