I have created MSI package using Wix.
Wix Script:
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" InstallPrivileges="elevated" />
<CustomAction Id="InstallDRV" Directory="INSTALLDIR" Execute="deferred" ExeCommand="[INSTALLDIR]setup.exe" Impersonate="no" Return="check" />
This 'setup.exe' will be installing 'Printer' drivers and set as default printer.
So, this will be update the default printer in the below key. HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
But, msiexec.exe is running in 'System Administrator' instead of 'User Administrator'.
How can we execute MSI as 'User Administrator' account.
Thanks in advance.
Regards,
Dileep