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

Having trouble running Advanced Installer? Got a bug to report? Post it all here.

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

Postby ayman » Fri Mar 09, 2012 2:56 am

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 ?!!
ayman
 
Posts: 5
Joined: Fri Mar 09, 2012 2:47 am

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

Postby mihai.petcu » Fri Mar 09, 2012 9:18 am

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
http://www.advancedinstaller.com/
mihai.petcu
 
Posts: 3452
Joined: Thu Aug 05, 2010 8:01 am

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

Postby ayman » Fri Mar 09, 2012 12:50 pm

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.
ayman
 
Posts: 5
Joined: Fri Mar 09, 2012 2:47 am

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

Postby mihai.petcu » Fri Mar 09, 2012 4:23 pm

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
http://www.advancedinstaller.com/
mihai.petcu
 
Posts: 3452
Joined: Thu Aug 05, 2010 8:01 am

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

Postby ayman » Mon Mar 12, 2012 6:23 am

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
ayman
 
Posts: 5
Joined: Fri Mar 09, 2012 2:47 am

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

Postby mihai.petcu » Tue Mar 13, 2012 11:13 am

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
http://www.advancedinstaller.com/
mihai.petcu
 
Posts: 3452
Joined: Thu Aug 05, 2010 8:01 am

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

Postby ayman » Fri Mar 16, 2012 8:53 am

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
ayman
 
Posts: 5
Joined: Fri Mar 09, 2012 2:47 am

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

Postby mihai.petcu » Fri Mar 16, 2012 11:00 am

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
http://www.advancedinstaller.com/
mihai.petcu
 
Posts: 3452
Joined: Thu Aug 05, 2010 8:01 am


Return to Common Problems

Who is online

Users browsing this forum: No registered users and 2 guests