stevefal
Posts: 119
Joined: Wed Sep 03, 2008 9:02 pm
Location: Washington USA
Contact: Website

PrepareDlg takes a long time on 7.1.3

I am trying to migrate to 7.1.3 with enhanced UI, from 6.9.1.

With 7.1.3, when installing for the first time on a given machine, the PrepareDlg dialog shows for a long time wthout feedback before the Welcome dialog shows. It can take 5-10 seconds.

I never saw this happen with earlier versions.

What's happening and can it be improved?
Last edited by stevefal on Mon Sep 07, 2009 11:48 am, edited 2 times in total.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: PrepareDlg takes a long time on 7.1.3

Hello,

The delay you are experiencing on PrepareDlg mostly depends on what your project is doing. Searches with great depth are usually responsible for such delays. Could you send your .aip project to support at advacedinstaller dot com? We might be able to pinpoint the cause.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
stevefal
Posts: 119
Joined: Wed Sep 03, 2008 9:02 pm
Location: Washington USA
Contact: Website

Re: PrepareDlg takes a long time on 7.1.3

It's the same project I've used under 6.9.1 and 7.1.3, with the addition of enhanced UI. Under 6.9.1 the transition from PrepareDlg to WelcomeDlg is virtually instant, whereas under 7.1.3 it always takes much longer.

I"m not doing any Search, or at least the Search tab is empty.

I've tested on 6 machines with the same result.

I'll send the AIP..
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: PrepareDlg takes a long time on 7.1.3

Hi Steve,

Unfortunately the enhanced UI needs to finish the costing before starting the installation (showing the Welcome dialog). This is why it takes a bit longer.

If you can send us a verbose log of the installation process we can determine which actions (disk costing, launch condition evaluation, searching for older products etc.) take a long time for your installer. Perhaps we can optimize them somehow.

Note that most launch conditions use searches.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
stevefal
Posts: 119
Joined: Wed Sep 03, 2008 9:02 pm
Location: Washington USA
Contact: Website

Re: PrepareDlg takes a long time on 7.1.3

Within the same machine, subsequent installations are faster. This is true even if I remove my app and reinstall. I need to find more machines to log this first-time scenario.

Is there an AI stub or something that is installed the first time, that could be taking extra time?
Last edited by stevefal on Tue Sep 08, 2009 12:47 pm, edited 1 time in total.
stevefal
Posts: 119
Joined: Wed Sep 03, 2008 9:02 pm
Location: Washington USA
Contact: Website

Re: PrepareDlg takes a long time on 7.1.3

I found a fresh machine and repro'd the delay. 11 seconds is being spent here:

MSI (c) (74:78) [09:21:52:785]: Note: 1: 2205 2: 3: MsiFileHash
MSI (c) (74:78) [09:22:05:267]: Note: 1: 2262 2: TypeLib 3: -2147287038

This is about 23 entries before the WelcomeDlg action.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: PrepareDlg takes a long time on 7.1.3

Hi Steve,

It seems that the delay is caused by hidden parts of the costing process, so there isn't an easy way to optimize the installer. The entries in the log are random, they are not related to a specific action taken by the installer (the details are hidden).

We were not able to reproduce this behavior on our test machines by using your project with dummy source files, so perhaps your test machines slow down the costing process somehow or your actual installation package has a large size.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
stevefal
Posts: 119
Joined: Wed Sep 03, 2008 9:02 pm
Location: Washington USA
Contact: Website

Re: PrepareDlg takes a long time on 7.1.3

Hi Cosmin,

My installation is not very large (~3.5MB). Please note the following:

- I never had such a delay under 6.9.1, with hundreds of test installations.
- with 7.1.3, the delay has occurred on *every* first installation per fresh machine (9 machines now). That is, subsequent installations on the same machine do not have the delay.

Something unique must be happening during the first installation. Is there some AI component that is being installed/registered when an enhanced UI project is installed?

Having an installer that initially appears frozen is an unfortunate first impression for anyone's product. I'd like to track down what's happening here so it can be corrected.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: PrepareDlg takes a long time on 7.1.3

Hi,

We tested the package you provided, but unfortunately we are unable to reproduce this behavior (WelcomeDlg is shown almost instantly). Can you please give me more details about the machines which show this behavior?
- Windows version
- approximate disk capacity of the partition which contains the default install path
- if there are network drives (perhaps the installer verifies them)
- special software installed (for example antivirus)
- special system policies (if there are any)
I never had such a delay under 6.9.1, with hundreds of test installations.
Without enhanced UI (in the 6.9.1 version) the costing is performed only during InstallExecuteSequence. With enhanced UI the costing is also performed during InstallUISequence. This is an improvement over the normal Windows Installer behavior.
Something unique must be happening during the first installation. Is there some AI component that is being installed/registered when an enhanced UI project is installed?
No, the enhanced UI simply calls the InstallValidate action to finish the disk costing. Everything is handled by Windows Installer.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
stevefal
Posts: 119
Joined: Wed Sep 03, 2008 9:02 pm
Location: Washington USA
Contact: Website

Re: PrepareDlg takes a long time on 7.1.3

- Windows versions are XP Pro SP3, Vista Premium 64 SP2, Windows 7 Enterprise
- partitions range from 30GB (laptops) to 80GB (workstations) to 300GB (dev machine)
- antivirus software running on all machines (CA and Microsoft)
- no network drives, no special system policies
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: PrepareDlg takes a long time on 7.1.3

Hi,

We tested your package on multiple clean machines which match the specifications you mentioned, but unfortunately we are unable to reproduce the problem. Can you please test the package on a machine without the antivirus?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
stevefal
Posts: 119
Joined: Wed Sep 03, 2008 9:02 pm
Location: Washington USA
Contact: Website

Re: PrepareDlg takes a long time on 7.1.3

I focused on one machine now because the testing is time consuming. I've removed all virus/malware scanning software. The delay is still consistently at least 8 seconds.

- When the installer has never run to completion on the Windows installation, the delay can be reproduced consistently
- After the installer runs to completion, the delay can no longer be demonstrated, even after uninstall or system restore

To reproduce consistently
- Never run to completion, or it will never reproduce again on that Windows installation
- The first run after a reboot is when the delay occurs
- To reproduce the delay, reboot, run, observe delay, and exit at WelcomeDlg (note that there is disk churn during the delay period)
- On second run after reboot, observe that delay is not reproduced.
- Reboot again, run, observe delay again.

I have not tested whether the delay is eliminated if *any* AI enhanced UI package installs to completion, or only mine. But I want to stress I am unable to reproduce at all on any Windows installation on which my package has run to completion. But it reproduced on every Windows installation on which my package was never run.

The delay is short on very fast machines (1-3 seconds), and long (8-11 seconds) on slower machines like netbooks.

After first complete installation, the transition from PrepareDlg to WelcomeDlg is instant on very fast machines, and fast (1 second) on slower machines like netbooks.

Did the clean machines on which you tested ever run an AI enhanced UI package to completion? Were they very fast machines?

I have only one virgin machine to test on now and would have to start reinstalling Windows in order to reproduce on others.
jarmysz
Posts: 1
Joined: Wed Sep 09, 2009 1:20 pm

Re: PrepareDlg takes a long time on 7.1.3

I got the opposite problem; the PrepareDialog takes too little time; it just flashes and moves to the WelcomeDialog.
What could be done about it? Can I make it slow down and request the user to press the 'Next' button or could I simply remove it? (I tried gettin it removed; unfortunately I cannot).

Yarek
stevefal
Posts: 119
Joined: Wed Sep 03, 2008 9:02 pm
Location: Washington USA
Contact: Website

Re: PrepareDlg takes a long time on 7.1.3

Are you using 7.1.3 and Enhanced UI?

I used to have the same problem. To eliminate the visual issue, I made the text the same on both pages, and added an additional line, "Stand by...", on PrepareDlg. This way, if PrepareDlg shows only briefly, it looks like it animates the "Stand by" briefly, and when it goes away, the Next button is enabled.

The factory text on PrepareDlg was no good because it was unique, but only displayed long enough for you to realize you couldn't read it that fast.

I still have the issue that it is too slow on first install, per two posts above..

Return to “Common Problems”