Re: [WiX-users] FeatureTree: how to disable the feature selection ability if certain condition isn't met

2010-10-15 Thread jhennessey

1. MSI feature tree doesn't let you "grey out" the feature. However, you can
use a feature condition to totally remove it from the tree. If you do this
though you need to ensure that the feature is always enabled on remove or
else it will be orphaned. See Bob's post: 
http://www.joyofsetup.com/2008/05/16/make-sure-features-are-always-enabled-so-they-can-be-removed/
http://www.joyofsetup.com/2008/05/16/make-sure-features-are-always-enabled-so-they-can-be-removed/
.

2. The correct way to register a dll is to author the registry values in the
MSI (there is a ton of information on why running self-registering dlls is a
bad idea). Look up the information on heat...it will extract the registry
information and add it to your component.
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/FeatureTree-how-to-disable-the-feature-selection-ability-if-certain-condition-isn-t-met-tp5613038p5638642.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] FeatureTree: how to disable the feature selection ability if certain condition isn't met

2010-10-07 Thread little.forest
We have a feature which is an Outlook plugin. Two questions -

1. We allow the end user to install the feature only if the user has Outlook 
2007 or Outlook 2010. So I added some code to detect if Outlook is installed in 
target machine. Then when I installed it in a machine who doesn't have Outlook, 
I saw there is a 'X' mark on the feature itself. The feature is disabled. This 
is good. But the user can still change it to be "Will be installed on local 
hard 
drive.". Is there a way to disable the feature selection? Such as, grey out the 
feature selection on GUI in this case?

Here is my code:



FOUND_OUTLOOK2007 OR FOUND_OUTLOOK2010


2. We need to register a dll if the end user chooses to install the feature. If 
the user doesn't install the feature, then we shouldn't try to register the 
dll. 
I found a solution which seems working. But I'm not sure if it's the proper way 
to do it. Here is the code:
  (Not 
Installed) AND (&Feature_OutlookPlugin = 3)

Is this correct?

Thanks everyone.

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users