Problem setting up the msi - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

ludkiewicz
Posts: 6
Joined: Thu Apr 07, 2011 9:28 am

Problem setting up the msi

I have always used the installer that came with vb6 but now require a more proffesional aproach, I have figured out most of what I need to do to create my msi, but have a problem trying to run a bat file during the installation, the bat file runs a second msi that is the mysql connector for the ODBC that is required, 1: it tries to run after the the setup attempts to install the ODBC which fails because the ODBC requires the mysql drivers to be present and the bat file fails to. the sequence of events that are required are:-

install all files
install the mysql connector
install the ODBC

I hope someone can help
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Problem setting up the msi

Hello and welcome to the Advanced Installer Forums,
the bat file runs a second msi that is the mysql connector for the ODBC that is required
Please note that two simultaneous installer processes are not supported by Windows Installer. The recommended approach would be to add the second .MSI as a feature based prerequisite scheduled after the main installation. This way the required files will also be present on the target computer. Another way would be to trigger the second install through a custom action scheduled after the InstallFinalize standard action.

The recommended approach regarding the overall functionality would be to install your MySql driver from the ODBC Page.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ludkiewicz
Posts: 6
Joined: Thu Apr 07, 2011 9:28 am

Re: Problem setting up the msi

Ok that answers most of the question, the mysql connector must be present on the target machine before the main installation, is it possible to make the main installation as an exe with the msi being triggered during the main installation but before the ODBC is installed?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Problem setting up the msi

Hi,

Have you tried installing your MySql driver from the ODBC Page like I suggested in my last post?

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ludkiewicz
Posts: 6
Joined: Thu Apr 07, 2011 9:28 am

Re: Problem setting up the msi

was'nt sure what you meant so I havent tried it yet I will require more info on your suggestion, but it did lead to me thinking of another solution to the problem which is to create my msi and make a bat file to run the mysql msi then myown msi.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Problem setting up the msi

Hi,

Here is and article from our user guide that can help you. Also, here is the user guide reference to our ODBC Page.

Please let me know if you have any questions.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ludkiewicz
Posts: 6
Joined: Thu Apr 07, 2011 9:28 am

Re: Problem setting up the msi

Yes I have done this, I have found a problem it works on 32 bit win 7 with no problems at all but not on 64 bit win 7.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Problem setting up the msi

Hello,

Usually drivers also come in 64-bit versions designed for x64 machines. If your driver is the 32-bit version, you should get the 64-bit version and design your package to install them accordingly.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”