Retry Button in Files in Use dialog does not work on win7 - Advanced Installer Community
ayman
Posts: 7
Joined: Fri Mar 09, 2012 2:47 am

Retry Button in Files in Use dialog does not work on win7

Hi

In the Files in Use dialog box I have removed the ignore button so the user have no choice but to close the applications that uses the file, it works fine on windows XP sp3 machine but not on windows 7 professional (both 64 and 32): once the user clicks Retry it will just continue as if it was Ignore...
The package was build by AI 8.6 enterprise, it was trying to update an existing product (build with same AI).

Any Idea ?!!
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Retry Button in Files in Use dialog does not work on win

Hi and welcome to Advanced Installer forums,

You can check the published event on the button:
[ Retry ] should have "EndDialog" with "Retry" argument
whereas
[ Ignore ] should have "EndDialog" with "Ignore" argument

The "Ignore" functionality will continue the installation and replace the files in use when the system restarts.
The "Retry" functionality implies you close all files in use and continue with the installation without any files in use prompt.

Is the functionality reversed on Windows 7?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ayman
Posts: 7
Joined: Fri Mar 09, 2012 2:47 am

Re: Retry Button in Files in Use dialog does not work on win

thanks for reply,

the published event on the buttons is correct.
in xp retry checks again if the application is not closed it keeps asking the user to close it and will not proceed

but in win 7 both Ignore and Retry will ignore and the installer will proceed.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Retry Button in Files in Use dialog does not work on win

Hello,

Can you please send us the .AIP ( project file ) and a verbose log of both installations to support at advancedinstaller dot com so we can investigate them?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ayman
Posts: 7
Joined: Fri Mar 09, 2012 2:47 am

Re: Retry Button in Files in Use dialog does not work on win

Hello,

Can you please send us the .AIP ( project file ) and a verbose log of both installations to support at advancedinstaller dot com so we can investigate them?

All the best,
Mihai
OK, files sent...

Thanks for reply
best regards
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Retry Button in Files in Use dialog does not work on win

Hello Ayman,

Unfortunately we are unable to replicate the issue. Can you please try the same test case without Enhanced UI activated?

Starting with Windows Installer 3.1 and especially on Windows 7, the MsiRMFilesInUse dialog should be displayed instead of FilesInUse.

If switching off Enhanced UI solves the problem, can you please upload your packages (previous and upgraded version) and share the link via e-mail so we can replicate and fix the issue?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ayman
Posts: 7
Joined: Fri Mar 09, 2012 2:47 am

Re: Retry Button in Files in Use dialog does not work on win

Yes the fileInUse dialog appears because I have set MSIRESTARTMANAGERCONTROL to disabled.

This what I want to achieve (maybe I did it the wrong way):
I want to force the user to close a specific application by himself (or quit the installation), so I disabled MSIRESTARTMANAGERCONTROL because this dialog shows not only the application but also some services (which I don't car about -I manage this in update). the old FileInUse dialog only displays my application but doesn't work properly...
one (not so nice) way to mange this is to add in custom actions' InstallValidate a check for that specific application and if its opened, then show an error message and quit installation... but is there is a way to show a custom Retry/Exit dialog for that specific application in InstallValidate (or any other way to manage it) ?!

thanks for your help
best regards
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Retry Button in Files in Use dialog does not work on win

There are several predefined custom actions to automatically close application or processes.
The recommended approach is to schedule something related instead of having the user manually close it.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”