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

Dileep S dileep.sanampudi at gmail.com
Fri Sep 4 07:29:38 PDT 2015


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.


More information about the wix-users mailing list