wopms6
Posts: 6
Joined: Tue Jul 10, 2018 5:16 am

How to bypass the windows UAC in silent installation mode.

Hi

I have added crystal report runtime as Pre-install prerequisite to my project with /qn option in command line. It fails when I install my project on the target machine. I figured out the reason which is due UAC in the target machine is turned on, so it blocks the installations and doesn't prompt the user to allow the installation to make changes to the machine. When I turned off (Never notify) the installation goes smooth and no errors at all.

My question, how can I let the crystal report runtime as Pre-install prerequisite to bypass the windows UAC in silent installation mode on the target pc?

Thanks
Wopms6
Catalin
Posts: 7492
Joined: Wed Jun 13, 2018 7:49 am

Re: How to bypass the windows UAC in silent installation mode.

Hello Wopms6,

In order to bypass the UAC prompt for your pre-install prerequisite, you can enable the "Run as administrator" option for your main package. In order to do this, go to "Install Parameters" page and check the "Run as administrator" option from "Installation Options".

The Crystal Report Runtime package itself asks for administrator rights upon trying to install, so the only way you can install it silently without the user getting prompted with the UAC is to run the main package with administrator rights, or to run it from an elevated command line.

Hope this helps!

Regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
wopms6
Posts: 6
Joined: Tue Jul 10, 2018 5:16 am

Re: How to bypass the windows UAC in silent installation mode.

Hi Catalin,

I checked the "Run as administrator" option from "Installation Options" and it works now.
Thanks for your assistance.

Wopms6
Catalin
Posts: 7492
Joined: Wed Jun 13, 2018 7:49 am

Re: How to bypass the windows UAC in silent installation mode.

Hello Wopms6,

You are always welcome!

I am glad you got this working!

Regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”