Re: [WiX-users] Setting a property, conditionally on selection of a feature in Custom install
So is it possible to write to these variables as well? I'd like to be able to pass in a property on the command line (or from a custom action) that will set the state of the feature tree for a custom install. The goal is to make it simple for admins to script installations that deploy components A and B or A and C, and not just ABC (as you'd do with INSTALLLEVEL). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Roberts Sent: Tuesday, April 10, 2007 1:51 AM To: Bob Arnson Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Setting a property, conditionally on selection of a feature in Custom install Thanks Bob, exactly what I was after; Publish ...amps;ServerFeature = 3/Publish Cool. Dave. - Original message - From: Bob Arnson [EMAIL PROTECTED] To: David Roberts [EMAIL PROTECTED] Cc: wix-users@lists.sourceforge.net Date: Mon, 09 Apr 2007 21:43:40 - 0700 Subject: Re: [WiX-users] Setting a property, conditionally on selection of a feature in Custom install David Roberts wrote: Is there a way that I can test whether a feature has been selected in a Custom Install scenario as a condition elsewhere in the installer? See Conditional Statement Syntax in the MSI SDK. -- sig://boB http://bobs.org - 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=DEVDE V ___ 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
Re: [WiX-users] Setting a property, conditionally on selection of a feature in Custom install
Chris Bardon wrote: So is it possible to write to these variables as well? No, they're read-only. To mark a feature for install, you can use the ADDLOCAL property. -- sig://boB http://bobs.org - 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] Setting a property, conditionally on selection of a feature in Custom install
Thanks, that looks like it might do what I want. The side effect so far seems to be that I now have to either specify everything I want to add, or nothing. For example, if I have 3 features (F1, F2, F3) with different install levels (1,2,3), the install level seems to be ignored if I use ADDLOCAL. This means that if I set the INSTALLLEVEL to 2, normally F1 and F2 would be installed. If I call the MSI with ADDLOCAL=F3 though (and don't touch the INSTALLLEVEL) ONLY F3 is selected. I'm not sure if this is counterintuitive, but I'd think that ADDLOCAL would supplement the level, not supercede it. This would mean that in my example, all three features would be installed, regardless of the level. Is there a way to do this, or do I have to explicitly list every feature when I use ADDLOCAL? -Original Message- From: Bob Arnson [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 10, 2007 11:41 AM To: Chris Bardon Cc: David Roberts; wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Setting a property, conditionally on selection of a feature in Custom install Chris Bardon wrote: So is it possible to write to these variables as well? No, they're read-only. To mark a feature for install, you can use the ADDLOCAL property. -- sig://boB http://bobs.org - 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] Setting a property, conditionally on selection of a feature in Custom install
Chris Bardon wrote: Is there a way to do this, or do I have to explicitly list every feature when I use ADDLOCAL? When you specify ADDLOCAL (or any of the other 10 properties that control feature selection), MSI sets the Preselected property. The SDK implies but doesn't explicitly state that the Condition table is ignored but I can see that makes sense, given that there'd be no other way of selecting just the features you want. You can use ALL as the ADDLOCAL property value and then list other features in the REMOVE property value. The doc covers precedence. -- sig://boB http://bobs.org - 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] Setting a property, conditionally on selection of a feature in Custom install
Thanks Bob, exactly what I was after; Publish ...amps;ServerFeature = 3/Publish Cool. Dave. - Original message - From: Bob Arnson [EMAIL PROTECTED] To: David Roberts [EMAIL PROTECTED] Cc: wix-users@lists.sourceforge.net Date: Mon, 09 Apr 2007 21:43:40 - 0700 Subject: Re: [WiX-users] Setting a property, conditionally on selection of a feature in Custom install David Roberts wrote: Is there a way that I can test whether a feature has been selected in a Custom Install scenario as a condition elsewhere in the installer? See Conditional Statement Syntax in the MSI SDK. -- sig://boB http://bobs.org - 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