Install Sequence - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Dashut
Posts: 142
Joined: Tue May 04, 2010 4:41 pm

Install Sequence

I haven't been able to find the _COMPLETELE_ install sequence of AdvancedInstaller (most probably driven/dictated/imposed by Windows Installer).
Could you please list the entire install sequence?
Like for example, when installing first time, you go through:

Code: Select all

Begin
AppSearch
LaunchConditions
....
and this is done TWICE! first time for all "Immediate execution" custom actions, and the second time for "deferred" or "deferred with no impersonation" custom actions.
Not to mention, that if you press the "canel" button at anytime: it will run the SAME sequence but in REVERSE - for all those that have in that sequence "rollback" or "rollback with no impersonation".
Now if you have set the installation to: "uninstall first, and then install", then the sequence is even longer: because it goes through the uninstall phase, and then to the install phase.... (and what if you have selected "install first, and then uninstall"...?).

It also gets more complicated when there's an error either when it's trying to uninstall first, or when it's upgrading after successful unintall...
I mean: it's really complicated, and I can't say I'm sure what are the action sequences that are used (especially critical at that moment are the properties that change to reflect install or uninstall like: REMOVE="ALL").
One way for me to do that, is to create a msgbox on ALL the sequences I see in the "show standard action" (in the custom actions). And it's crazy, and I don't have time for such a long investigation. If you guys know this already, I would be more then happy to receive the FULL list!
Also, if you can add: which properties change? This is critical, because when you create a custom action, you most likely have to write some condition ("Execution condition") otherwise your custom actions will be called when you don't want them to be!

And what about when I enter the "Modify" page? (by running the SAME msi a second time: you enter the maintenance page). What are the action sequences there? probably different then "first time installation". There you can select to add some "Feature"/s or remove one/some. So what are the sequences there?

I ask this because basically I have got some things right, but when something fails, then the installation remains incomplete, and I'm not so sure why.
This list will REALLY help me and other developers using AdvancedInstaller to finally understand the sequences and what to expect.

I know this question is not easy, and I've been battling with this for about 2-3 months now, and I didn't want to ask this and was trying on my own, but I think I have reached a point where your help will be really appreciated. I just have to continue with other tasks that I have pending on me and can't invest so much time in investigation.

Again: thank you, Dashut.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Install Sequence

Hi Dashut,
Could you please list the entire install sequence?
Here is the complete list of standard actions imposed by Windows Installer standards. The following article will also give you some valuable information about the execution of the standard actions from the setup package.
and what if you have selected "install first, and then uninstall"...?
The standard actions sequence is the same, only that first time the new package is running, and after that Windows Installer is uninstalling the old one. Each package will pass through the same list of standard actions.
If you guys know this already, I would be more then happy to receive the FULL list!
Also, if you can add: which properties change?
Each property changes its values depending on the standard actions executed. The best way to see at which step the value changes is to create a verbose log and search for the name of the property in it. For example, the property REMOVE is correctly set after the standard action InstallValidate.
And what about when I enter the "Modify" page? (by running the SAME msi a second time: you enter the maintenance page). What are the action sequences there? probably different then "first time installation". There you can select to add some "Feature"/s or remove one/some. So what are the sequences there?
The standard actions sequence remains the same always, no matter if you are running during first time install, uninstall or maintenance (i.e. Modify page). Depending on the actions you take Windows Installer will modify the product configuration on the machine. For example, if during the "Modify" step you choose to remove a feature the property REMOVE will contain the feature id so Windows Installer will know it has to remove it.

Please read carefully the above article to understand the execution steps of the package and for a better analyses of the installation process try creating and analyzing a verbose log. Even if at the beginning will seem that it contains to much information, in time you will get used to easily detect the steps you are interested in.

If you have other questions please let us know.

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

Return to “Common Problems”