ODBC Driver Folder Disappears - 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!

dmcmeans
Posts: 3
Joined: Mon Aug 14, 2006 5:59 pm

ODBC Driver Folder Disappears

This is a weird one.

One some machines, not all, when I install my app, the ODBC driver folder is not installed. I narrowed it down to this condition:

When I specify an ODBC driver using Project Details / ODBC / Target Computer / Driver / Add Driver the driver folder is not installed

If I remove the ODBC driver specification, the driver folder is installed.

I guess I'm not understanding AI's paradigm.

I click Add Driver and browse to Application Folder / bin / ASA9 to select the driver DLL to add the driver. In so doing, AI no longer installs AppFolder / bin / ASA9.

Is this a bug or intended behavior?

I believe I can workaround it by manually creating the registry entries to install the ODBC driver, but why should I when AI has shortcuts to do this.

Can anyone enlighten me where I'm going wrong?

Thanks,

David
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

The "InstallODBC" standard action first search to see if that driver is already installed and if so the standard action will redirect the installation of that driver to the already existing path. For example if you try to install a driver in "C:\Program Files\Your Application" which is already installed in "C:\Windows\System32" then driver installation path will be redirect to "C:\Windows\System32". This is the windows installer behavior.

So please try to install your package on a machine where that driver is not installed and you will see that the installation will be ok.

Regards,
Gigi
_________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
dmcmeans
Posts: 3
Joined: Mon Aug 14, 2006 5:59 pm

OK.

I added the folder containing my database driver files to my project. In this case it was

C:\Program Files\MyApp\bin\ASA9

There are several DLLs in this folder.


You say InstallODBC puts my setup and driver DLL in the system32 folder. But what about all the other DLLs my driver needs? How do they get installed?

Why would I expect that my files would be put someplace other than where I specified? How would I know that by specifying the driver using the AI interface, my files would be put in the system32 folder?

David
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
You say InstallODBC puts my setup and driver DLL in the system32 folder. But what about all the other DLLs my driver needs? How do they get installed?
I don't say that your driver is always installed in system32. I give an example with system32 folder.

What i meant to say is that if your driver is already installed (in other folder) then the standard action will redirect the installation path of that driver to the already existing path. Note that this happens only if the driver is already installed.
But what about all the other DLLs my driver needs? How do they get installed?
In the same directory like the driver. Note that in the ASA9 folder you should have only the files needed by the driver.
Why would I expect that my files would be put someplace other than where I specified?
This is the windows installer behavior if the driver is already installed.

Regards,
Gigi
_________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”