Registry 64-Bit - 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!

jm2008
Posts: 62
Joined: Tue Jul 08, 2008 10:24 am

Registry 64-Bit

Hi,

I have Mixed Platform Installer (32-64), I install Postgres Database Driver Registry Key in:

HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI

That works OK on 32-Bit machine, but when I install it on 64-Bit machine the DB driver will be installed in:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBCINST.INI

Then I install DNS file in the Document folder (Windows Vista/2008), so the Database Driver will be available only to the user who installed the system (Since the DNS file will be shared ONLY if the Driver is available)

My question is: How can I write the registry value for Postgres in the 64-Bit registry area when I install on 64-Bit machines?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Registry 64-Bit

Hi,

Since only a 64-bit package can create entries in the 64-bit section of the registry, the component of the registry entry you need to create should be marked as 64-bit.

Since the same component cannot be both 32-bit and 64-bit, you can try using two copies of the same registry entries, each one having a different component. Perhaps this how-to will help you:
http://www.advancedinstaller.com/user-g ... istry.html

A copy of the registry entry can be added in the 32-bit feature and the other copy can be added in the 64-bit feature (with the 64-bit Component attribute set):

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”