I am looking for a way to reboot the system and launch the program with elevated permission without user interaction after the first time the program is launched.
The program I am trying to write is for new system. Part of the setup I want to perform system updates then reboot. When the computer has restarted check for more updates and install them. I want it to keep restarting and searching until they are all done.
I understand it will need elevated permission to start and the user will accept the UAC prompt, but after this I want it to be completely hands free showing only the updates and a message saying it is done.
I feel I could create a service to launch the program to check and install windows updates and when there are no more updates the program removes the service, but this seem like it may be sloppy. Any Ideas?