Classification: Public
I have this in my files:
Bundle.wxs:
I have them all set to 1 by default so they are all checked by default...
<Variable Name="InstallClient1Checkbox" Type="numeric" bal:Overridable="yes"
Value="1" /> <Variable Name="InstallClient2Checkbox" Type="numeric"
bal:Overridable="yes" Value="1" /> <Variable Name="InstallClient3Checkbox"
Type="numeric" bal:Overridable="yes" Value="1" />
To install my 1st Client I have an install condition set: so if it is set to 0
won't install:
<MsiPackage Id="MainInstall_Client1"
DisplayName="$(var.Client1_ProductName)"
SourceFile="Client1.msi"
Name="Client1.msi"
InstallCondition="InstallClient1Checkbox = 1"
DisplayInternalUI="no"
Visible="no"
Cache="no"
Compressed="no"
Permanent="no"
Vital="yes">
</MsiPackage>
In my theme file: (in my case I have 3 checkboxes for the 3 clients I want to
install, I have this on the Install page, since I have changed options to be
the license page:
<Page Name="Install">
<Image X="00" Y="00" Width="160" Height="309" ImageFile="SideBanner.png"
Visible="no"/>
<Static X="0" Y="309" Width="495" Height="1" HexStyle="0x00000200L"
Visible="no"/>
<Text X="170" Y="20" Width="-11" Height="60" FontId="2"
DisablePrefix="yes">#(loc.InstallHeader)</Text>
<Text X="170" Y="100" Width="-11" Height="-129" FontId="3"
DisablePrefix="yes">#(loc.InstallMessage)</Text>
<Text X="11" Y="-11" Width="246" Height="17" FontId="4" DisablePrefix="yes"
Visible="no" TabStop="no">#(loc.InstallVersion)</Text>
<Checkbox Name="InstallClient1Checkbox" X="180" Y="180" Width="-11"
Height="17" FontId="3" TabStop="yes"
HideWhenDisabled="no">#(loc.Client1Checkbox)</Checkbox>
<Checkbox Name="InstallClient2Checkbox" X="180" Y="200" Width="-11"
Height="17" FontId="3" TabStop="yes"
HideWhenDisabled="no">#(loc.Client2Checkbox)</Checkbox>
<Checkbox Name="InstallClient3Checkbox" X="180" Y="220" Width="-11"
Height="17" FontId="3" TabStop="yes"
HideWhenDisabled="no">#(loc.Client3Checkbox)</Checkbox>
<Button Name="OptionsButton" X="314" Y="-11" Width="75" Height="23"
FontId="0" TabStop="yes">#(loc.InstallOptionsButton)</Button>
<Button Name="WelcomeCancelButton" X="404" Y="-11" Width="75" Height="23"
FontId="0" TabStop="yes">#(loc.InstallCancelButton)</Button>
</Page>
Check your bundle log file that is created in %temp%, i.e.:
It initializes the checkboxes:
[1804:1A70][2014-12-10T15:39:58]i000: Initializing numeric variable
'InstallClient1Checkbox' to value '1'
[1804:1A70][2014-12-10T15:39:58]i000: Initializing numeric variable
'InstallClient2Checkbox' to value '1'
[1804:1A70][2014-12-10T15:39:58]i000: Initializing numeric variable
'InstallClient3Checkbox' to value '1'
I de select the first two...
[1804:0A0C][2014-12-10T15:40:04]i000: Setting numeric variable
'InstallClient1Checkbox' to value 0
[1804:0A0C][2014-12-10T15:40:04]i000: Setting numeric variable
'InstallClient2Checkbox' to value 0
[1804:0A0C][2014-12-10T15:40:04]i000: Setting numeric variable
'InstallClient3Checkbox' to value 1
So only my 3rd client will install...
Cheers,
STeve
-----Original Message-----
From: garymonk [mailto:[email protected]]
Sent: December-10-14 3:24 PM
To: [email protected]
Subject: Re: [WiX-users] Install condition is not being set in options dialog
If I set the variable INSTALLSERVER to 1
<Variable Name="INSTALLSERVER" Value="1"/>
Then the checkbox is checked and the server install starts, but if I check the
checkbox in the options dialog it does not set the variable to 1.
garymonk wrote
> I have modified the RtfLicense theme to include a checkbox. The name
> of the checkbox is the same name as the variable name that I use in
> the install condition. When I execute the bundle and check the
> checkbox the variable is always false.
>
> bundle.was...
> <Variable Name="INSTALLSERVER" />
>
> <Chain>
>
> <ExePackage Cache="no"
> InstallCondition="INSTALLSERVER"
> Description="SQL Server and Server Bundle"
> Id="GuruServer"
> SourceFile="ServerSQLBundle.exe">
>
> </ExePackage>
> RtfTheme.xml
> <Page Name="Options">
>
> <Text X="11" Y="80" Width="-11" Height="30" FontId="2"
> DisablePrefix="yes">
> #(loc.OptionsHeader)
> </Text>
>
> <Text X="11" Y="120" Width="-11" Height="30" FontId="3"
> DisablePrefix="yes">
> #(loc.OptionsDescription)
> </Text>
>
*
> <Checkbox Name="INSTALLSERVER" X="11" Y="166" Width="260" Height="17"
> TabStop="yes" FontId="3">
> Install Guru Server
> </Checkbox>
*
>
> <Button Name="OptionsOkButton" X="229" Y="-11" Width="75" Height="23"
> TabStop="yes" FontId="0">
> #(loc.OptionsOkButton)
> </Button>
>
> <Button Name="InstallButton" X="314" Y="-11" Width="75" Height="23"
> TabStop="yes" FontId="0">
> #(loc.InstallInstallButton)
> </Button>
>
> <Button Name="WelcomeCancelButton" X="404" Y="-11" Width="75" Height="23"
> TabStop="yes" FontId="0">
> #(loc.InstallCloseButton)
> </Button>
>
> </Page>
> Thanks,
> Gary
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Install-condition-is-not-being-set-in-options-dialog-tp7598513p7598518.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate!
Instantly Supercharge Your Business Reports and Dashboards with Interactivity,
Sharing, Native Excel Exports, App Integration & more Get technology previously
reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
This message has been marked as Public by Steven Ogilvie on December-10-14
3:41:55 PM.
The above classification labels were added to the message by TITUS Message
Classification.
For more information visit www.titus.com.
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users