File locked during uninstall - 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!

jknappers
Posts: 2
Joined: Thu Sep 23, 2010 12:38 pm

File locked during uninstall

Hello,

I'm repackaging existing applications for easy and consistent deployment in our organisation.
I have 1 application installer causing me some problems.
This is the case:
Application with vender supplied ODBC driver.
Install part works ok, application get correctly installed, ODBC driver get correctly installed,
Custom ODBC data sources are configured correctly.

But when I de-install the application it ran into a problem.
When accessing the ODBC applet, the driver opens (and exclusive lock ) a log file.
The ODBC driver won't release the lock and the installer fails to remove the file, and prompt for
retry or cancel.

Is it possible to trick the installer force a reboot and do the clean up after reboot, or also acceptable,
silently leave the folder with the locked file on disk?

Any help with this is greatly appreciated.

regards,
John
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: File locked during uninstall

Hi John,
When accessing the ODBC applet,
Can you please tell me why is the ODBC driver accessed during uninstall? The ODBC driver manager should not load the driver during the uninstall process
if you want everything to work correctly.

If possible, please send me the aip file you are using and verbose log of the uninstall process to support at advancedinstaller dot com so we can analyze them.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jknappers
Posts: 2
Joined: Thu Sep 23, 2010 12:38 pm

Re: File locked during uninstall

Hello,

Suddenly, the De-install worked. The logfile is still locked and left behind after de-installation, but the de-install don't fail anymore on it.
For me, this is resolved now.

But I don't know why the installer is accessing the driver during uninstall. The Advanced software installer 7.7, let you define all actions to do for installing the the software package, but the the de-install process is quite hidden in the advanced installer, nothing configured there by me.

John
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: File locked during uninstall

Hi John,

Most of the uninstall actions are executed automatically by Windows Installer, so you don't need to make any configurations manually.

However, certain actions can be set to run during install or uninstall based on the values of the properties "Installed" and "REMOVE", for example custom actions.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”