Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Prompt to reboot


3 replies to this topic

Irina

Irina
  • Members
  • 227 posts

Posted 08 July 2002 - 22:26

Hi,
I have a couple of merge modules which may force a reboot. But this reboot doesn't have any user prompt and executes automatically. The Windows Installer returns ERROR_SUCCESS_REBOOT_INITIATED (error code #1641) what cause a system reboot without prompting. I don't set any value for a  REBOOTPROMPT property. The installation shows this prompting for other files not for merge modules. My question is how can I show a prompt dialog to an user before reboot is started?
Thanks,
Irina Shirinsky
Software Engineer, Heroix Corporation
http://www.heroix.com

hambone

hambone
  • Members
  • 206 posts

Posted 18 July 2002 - 12:59

to prompt for a reboot at the end of the installation you can use a custom action that calls the MSISetMode.  this can be combined with the ScheduleReboot and ForceReboot actions.  the schedulereboot action allows for end of install prompt and the forcereboot action prompts during the installation.

all of this ties together with the Reboot property which uses the values: force, suppress, and reallysuppress to control how it responds...

Irina

Irina
  • Members
  • 227 posts

Posted 18 July 2002 - 16:14

Hi,
Thanks for your answer. My installation prompts the reboot correctly. The problem was a customer executed the installation in the silent mode, so no user interface was presented and a machine was rebooted, of course, without any prompting.
Irina Shirinsky
Software Engineer, Heroix Corporation
http://www.heroix.com

Irina

Irina
  • Members
  • 227 posts

Posted 30 July 2002 - 19:17

Hi all,
I have solved my problem by setting the REBOOT property as "ReallySuppress" at the end of the installation or add "REBOOT=ReallySuppress" to the command line to execute the installation from the command line. MSI returns an error code #3010 in this case and doesn't apply a reboot automatically.
Irina Shirinsky
Software Engineer, Heroix Corporation
http://www.heroix.com