Click here to Skip to main content
15,878,953 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to install a gadget using a batch file. My batch file is working fine
but it prompt (security warning dialog) for user permission to install. Here is code

@ECHO OFF
START HelloWorld.Gadget /Q /I

Please guide how to stop that prompt and install gadget without that.
Thanks
Posted

1 solution

You need to run the batch file as Administrator.

There are several ways to achieve this ... e.g. if on your own PC you can right click on cmd and select "Run as Administrator", you can use the RunAs facility etc etc

Some more ideas here[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900