Because Windows doesn't preserve the values of those properties anywhere - 
that's up to you. Typically people save them in the registry and retrieve them 
with an AppSearch. 

Phil Wilson 


-----Original Message-----
From: cce91 [mailto:ell...@nortel.com] 
Sent: Monday, November 23, 2009 1:55 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] CustomActionData for uninstall


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



*** Confidentiality Notice: This e-mail, including any associated or attached 
files, is intended solely for the individual or entity to which it is 
addressed. This e-mail is confidential and may well also be legally privileged. 
If you have received it in error, you are on notice of its status. Please 
notify the sender immediately by reply e-mail and then delete this message from 
your system. Please do not copy it or use it for any purposes, or disclose its 
contents to any other person. This email comes from a division of the Invensys 
Group, owned by Invensys plc, which is a company registered in England and 
Wales with its registered office at Portland House, Bressenden Place, London, 
SW1E 5BF (Registered number 166023). For a list of European legal entities 
within the Invensys Group, please go to 
http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77. 
You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail 
inet.hqhelpd...@invensys.com. This e-mail and any attachments thereto may be 
subject to the terms of any agreements between Invensys (and/or its 
subsidiaries and affiliates) and the recipient (and/or its subsidiaries and 
affiliates).



------------------------------------------------------------------------------
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