Re: [WiX-users] Disable feature when property is empty

2006-10-05 Thread vbtricks

Thanks, got it to work with the following source

  Feature Id=FirefoxExtension Level=1001 Title=Extension for
Mozilla Firefox Description=Extension for Mozilla Firefox
TypicalDefault=install InstallDefault=followParent
ComponentRef Id=jsFile /
ComponentRef Id=overlay /
ComponentRef Id=pngIcon /
ComponentRef Id=StyleSheet /
ComponentRef Id=ManifestChrome /
ComponentRef Id=rdfInstall /
Condition Level=0FIREFOX_INSTALL_VERSION=/Condition
  /Feature

Stefan
-- 
View this message in context: 
http://www.nabble.com/Disable-feature-when-property-is-empty-tf2323552.html#a6637061
Sent from the wix-users mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Disable feature when property is empty

2006-09-24 Thread Mark Weaver
vbtricks wrote:
 Salut,
 
 well, seems I have to set Level to 0 to disable the feature. But there's
 still an error, if [FIREFOX_INSTALL_VERSION] is empty, the feature is not
 disabled. That's my condition:
 
 Condition Level=0[FIREFOX_INSTALL_VERSION] NOT /Condition
 
 Can you help me again?
 
 
Reverse the test, set the level of the feature to 0 and then increase it 
in the condition if firefox is installed.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Disable feature when property is empty

2006-09-24 Thread Mike Dimmick
Title: Re: [WiX-users] Disable feature when property is empty



The [] brackets are used for columns with a Formatted data type in the tables. They are not needed and will cause problems if used in Condition columns.

See Conditional Statement Syntax on MSDN: http://msdn.microsoft.com/library/default.asp?url="">.

For details on the Formatted data type, see http://msdn.microsoft.com/library/default.asp?url="">.

A number of other data types do require [] to expand properties, so I can see where the confusion arises, but Condition is not one of them.

-- 
Mike Dimmick


From: [EMAIL PROTECTED] on behalf of Mark WeaverSent: Sun 24/09/2006 11:19To: vbtricksCc: wix-users@lists.sourceforge.netSubject: Re: [WiX-users] Disable feature when property is empty

vbtricks wrote: Salut, well, seems I have to set Level to 0 to disable the feature. But there's still an error, if [FIREFOX_INSTALL_VERSION] is empty, the feature is not disabled. That's my condition: Condition Level="0"[FIREFOX_INSTALL_VERSION] NOT ""/Condition Can you help me again?Reverse the test, set the level of the feature to 0 and then increase itin the condition if firefox is installed.-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT  business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___WiX-users mailing listWiX-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wix-users-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Disable feature when property is empty

2006-09-24 Thread Kalle Olavi Niemitalo
Mark Weaver [EMAIL PROTECTED] writes:

 vbtricks wrote:
 Condition Level=0[FIREFOX_INSTALL_VERSION] NOT /Condition

Use this: Condition Level=0NOT FIREFOX_INSTALL_VERSION/Condition

 Reverse the test, set the level of the feature to 0 and then increase it 
 in the condition if firefox is installed.

Beware!  Windows Installer ignores the Condition table when
making an administrative installation.  So if Feature.Level is 0,
then msiexec /a does not install the files of that feature.

http://msdn.microsoft.com/library/en-us/msi/setup/costfinalize_action.asp


pgpqG8KFXlC3T.pgp
Description: PGP signature
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Disable feature when property is empty

2006-09-23 Thread Rob Mensching
Do what the error message says.  Remove the unexpected attribute Action
and add a Level attribute.  The documentation explains when each attribute
should be used:
http://wix.sourceforge.net/manual-wix2/wix_xsd_condition.htm


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of vbtricks
Sent: Saturday, September 23, 2006 10:05
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Disable feature when property is empty


Salut,

still working on the integration of my Firefox-PlugIn into the setup.
Installing now works fine, the only thing left to do is to disable the
feature, if Firefox is not installed.
If Firefox is installed, the property [FIREFOX_INSTALL_PATH] will contain
the path.
Based on this I wanted to insert a condition within the feature-tag:

Feature Id=FirefoxExtension Level=1001 Title=Extension for Mozilla
Firefox
  Description=Extension for Mozilla Firefox TypicalDefault=install
InstallDefault=local

  ComponentRef Id=jsFile /
  ComponentRef Id=overlay /
  ComponentRef Id=pngIcon /
  ComponentRef Id=StyleSheet /
  ComponentRef Id=ManifestChrome /
  ComponentRef Id=rdfInstall /
  Condition Action=disable[FIREFOX_INSTALL_PATH]=/Condition
/Feature

But when I try to compile the setup, I receive
D:\zSetup\Setup.wxs(160) : error CNDL0004 : The Condition element contains
an unexpected attribute 'Action'.
D:\zSetup\Setup.wxs(160) : error CNDL0011 : The Condition/@Level attribute
was not found; it is required.

How to solve this?


Thanks in advance,

Stefan
--
View this message in context:
http://www.nabble.com/Disable-feature-when-property-is-empty-tf2323552.html#
a6464362
Sent from the wix-users mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's
Techsay panel and you'll get the chance to share your opinions on IT 
business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users