pethusamy
Posts: 5
Joined: Thu Mar 25, 2010 10:43 am

Bypaasing RM - Files in Use window in Vista and Win7

Hi,

I am using Advanced Installer version 6.0.1 for creating exe file for my windows application. During the uninstallation of my application, I need to establish a connection with database to take the backup. There is no problem at all in XP.

But, in Win7 and Vista OS, during the uninstallation, I get RM-FilesinUse window, which is requiring the user to close the database service. But, I could avoild closing the application and uninstall the application properly. But, if I choose the 'closing application' option, I could not be able to take the backup of database and uninstallation will not be proper.

My question here is, Is there any way to avoid the RM-FilesinUse window by doing some configuration in Advanced Installer so that Win7 and Vista will not flash the screen?

Anticpating for your reply.

Thanks and Regards,
Pethusamy V
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Bypaasing RM - Files in Use window in Vista and Win7

Hi,

Unfortunately this dialog is handled automatically by Windows Installer and it cannot be controlled. A solution is to take the backup before the "InstallExecuteSequence" -> "InstallValidate" action, the one which shows the dialog.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pethusamy
Posts: 5
Joined: Thu Mar 25, 2010 10:43 am

Re: Bypaasing RM - Files in Use window in Vista and Win7

Hi Cosmin,

Thanks for the reply. Can you please exactly tell me which event I can use so that I can avoid RM - FilesInUse Windows.

I put my database backup steps under "InstallExecuteSequence" -> "InstallValidate", it did not work. Kindly let me know what is the event which fire before "InstallValidate".

Thanks and Regards,
Pethusamy V
pethusamy
Posts: 5
Joined: Thu Mar 25, 2010 10:43 am

Re: Bypaasing RM - Files in Use window in Vista and Win7

Hi Cosmin,

I have fixed the issue. I moved the steps to be done during uninstallation of my Product under "InstallationExecuteSequence" - > "MigrateFeatureStates". Now the database backup option comes and RM-FilesInUse window does not appear.

Thanks a lot for your timely hlep.

Regards,
Pethusamy V

Return to “Common Problems”