Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is it possible to force a restart after the AWinstall installer completes?

0
Posted

Is it possible to force a restart after the AWinstall installer completes?

0

Currently the simplest way to do this is to run a small script file. VBScript Code: Dim sysName = “winmgmts:{impersonationLevel=impersonate,(shutdown,remoteshutdown)}!//” For Each os In GetObject(sysName).InstancesOf(“Win32_OperatingSystem”) retCode = os.Win32Shutdown(4, 0) Next Save this code to a text file with .VBS extension. Add this file to the project, and add the “Run” command that will launch it after installation.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123