cappa1983
Posts: 8
Joined: Mon Jul 30, 2012 3:38 pm

Reboot question:

Hi,

My installer has several features, one feature calls a PowerShell script which reboots the machine on completion, how do I get the installer to pick up installing the rest of the features after the reboot instead of double-clicking the installer and going into 'maintenance mode'.

thank you
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Reboot question:

Hello and welcome to Advanced Installer forums,

I'm afraid I don't fully understand what you mean? Can you please give us more details about your scenario (maybe exemplify)? Also, can you tell us what version of Advanced Installer you are using?

Please keep in mind that if you have chained packages or prerequisites added to your package, then the main installation should continue after reboot.

If your are using a custom action to launch the related reboot script, then you should schedule it after "Install Execution Stage" -> "Add Resources" action group. Also, the custom action should run as deferred with no impersonation.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cappa1983
Posts: 8
Joined: Mon Jul 30, 2012 3:38 pm

Re: Reboot question:

Hello Daniel,

Thank you for the replay... here, let me give you a more detailed question.

I'm using the Enterprise version of the software and I have two powershell scripts that run before the actual install of the files take place. The first powershell script will fetch all needed windows updates and the second powershell script will dc promo the server to the domain. By the way, can windows updates and dcpromo be done using AI Enterprise?

after each of the scripts complete, the server has to reboot. I would like to have them run during the setup if possible, so that the server can reboot the two times, and then continue with the rest of the install. But, i'm not sure if this is possible, so I can change it so that it gets done in beginning as part of the prerequisites stage. Is there a way to do that so it runs only once, and not every time the installer is executed?

Thanks!
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Reboot question:

Hello,
By the way, can windows updates and dcpromo be done using AI Enterprise?
Unfortunately, we don't have a built-in functionality for this. In order to obtain this you can use custom actions or prerequisites.
Is there a way to do that so it runs only once, and not every time the installer is executed?
For this you should use install conditions in order to run the related prerequisites packages based on conditions. Please take a look on our "Add prerequisites" tutorial.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”