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!

MRE
Posts: 6
Joined: Fri Sep 12, 2014 6:51 am

odbc + missing registry entries after installation of msi

Hi,

I got a msi file from one of our developers. This msi installs perfectly, but it needed some extra files and configuration settings. So I made a new msi project with the latest version of Advanced Installer (Version 12.4.2 build 66135) and made a completely new msi file.

Both msi files create an odbc connection to a .mdb file. When I install the .msi file which I got from our developer (who made the .msi with Wix) and look in the registry for the odbc connection, everything seems to be fine. The .exe file which makes use of the odbc connections starts normally and everything works as it is supposed to work.

When I install my .msi file and look in the registry for the odbc connection, there are some things missing (see screenshots) and the .exe generates some error message which I can relate to the missing odbc registry entries.

When I open the .msi file from my developer with AI, everything for the odbc connection looks exactly the same as my own .msi file on the ODBC page.

Can you tell me what is wrong with my msi file and the odbc connection ? They look exactly the same on the ODBC page of Advanced Installer, but when installed, the registery entries for both look different.

Data Source: Boris2000
Name: Boris2000
Drivername: Microsoft Access Driver (*.mdb)
Registration: System
Attributes: Name=DBQ Value=[CommonAppDataFolder]Boris2000\Boris.mdb

First screenshot is my own msi file with odbc connection
Second and third screenshot is the developers msi made with Wix with odbc connection.
1.png
1.png (188.08 KiB) Viewed 5838 times
2.png
2.png (119.88 KiB) Viewed 5838 times
3.png
3.png (108.61 KiB) Viewed 5838 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: odbc + missing registry entries after installation of msi

Hello,

Indeed, I've tested your scenario and replicate it.

It seems the...Boris2000/Engines/Jet registry keys are not created. I will further investigate this and reply when I have a conclusive answer.

In this case, can you please set the AI_USE_STD_ODBC_MGR in the Install Parameters Page:
e.g.
Property: AI_USE_STD_ODBC_MGR
Value: 1

Please let me know if the behaviour still persist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MRE
Posts: 6
Joined: Fri Sep 12, 2014 6:51 am

Re: odbc + missing registry entries after installation of msi

Hi Dan,

Thanks for investigating. I will apply your workaround first thing when I'm at work. Will let you know the results.

Kind regards,
Maarten
MRE
Posts: 6
Joined: Fri Sep 12, 2014 6:51 am

Re: odbc + missing registry entries after installation of msi

Dan wrote:Hello,

In this case, can you please set the AI_USE_STD_ODBC_MGR in the Install Parameters Page:
e.g.
Property: AI_USE_STD_ODBC_MGR
Value: 1

Please let me know if the behaviour still persist.

Best regards,
Dan
Hi Dan,

I just tried to do set the Install Parameters on the Install Parameters page. At the bottom I try to add a new property named AI_USE_STD_ODBC_MGR with value 1 but when I click the OK button in the New Property windows, I receive the message: this property name is reserved.

I also found this post http://www.advancedinstaller.com/forums ... 801#p71801 but do not know if it applies to my situation.
4.png
4.png (29.12 KiB) Viewed 5822 times
MRE
Posts: 6
Joined: Fri Sep 12, 2014 6:51 am

Re: odbc + missing registry entries after installation of msi

Hi,

I was curious what the workaround in this post would do: http://www.advancedinstaller.com/forums ... 85e#p71801 and tried it out.
Until then, as a workaround, in order to avoid this issue you can proceed like this:
- go to "Custom Actions" page and add a "Set installer property" custom action with sequence, scheduled after "Wizard Dialogs Stage -> Searches" and "Install Execution Stage -> Searches" actions group, like this:

Property: AI_USE_STD_ODBC_MGR
Value: 1
It works for now by adding a custom action like mentioned above, but I'd rather see this "bug" fixed :)
Attachments
5.png
5.png (49.08 KiB) Viewed 5821 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: odbc + missing registry entries after installation of msi

Hello Maarten,
It works for now by adding a custom action like mentioned above, but I'd rather see this "bug" fixed :)
There was a miscommunication in our part. We apologize for this. The related property (AI_USE_STD_ODBC_MGR) should be set indeed using a custom action and not trying to define it in "Install Parameters" page. This is an internal Advanced Installer reserved property and this is why you cannot define it in "Install Parameters" page. It is a limitation imposed by our application on purpose.

If there is anything we can assist you with just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MRE
Posts: 6
Joined: Fri Sep 12, 2014 6:51 am

Re: odbc + missing registry entries after installation of msi

Hello Daniel,

Thanks for your reply and clarifying things up. Will the ODBC bug I came across still be fixed or is the problem I described "by design"

Kind regards,
Maarten
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: odbc + missing registry entries after installation of msi

You're always welcome Maarten.
Will the ODBC bug I came across still be fixed or is the problem I described "by design"
A fix for this issue is added in our todo list, but since the fix would require a lot of refactoring it is quite unlikely to be implemented. So, I recommended you to use the "AI_USE_STD_ODBC_MGR" workaround now and in the future.

Thank you for your understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MRE
Posts: 6
Joined: Fri Sep 12, 2014 6:51 am

Re: odbc + missing registry entries after installation of msi

Daniel wrote:You're always welcome Maarten.
Will the ODBC bug I came across still be fixed or is the problem I described "by design"
A fix for this issue is added in our todo list, but since the fix would require a lot of refactoring it is quite unlikely to be implemented. So, I recommended you to use the "AI_USE_STD_ODBC_MGR" workaround now and in the future.

Thank you for your understanding.

All the best,
Daniel
Hi Daniel,

Thanks . I will use the workaround then and will update my own documentation. Thanks for clarifying things.

Maarten

Return to “Building Installers”