toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

empty FilesInUse dlg with Enhanced UI on WinXP

Ahoy,

I'm using AI 7.7 build 28804

I searched this forum for similar posts and found a few which discuss seeing an empty FilesInUse dialog:
- http://www.advancedinstaller.com/forums ... f=2&t=9747
- http://www.advancedinstaller.com/forums ... f=2&t=9759
- http://www.advancedinstaller.com/forums ... =2&t=11313

It sounds like WI is responsible for populating the listbox and that AI doesn't have much control over that. However, I've found markedly different behavior when using the AI Enhanced UI vs the basic UI. Here are the basic steps to reproduce the problem:

===== Project =====
* Java project, application type GUI, do not include a JRE (user must get it separately)
* enable Enhanced UI
* select "Automatically upgrade older product versions" option

===== Build =====
* build version 1.0.0 and set aside
* build version 1.0.1 (using new Product Code)

===== Install Base =====
* install version 1.0.0 on a WinXP machine that does *not* have a JRE installed
* run the native-launcher EXE
* since there is no JRE available, the native-launcher should display the "JRE Not Found" dialog:
AI - no JRE dlg.JPG
AI - no JRE dlg.JPG (19.37 KiB) Viewed 7643 times
* leave the "JRE Not Found" dialog open

===== Install Upgrade =====
* run the 1.0.1 installer, click-through to the VerifyReadyDlg and click "Install"
* sometime after the ProgressDlg says "Searching for installed applications", the FilesInUse dlg will trigger
* the FilesInUse listbox is empty:
AI - FilesInUse dlg - EnhancedUI.JPG
AI - FilesInUse dlg - EnhancedUI.JPG (29.06 KiB) Viewed 7643 times
* click "Exit" to cancel the upgrade
* now change your AI project to use the basic UI and rebuild version 1.0.1
* run the 1.0.1 installer with basic UI, repeating the same steps as before
* when the FilesInUse dlg is triggered, it now lists the "JRE Not Found" window:
AI - FilesInUse dlg - BasicUI.JPG
AI - FilesInUse dlg - BasicUI.JPG (29.5 KiB) Viewed 7643 times
This behavior is always reproducible. I only used the "JRE Not Found" dlg because it's a simple example that can easily be reproduced without any knowledge of my app. (When the JRE is available and my app is actually running, I still observe an empty FilesInUse dlg.) This sharp difference between the Enhanced UI and basic UI suggests that there is a bug somewhere.

Interestingly, the problem does not happen when installing on a Win7 machine. With both the Enhanced UI and the basic UI, the FilesInUse dlg does list the application. I'm guessing this is because of the improvements made in WinVista with the Restart Manager.

Thanks,
Todd
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: empty FilesInUse dlg with Enhanced UI on WinXP

Hi Todd,

We will investigate this and see if we can find a solution. Thank you for bringing it to our attention.
Can you please specify the Windows Installer version you are using?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

Re: empty FilesInUse dlg with Enhanced UI on WinXP

Impressive intuition regarding the version of Windows Installer - it seems that is an important factor.

===== v 3.00.3790.2180 (WinXP Pro w/ sp2, English) =====
This is the WI version against which I reported the original problem (empty listbox when using EnhancedUI).
It would be nice if the problem could be fixed for this version of WI, so that the EnhancedUI behaves the same way as the BasicUI.


===== v 3.01.4001.5512 (WinXP Pro w/ sp3, English) =====
When testing against this newer version of WI, the FilesInUse dlg is not empty when using the EnhancedUI, which is good. However, there is still a difference in behavior between the UI modes (basic -vs- enhanced).
- When using the BasicUI, the FilesInUse dlg displays one entry "JRE Not Found" (same behavior as with the older version of WI)
- When using the EnhancedUI, the FilesInUse dlg displays *two* entries:
AI - FilesInUse dlg - EnhancedUI - multiple entries.JPG
AI - FilesInUse dlg - EnhancedUI - multiple entries.JPG (27.27 KiB) Viewed 7619 times
The "JRE Not Found" entry is expected, but the second entry (which is my [ProductName] and is the name of my native java launcher EXE) is unexpected and potentially confusing to users.

Could this be fixed so that both UI modes exhibit the same behavior? In this context, I think the FilesInUse dlg should only display the "JRE Not Found" entry.

Thanks,
Todd
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

Re: empty FilesInUse dlg with Enhanced UI on WinXP

Hi Cosmin,

I never heard anything further from you guys on this issue - did you have a chance to investigate it more?

Thanks,
Todd
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: empty FilesInUse dlg with Enhanced UI on WinXP

Hi Todd,

We managed to reproduce this behavior. We added a bugfix on our TODO list and it will be available in a future version. Thank you for bringing this to our attention.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

Re: empty FilesInUse dlg with Enhanced UI on WinXP

OK, thanks for confirming.

-Todd
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: empty FilesInUse dlg with Enhanced UI on WinXP

Hi,

An improvement has been made in Advanced Installer which allow the Files in Use dialog to be filled in with the correct information while using Enhance UI, during an upgrade.
This will be available starting with version 8.1.

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

Return to “Common Problems”