The Java runtime installer has a silent installation switch, jre-6u27-windows-i586-s.exe /s. However, when UAC is set to any of the "Notify me" options, the Java installer still shows a prompt!

enter image description here

Is there any way around this except to turn off UAC?


Not really, if it were possible (easy) to install software bypassing UAC, then there would be no point in having UAC. The whole idea behind UAC is to prevent unauthorized (read potentially dangerous) software from being installed.

If you use some of sort of network management software/service like SCCM, then that might be able to do it by having it's own software installation service installed.

  • Several other Windows Installers (MSI) that I run silently avoid the UAC prompt. – Anthony Mastrean Sep 20 '11 at 19:28
  • If the original installer has elevated permissions, and then install additional components inside of the same process, this works. However, if the installer launches a different installation process, then there is nothing you can do; save for rewriting the installer. – Coding Gorilla Sep 20 '11 at 19:30
  • My "installer" is a PowerShell script that calls a bunch of other installers, copies files, etc. – Anthony Mastrean Sep 20 '11 at 19:33
  • Oh yeah, they probably don't invoke admin privileges or something. – Anthony Mastrean Jan 10 '12 at 13:39

Are you deploying this to all your workstations? If so you could set it to run under the local admin account which bypasses UAC as it's setup to run everything in admin mode by default (unless you've changed this via GPO).

  • Hm... I am running this as part of a complicated software deployment to a medical instrument. It is running a full Windows installation and has a builtin admin. However, we're running as a service account. I can look into this. – Anthony Mastrean Sep 20 '11 at 19:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.