Re: [WiX-users] Property value not changing properly

2010-03-04 Thread Alex Wernecke
Fantastic. Thanks for your help, got it working.

Regards,

Alex

-Original Message-
From: Lisa Gracias [mailto:lisathelugubri...@gmail.com] 
Sent: Wednesday, March 03, 2010 2:49 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Property value not changing properly

I had the same problem. Apparently, Feature conditions that include
properties set during the UI sequence won't work as expected. Instead,
use
the AddLocal and Remove events.
This should shed some light on the issue:
http://www.joyofsetup.com/2007/05/30/feature-conditions-and-ui/

On Wed, Mar 3, 2010 at 5:11 PM, Alex Wernecke
awerne...@finteq.co.zawrote:

 Hi,



 I have a problem with a condition that checks a property's value in
 order to set the LEVEL for a FEATURE



 Here is my code



 PROPERTY that is used by the RADIOBUTTONGROUP :



 Property Id=SETUPNUMBER Secure=yes Value=1/Property



 I have tried leaving the value out, changing to different etc etc but
 compiler errors occur then...



 FEATURE :



 Feature Id='Type1_Installation'

   Title='Type1' Description='Installs Files Required for
 Type1 Setup.'

   Level='3000'

   InstallDefault='local'

   

  Condition Level=SETUPNUMBER=2/Condition

ComponentRef Id='Type1Files'/

 /Feature

 Feature Id='Type2_Installation'

   Title='Type2' Description='Installs Files Required for
 Type2 Setup.'

   Level='1000'

   InstallDefault='local'

   

 /Feature



 Feature Id='Type3_Installation'

   Title='Type3' Description='Installs Files Required for
 Type2 Setup.'

   Level='2000'

   InstallDefault='local'/Feature









 RADIOBUTTONGROUP :



 Control Type=RadioButtonGroup Id=Type Width=160 Height=160
 X=40 Y=80 Property=SETUPNUMBER

  RadioButtonGroup Property=SETUPNUMBER

RadioButton Text=Type1 Height=17 Value=1 Width=50
 X=0 Y=0/

RadioButton Text=Type2 Height=17 Value=2 Width=50
 X=0 Y=25 /

RadioButton Text=Type3 Height=17 Value=3 Width=110
 X=0 Y=50 /

RadioButton Text=Type4 Height=17 Value=4 Width=160
 X=0 Y=120/

  /RadioButtonGroup

/Control



 This sets the SETUPNUMBER Properties value to 1,2,3 or 4 depending on
 the selected radiobutton.

 I know this working because the following code works properly as
 expected if the property has changed accordingly :



 Control Id=Next Type=PushButton X=236 Y=243 Width=56
 Height=17 Default=yes Text=!(loc.WixUINext)

  !-Type1--

  Publish Event=SetInstallLevel Value=2000
 Order=1SETUPNUMBER=1/Publish

  Publish Event=NewDialog Value=InstallDirDlg Order=2
 SETUPNUMBER=1/Publish

  !--Type2--

  Publish Event=SetInstallLevel Value=3000
 Order=6SETUPNUMBER=2/Publish

  Publish Event=NewDialog Value=InstallDirDlg
 Order=7SETUPNUMBER=2/Publish

  !--Type3--

  Publish Event=SetInstallLevel Value=1000
 Order=5SETUPNUMBER=3/Publish

  Publish Event=NewDialog Value=InstallDirDlg
 Order=7SETUPNUMBER=3)/Publish

/Control





 For some reason the property's value that is read by the condition in
 the features section is the same value as the value in the property
 declaration. And not the value of the selected radiobutton?



 How would I get this to work??



 Many thanks,



 Alex






--
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
 

__ Information from ESET Smart Security, version of virus
signature database 4911 (20100303) __

The message was checked by ESET Smart Security.

http://www.eset.com
  

__ Information from ESET Smart Security, version of virus
signature database 4913 (20100303) __

The message was checked by ESET Smart Security.

http://www.eset.com
 
 

__ Information from ESET Smart Security, version of virus
signature database 4913 (20100303) __

The message was checked by ESET Smart

[WiX-users] Property value not changing properly

2010-03-03 Thread Alex Wernecke
Hi,



I have a problem with a condition that checks a property's value in
order to set the LEVEL for a FEATURE

 

Here is my code

 

PROPERTY that is used by the RADIOBUTTONGROUP :

 

Property Id=SETUPNUMBER Secure=yes Value=1/Property

 

I have tried leaving the value out, changing to different etc etc but
compiler errors occur then...

 

FEATURE :

 

Feature Id='Type1_Installation' 

   Title='Type1' Description='Installs Files Required for
Type1 Setup.' 

   Level='3000' 

   InstallDefault='local'

   

  Condition Level=SETUPNUMBER=2/Condition

ComponentRef Id='Type1Files'/

/Feature

Feature Id='Type2_Installation' 

   Title='Type2' Description='Installs Files Required for
Type2 Setup.' 

   Level='1000' 

   InstallDefault='local'

   

/Feature

 

Feature Id='Type3_Installation' 

   Title='Type3' Description='Installs Files Required for
Type2 Setup.' 

   Level='2000' 

   InstallDefault='local'/Feature

 

 

 

 

RADIOBUTTONGROUP :

 

Control Type=RadioButtonGroup Id=Type Width=160 Height=160
X=40 Y=80 Property=SETUPNUMBER  

  RadioButtonGroup Property=SETUPNUMBER

RadioButton Text=Type1 Height=17 Value=1 Width=50
X=0 Y=0/

RadioButton Text=Type2 Height=17 Value=2 Width=50
X=0 Y=25 /

RadioButton Text=Type3 Height=17 Value=3 Width=110
X=0 Y=50 /

RadioButton Text=Type4 Height=17 Value=4 Width=160
X=0 Y=120/

  /RadioButtonGroup

/Control 

 

This sets the SETUPNUMBER Properties value to 1,2,3 or 4 depending on
the selected radiobutton.

I know this working because the following code works properly as
expected if the property has changed accordingly :

 

Control Id=Next Type=PushButton X=236 Y=243 Width=56
Height=17 Default=yes Text=!(loc.WixUINext)  

  !-Type1--

  Publish Event=SetInstallLevel Value=2000
Order=1SETUPNUMBER=1/Publish

  Publish Event=NewDialog Value=InstallDirDlg Order=2
SETUPNUMBER=1/Publish

  !--Type2--

  Publish Event=SetInstallLevel Value=3000
Order=6SETUPNUMBER=2/Publish

  Publish Event=NewDialog Value=InstallDirDlg
Order=7SETUPNUMBER=2/Publish

  !--Type3--

  Publish Event=SetInstallLevel Value=1000
Order=5SETUPNUMBER=3/Publish

  Publish Event=NewDialog Value=InstallDirDlg
Order=7SETUPNUMBER=3)/Publish

/Control

 

 

For some reason the property's value that is read by the condition in
the features section is the same value as the value in the property
declaration. And not the value of the selected radiobutton?

 

How would I get this to work?? 

 

Many thanks,

 

Alex

 

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Property value not changing properly

2010-03-03 Thread Lisa Gracias
I had the same problem. Apparently, Feature conditions that include
properties set during the UI sequence won’t work as expected. Instead, use
the AddLocal and Remove events.
This should shed some light on the issue:
http://www.joyofsetup.com/2007/05/30/feature-conditions-and-ui/

On Wed, Mar 3, 2010 at 5:11 PM, Alex Wernecke awerne...@finteq.co.zawrote:

 Hi,



 I have a problem with a condition that checks a property's value in
 order to set the LEVEL for a FEATURE



 Here is my code



 PROPERTY that is used by the RADIOBUTTONGROUP :



 Property Id=SETUPNUMBER Secure=yes Value=1/Property



 I have tried leaving the value out, changing to different etc etc but
 compiler errors occur then...



 FEATURE :



 Feature Id='Type1_Installation'

   Title='Type1' Description='Installs Files Required for
 Type1 Setup.'

   Level='3000'

   InstallDefault='local'

   

  Condition Level=SETUPNUMBER=2/Condition

ComponentRef Id='Type1Files'/

 /Feature

 Feature Id='Type2_Installation'

   Title='Type2' Description='Installs Files Required for
 Type2 Setup.'

   Level='1000'

   InstallDefault='local'

   

 /Feature



 Feature Id='Type3_Installation'

   Title='Type3' Description='Installs Files Required for
 Type2 Setup.'

   Level='2000'

   InstallDefault='local'/Feature









 RADIOBUTTONGROUP :



 Control Type=RadioButtonGroup Id=Type Width=160 Height=160
 X=40 Y=80 Property=SETUPNUMBER

  RadioButtonGroup Property=SETUPNUMBER

RadioButton Text=Type1 Height=17 Value=1 Width=50
 X=0 Y=0/

RadioButton Text=Type2 Height=17 Value=2 Width=50
 X=0 Y=25 /

RadioButton Text=Type3 Height=17 Value=3 Width=110
 X=0 Y=50 /

RadioButton Text=Type4 Height=17 Value=4 Width=160
 X=0 Y=120/

  /RadioButtonGroup

/Control



 This sets the SETUPNUMBER Properties value to 1,2,3 or 4 depending on
 the selected radiobutton.

 I know this working because the following code works properly as
 expected if the property has changed accordingly :



 Control Id=Next Type=PushButton X=236 Y=243 Width=56
 Height=17 Default=yes Text=!(loc.WixUINext)

  !-Type1--

  Publish Event=SetInstallLevel Value=2000
 Order=1SETUPNUMBER=1/Publish

  Publish Event=NewDialog Value=InstallDirDlg Order=2
 SETUPNUMBER=1/Publish

  !--Type2--

  Publish Event=SetInstallLevel Value=3000
 Order=6SETUPNUMBER=2/Publish

  Publish Event=NewDialog Value=InstallDirDlg
 Order=7SETUPNUMBER=2/Publish

  !--Type3--

  Publish Event=SetInstallLevel Value=1000
 Order=5SETUPNUMBER=3/Publish

  Publish Event=NewDialog Value=InstallDirDlg
 Order=7SETUPNUMBER=3)/Publish

/Control





 For some reason the property's value that is read by the condition in
 the features section is the same value as the value in the property
 declaration. And not the value of the selected radiobutton?



 How would I get this to work??



 Many thanks,



 Alex




 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users