yylee
Posts: 6
Joined: Tue Sep 11, 2012 7:26 pm

Log On/Off from system half way through the installation

Hi

Have a question about how to inform the user to perform a log off/on half way through the installation. Basically it is a two phase install, the first phase involves Active Directory Schema updates; the second phase is to add AD objects into the system. However, second phase cannot start unless the user log off and on to the system again. This needs to be done because Windows does not refresh AD Schema changes immediately. The user has to either wait a few minutes or similar log off and on to reload the schema. So I am hoping I can run the installer, go through phase one; log off/on and automatically continue to phase two. Kind of like installer a device driver.

any suggestion is appreciated.
David
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Log On/Off from system half way through the installation

Hello David,

I'm afraid we don't have predefined support for this. In order to achieve what you want you can create custom actions for each of your installation phase.

Here's the steps you can try:
- Go to "Custom Actions" page and add first custom action (i.e. My_First_Action, for the first installation phase). In the "Custom Action Properties" right pane you can enable the "Deferred with no impersonation" execution option and in the "Condition" field you can set the following condition:
  • (NOT Installed)
- Add second custom action (i.e. My_Second_Action, for the second installation phase). In the "Custom Action Properties" right pane you can enable the "Deferred with no impersonation" execution option and in the "Condition" field you can set the following condition:
  • AFTERREBOOT
- Go to "Table Editor" page and select the "InstallExecuteSequence" table. Add a new row in the "InstallExecuteSequence" table, scheduled between My_First_Action and My_Second_Action, like this:
  • Action: ForceReboot
    Condition: (( NOT Installed ) AND (NOT AFTERREBOOT))
    Sequence: YourSequenceNumber
- Build and run your project.

Please keep in mind that in order to use our "Table Editor" feature you should have at least an "Enterprise" project type.

Also, here's attached a sample, created using version 9.5 of Advanced Installer, which implements a similar scenario.
sample.aip
(11.33 KiB) Downloaded 421 times
All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”