Hi, 

I didn't find a possible way to get the regkey value. So, I decided to use an 
elevated custom action to read the regkey.

However, I met with another issue. 

>From my understanding since my customaction needs to be elevated, so it must 
>be executed as deferred. However, deferred custom action cannot use session 
>directly. How can I pass back this value to wix (or another custom action)? I 
>must pass it back to wix for some sql operation. 

My custom action is written in C# using 
Microsoft.Deployment.WindowsInstaller.dll

Any help is appreciated. 

Thanks 
Nan

-----Original Message-----
From: Nan Zang [mailto:naz...@microsoft.com] 
Sent: Wednesday, March 5, 2014 1:33 PM
To: General discussion for Windows Installer XML toolset. 
(wix-users@lists.sourceforge.net)
Subject: [WiX-users] read a regkey with special permission

Hi,

  I am trying to read a regkey value in the msi. But, this regkey has special 
ACL set on it, which only allows Local System/Administrator to read it.

 I am using RegistrySearch Element to read the regkey.  The operation will work 
if the msi is launched through elevated cmd window. But, if launched normally, 
the operation will fail with error.

  "Info 1402. Could not open key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Test\.  
System error 5.  Verify that you have sufficient access to that key, or contact 
your support personnel."

Could you recommend any solution to get this regkey value? At this point, we 
prefer to avoid custom action if possible.

Thanks
Nan
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the 
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to