ZYklon Posted February 3, 2013 Share Posted February 3, 2013 Hey MSFN, Im working on a batch that installs silently programs, and its working very well on XP, but on Window 7, UAC (User Account Control) it's poping up asking 'Yes' or 'No' for every exe batch file installing !Is there any trick that you can actually, bypass or something UAC ?I know ninite.com that download apps then installs silently and no UAC problem, I checked ninite process with Process Explorer, and Im not sure but, I guess it uses iexplorer.exe process to inject and run, and bypasses UAC !A solution I have for this problem is to edit registry keys to Disable UAC, but to take effect after disabling UAC, I must reboot PC !I use this code to disable and enable UAC !Enable C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /fDisable C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /fAny idea ? Link to comment Share on other sites More sharing options...
MagicAndre1981 Posted February 3, 2013 Share Posted February 3, 2013 create a scheduled task for each CMD file: Link to comment Share on other sites More sharing options...
jaclaz Posted February 3, 2013 Share Posted February 3, 2013 Get higher privileges:jaclaz Link to comment Share on other sites More sharing options...
allen2 Posted February 3, 2013 Share Posted February 3, 2013 In pure Batch, you just need to add "set __COMPAT_LAYER=RunAsInvoker " in the begining of your batch file to bypass uac. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now