I have successfully accessed values in a deferred CustomAction using
CustomActionData, but it only works during the install. I want to do the
same thing for a CustomAction that runs during uninstall, but the value of
the CustomActionData is undefined.

    <CustomAction Id="SetUnDeployParams" Return="check" Property="UnDeploy"
Value="[DB_USER]|[DB_PW]|[WS_USER]|[WS_PW]" />
    <CustomAction Id="UnDeploy" JScriptCall="main" Property="UnDeployWAR" />

        <Custom Action='SetUnDeployParams'
After='MsiUnpublishAssemblies'>Installed AND NOT
UPGRADINGPRODUCTCODE</Custom>
      <Custom Action='UnDeploy' After='SetUnDeployParams'>Installed AND NOT
UPGRADINGPRODUCTCODE</Custom>

and in my 'UnDeploy' CustomAction:
         var params = Session.Property("CustomActionData").split("|");
         var dbuser = params[0];

But dbuser is always undefined. Why would this work for an install but not
an uninstall?
-- 
View this message in context: 
http://n2.nabble.com/CustomActionData-for-uninstall-tp4054293p4054293.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to