Restarting the machine after installation of pre-requisite - 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!

ffposts
Posts: 3
Joined: Thu Apr 07, 2011 8:13 am

Restarting the machine after installation of pre-requisite

Hi,

I am stuck with a very common scenario and I am not able to figure out how to proceed.
Basically, I want that after my prequisite is installed on the computer, the computer should restart before proceeding with
the installation of main MSI package. Attached is the screenshot of the prequisties with the options tab.
Prequisite with options tab
Prequisite with options tab
Images.jpg (118.12 KiB) Viewed 3277 times
With the current settings, the computer doesn't restart.
If I do the following setting, it re-starts the computer only after the installation is complete.
Install Parameters -> Root Behaviour --> Force Reboot after install.

However, I wish to restart my machine after the installation of pre-requisite and not after the installation of main package.
Any suggestions/idea are welcome.
Regards,
Ffposts
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Restarting the machine after installation of pre-requisite

Hello,

I have tested this using the "Visual C++ 2005 SP1 Redistributable (x86)" predefined prerequisite on a Vista machine and I cannot reproduce the behavior. The user is prompted and the restart occurs right after the installation of the prerequisite.

Can you please try the package on other machines and see the behavior. Also, can you please send us the .EXE manifesting the behavior to support at advancedinstaller dot com so we can help you investigate?

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ffposts
Posts: 3
Joined: Thu Apr 07, 2011 8:13 am

Re: Restarting the machine after installation of pre-requisite

Hi Mihai,

I got it on my Windows Vista SP 1 machine. I just now checked and was able to reproduce the issue.
Is there anything special to be done for declaring a prerequisite as "Global" or directly adding a Pre-requisite under
the Prerequisites tab make it global ? As suggested, I have sent the .aip and .exe file to support.

Best Regards,
Ffposts
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Restarting the machine after installation of pre-requisite

Hello,

I have looked into your .AIP and it seems the "Visual C++ 2005 SP1 Redistributable (x86)" predefined prerequisite is modified. Please delete the existing one and add it again from the Add... combobox -> Visual Studio.

I tested the predefined prerequisite's reboot behavior and it works as expected both on Windows Vista and on Windows 7.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ffposts
Posts: 3
Joined: Thu Apr 07, 2011 8:13 am

Re: Restarting the machine after installation of pre-requisite

Hello Mihai,

Thanks for looking into the aip file and suggesting to add it again from combo box -> Visual Studio.

Case 1
On adding the Visual C++ 2005 SP1 Redistributable (x86) from the Combo box , it adds the SetUp file as URL
and prefills the URL , Install Conditions. On running this , the installer itself installs the pre-requisite and asks
for a system reboot if that option has been selected in the Options tab.
This works as fine.

Case 2
However, if I change the Pre-requisite setup file location form URL to OpenSite and provide the site url as
http://www.microsoft.com/downloads/en/d ... 9C36F85647
the pre-requisite opens up the website , but after the user installs the prerequisite it doesn't go for a reboot.

I can very well go for the setup file as URL but wanted to know as to how does advancedinstaller ensure that the Install
conditons are always correct as regards to the product code registry entries/values.
Regards,
Ffposts
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Restarting the machine after installation of pre-requisite

Hello,

The restart occurs only if the prerequisite was successfully installed. The search criteria is evaluated before and after the prerequisite's installation. If the after evaluation returns false, Advanced Installer interprets the prerequisite installation failed.

This behavior can be overcome if you provide a valid search criteria for your prerequisite. For more information please follow this article.

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

Return to “Common Problems”