Thanks for the quick reply Rob. It appears to have something to do with
the custom action being deferred, even calling MsiSetProperty returns
the INVALID_HANDLE value. This dll method does a lot of things with
installed files, and it uses CustomActionData retrieved with
WcaGetProperty to retrieve the results of earlier logic from other dll
methods. This all works fine, only the call to WcaSetProperty (which I
am using to save some specific installation status for future reference
by yet another dll method) does not work. It actually looks like
hInstall is not valid by this time (after InstallFiles)? When I tried
making the CA immediate (just for grins), the WcaGetProperty immediately
stopped working. Is there no way to call WcaGetProperty and
WcaSetProperty in the same dll method? Should that CA be deferred or
immediate?
Thanks!
On 8/21/2013 4:56 PM, Rob Mensching wrote:
Code fore WcaSetProperty() is in src\ca\wcautil\wcawrap.cpp. Stepping
through may show you more info about what is going awry.
On Wed, Aug 21, 2013 at 1:26 PM, Karen Mattox <karenmat...@gmail.com
<mailto:karenmat...@gmail.com>> wrote:
I have an initialized (using WcaInitialize() I verified with
WcaIsInitialized()) method with a valid looking handle (value 44
retrieved with WcaGetInstallHandle(), the same as the original
hInstall that was passed into the method) that fails on a
WcaSetIntProperty or WcaSetProperty call with Error 0x80070006:
failed to set property. As best I can determine, this is probably
*ERROR_INVALID_HANDLE*. Which handle could be invalid? I tried to
set the property to a string "TRUE" and also to an integer value
of 1, both fail with the same error. The property was created in
my .wxs file with <Property Id='INSTALLSTATUS' Secure='yes'/>*.*
I cannot find any documentation of WcaSetProperty or
WcaSetIntProperty.**At the moment I have this:
hr = WcaSetIntProperty(L"INSTALLSTATUS", 1);
but I have also tried this
hr = WcaSetProperty(L"INSTALLSTATUS",L"TRUE");
Both fail with the same error code. I have set other properties in
a different custom action dll without any issues. Thanks.*
*
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance
Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
WiX-devs mailing list
WiX-devs@lists.sourceforge.net <mailto:WiX-devs@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/wix-devs
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
WiX-devs mailing list
WiX-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-devs
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
WiX-devs mailing list
WiX-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-devs