Restart dialog box - 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!

Mert
Posts: 50
Joined: Mon Jun 15, 2009 4:00 pm

Restart dialog box

Hi I want to make a dialog box that will come up after the installation and wait for user to save all his work and then when the Restart button on the dialog box is pressed it should reboot the computer anyway to do this?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Restart dialog box

Hi,

Here is a How To on restarting a computer after the installation finishes.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mert
Posts: 50
Joined: Mon Jun 15, 2009 4:00 pm

Re: Restart dialog box

I don't want a checkbox at the exitdialog I want to open a new small window when finish button is pressed that has an OK button for reboot
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Restart dialog box

Hi,

To do so follow these steps:

- go to Dialogs page, on the ExitDialog from the First Time Install tree.
- select the "Finish" button
- go to "Published Events" tab from the Control pane
- press New button, in the New Control Event dialog set the fields as follows:
--- Name: [REBOOT]
--- Argument: Force
--- Condition: leave it empty

This should work just the way you wanted to.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mert
Posts: 50
Joined: Mon Jun 15, 2009 4:00 pm

Re: Restart dialog box

I can't edit the name field and can't find any entry named [REBOOT] in that list is there something I am doing wrong?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Restart dialog box

Hi,

To edit the Name field select from the list the element "SetProperty". This will allow you to write the name of the property you desire, in this case [REBOOT].

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mert
Posts: 50
Joined: Mon Jun 15, 2009 4:00 pm

Re: Restart dialog box

I did everything exactly as you said but when I test my install on virtual vista pc it does not reboot and just waits
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Restart dialog box

Hi,

I've tested a package with that setting on Windows Vista and it reboots normaly at the end of the installation. Please check to see if you have any application that doesn't allows the system to restart.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mert
Posts: 50
Joined: Mon Jun 15, 2009 4:00 pm

Re: Restart dialog box

OK I did it now it works almost as I wanted there is just another thing I need to do. I don't want a no button there because I need to force a restart but I need to notify user first for unsaved works user might have at the installation time so I just want 1 button there so how can I do that?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Restart dialog box

Hi,

Yes you can do that, you will need a VBscript that I shall attach to this reply.

Follow these steps:

- go to File and Folders page and add the "restart.vbs" file that I've attached
- go to custom action page
- right click on UI Custom Actions folder -> Add Predefined Custom Action -> Launch File or Open URL
- in the Command Line field fill in this:

Code: Select all

"[#restart.vbs]"
- go to Dialogs page, on ExitDialog
- select the Finish button, delete the Published Event you've created before, the one that sets the property [REBOOT]
- add a New one with this parameters:
--- Name: DoAction (select it from the list)
--- Argument: viewer.exe (select it from the list)
--- Condition: leave it empty

Regards,
Bogdan
Attachments
restart.zip
(300 Bytes) Downloaded 451 times
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”