I am trying to write an automated test to make sure that the installer for my program is working fine.
The program can be installed for all users (requires admin privs) or for the current user (does not require admin privs). The program can also automatically fail itself, which in some cases requires administrator rights, and in some cases does not.
I’m looking for a way that I can have an automatic test, click “Yes, allow” in the UAC dialogs so that I can write tests for all different scenarios on many different operating systems so that I can be sure when I make changes to the installer that I didn’t break anything.
Obviously, the installation process itself cannot do this. However, I control the full machine and can easily start some kind of daemon process with administrator privileges so that the test program can connect to the socket to request "click ok in UAC now."
source
share