I am new to WIX, so I didn't know this was bad practice. How do you "author the 
actual registry values"? 


Thanks,
Greg


Greg Dodd
Towers Watson - Developer
3500 Lenox Road
Atlanta, GA. 30326
404-365-1692
404-365-1660
gregory.d...@towerswatson.com

-----Original Message-----
From: jhennessey [mailto:jack.hennes...@hyland.com] 
Sent: February 8, 2012 7:56 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] CustomAction not running

Disclaimer: As you probably know, it is a bad practice to register files this 
way during installation. The preferred way is to author the actual registry 
values that get written during registration.

Ignoring the disclaimer, you shouldn't rely on using the value of the ADDLOCAL 
property. Instead, use the feature or component state to condition your custom 
actions. Using component state is the preferred way so your conditions should 
be:

<InstallExecuteSequence>
  <Custom Action='Register' After='InstallFiles'>$StaticBinaries = 3</Custom>
  <Custom Action='Unregister' Before='RemoveFiles'>$StaticBinaries = 2</Custom> 
</InstallExecuteSequence>

See this page for more details (I recommend bookmarking it): 
http://msdn.microsoft.com/en-us/library/windows/desktop/aa368012%28v=vs.85%29.aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/aa368012%28v=vs.85%29.aspx
 

--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/CustomAction-not-running-tp7263897p7265626.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers is just 
$99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style 
Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Notice of Confidentiality 
This transmission contains information that may be confidential.  It has been 
prepared for the sole and exclusive use of the intended recipient and on the 
basis agreed with that person.  If you are not the intended recipient of the 
message (or authorized to receive it for the intended recipient), you should 
notify us immediately; you should delete it from your system and may not 
disclose its contents to anyone else.

This e-mail has come to you from Towers Watson Delaware Inc.

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to