Reputation: 581
I have a msi installer that needs to be run in silent mode. For that I need to run the installer in silent mode through an elevated command prompt. How can I launch the cmd in elevated mode and then run the command to execute installer from that elevated cms using a batch file?
Upvotes: 0
Views: 5089
Reputation: 309
If you want all programs (including command prompt) to run in admin mode by default, then disable UAC by making enableLUA=0 in registry. Note that this change will prompt for system restart.
EnableLUA can be found under HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System.
Once the system comes up, then all programs will run in elevated (admin) mode by default.
Upvotes: 1
Reputation: 2815
Upvotes: 1