[wix-users] [WIX]: Issue while writing Registry Key using File in MSI

Dileep S dileep.sanampudi at gmail.com
Sun Aug 30 23:05:35 PDT 2015


Dear Michal,
I have changed Impersonate="yes" and tried. In this case, EXE file is not
launched after extracting the files.


On Fri, Aug 28, 2015 at 6:40 PM, Michal Krezolek <michal at bioflexlaser.com>
wrote:

> Use the following:
> <CustomAction Id="InstallDRV" Directory="INSTALLDIR" Execute="deferred"
> ExeCommand="[$(var.RootDirID)]$(var.EXEFileName)" Impersonate="yes"
> Return="asyncNoWait" />
>
>
>
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Dileep S
>
> 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.
>
> 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?
>
> Is there any property need to be add in *.WXS file?
>
> Thanks in advance.
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>


More information about the wix-users mailing list