[wix-users] [WIX]: UAC Prompt issue when InstallScope="perUser"

Rob Mensching rob at firegiant.com
Fri Sep 4 09:43:37 PDT 2015


Why write a custom action to write registry keys? Windows Installer writes registry keys (and rolls them back!) quite well.

_______________________________________________________________
 FireGiant  |  Dedicated support for the WiX toolset  |  http://www.firegiant.com/

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Griesshammer, Christoph (GE Healthcare)
Sent: Friday, September 4, 2015 8:39 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] [WIX]: UAC Prompt issue when InstallScope="perUser"

When you have Impersonate="no" for your custom action, it does not request elevation. Set it to yes and you should see the prompt.

Christoph

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Dileep S
Sent: Friday, September 04, 2015 10:30 AM
To: WiX Toolset Users Mailing List
Subject: [wix-users] [WIX]: UAC Prompt issue when InstallScope="perUser"

Hi All,

I have created a sample C++ exe to write Registry Key in the following
location:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion

I have packaged this "Sample.exe" using WIX script.

<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine"
InstallPrivileges="elevated" />

I have written custom action in *.WXS file as below:

<CustomAction Id="InstallDRV" Directory="INSTALLDIR" Execute="deferred"
ExeCommand="[$(var.RootDirID)]$(var.EXEFileName)" Impersonate="no"
Return="asyncNoWait" />


"Sample.exe" should write the registry key which was specified after extracting the MSI package.

*Issue:*
After extracting the MSI package, "Sample.exe" launches and written a registry key in the below location not in the specified location:
HKEY_USERS\.DEFAULT\Software\Microsoft\Windows NT\CurrentVersion\Windows

How to resolve this issue?

I have modified the InstallScope="perUser" as below <Package InstallerVersion="200" Compressed="yes" InstallScope="perUser"
InstallPrivileges="limited" />

But Issue is UAC prompt is not appearing.

How to display UAC prompt, when InstallScope="perUser"

Please help me to resolve this issue.


Thanks in advance.

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_&d=BQICAg&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=-l6_npd-dx-ekbVSbypvaw-IcErQ11UE3f78jQgrCDw&m=feEYlrG-Ucnk3Gw0-eySWQZlUxb75TYiqKKVnSMdeXo&s=cB6c5iBOL02T5EDwOFgUHK3l8_KB4XB54BGjE7PpAJE&e= 

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/


More information about the wix-users mailing list