winanjaya
Posts: 7
Joined: Fri Dec 28, 2012 4:54 am

how to stop UAC dialog (on Vista or later)?

Dear All,
how to stop UAC dialog (on Vista or later)? ..

I already set Run as administrator level on Install Parameters settings and also had use app.manifest file as below: (I included in setup project)

but the annoying UAC dialog still showing..

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
    <security>
      <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
        <!-- UAC Manifest Options
            If you want to change the Windows User Account Control level replace the 
            requestedExecutionLevel node with one of the following.

        <requestedExecutionLevel  level="asInvoker" uiAccess="false" />
        <requestedExecutionLevel  level="requireAdministrator" uiAccess="false" />
        <requestedExecutionLevel  level="highestAvailable" uiAccess="false" />

            If you want to utilize File and Registry Virtualization for backward 
            compatibility then delete the requestedExecutionLevel node.
        -->
        <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
      </requestedPrivileges>
    </security>
  </trustInfo>
</asmv1:assembly>
Bogdan
Posts: 2791
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: how to stop UAC dialog (on Vista or later)?

Hi,

You cannot prevent the UAC dialog from appearing when you perform a per-machine installation. Only if you install a package per-user you can skip showing this dialog.

If you set the option "Run as administrator" you will inform UAC to show the dialog the moment you execute the installer, and not when you are halfway through it.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
winanjaya
Posts: 7
Joined: Fri Dec 28, 2012 4:54 am

Re: how to stop UAC dialog (on Vista or later)?

You wrote --> Only if you install a package per-user you can skip showing this dialog.

what do you mean? ..and how to skip that?

I need advise

Thanks & Regards
Bogdan
Posts: 2791
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: how to stop UAC dialog (on Vista or later)?

You can change the package type to "per-user only" from Install Parameters page. Please note that this means that you cannot install files in Program Files folder or create registry entries under HKLM anymore.

The UAC dialog which Windows shows will not longer appear if you change the package type to per-user only, this is what I meant when I said it will be skipped.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”