Re: [WiX-users] Install condition is not being set in options dialog [P]

2014-12-11 Thread garymonk
The problem is that I moved the install button from the EULA Welcome dialog
to the Options dialog. Because I do not click on the Ok button the variable
doesn't get set. 

Is the best way to handle this is to create a separate dialog for the server
option and remove the option dialog altogether?

Thanks,
Gary 



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Re-Install-condition-is-not-being-set-in-options-dialog-P-tp7598521p7598531.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=164703151iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Install condition is not being set in options dialog [P]

2014-12-11 Thread Steven Ogilvie
Classification: Public
What does your code look like in bundle and theme?

-Original Message-
From: garymonk [mailto:g...@gurudental.com]
Sent: December-11-14 11:51 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Install condition is not being set in options dialog 
[P]

The problem is that I moved the install button from the EULA Welcome dialog to 
the Options dialog. Because I do not click on the Ok button the variable 
doesn't get set. 

Is the best way to handle this is to create a separate dialog for the server 
option and remove the option dialog altogether?

Thanks,
Gary 



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Re-Install-condition-is-not-being-set-in-options-dialog-P-tp7598521p7598531.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=164703151iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

 
This message has been marked as Public by Steven Ogilvie on December-11-14 
12:24:30 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=164703151iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Install condition is not being set in options dialog [P]

2014-12-11 Thread garymonk
Here is the bundle...

Bundle Name=Guru Teach Installation Version=6.1.0.0 Manufacturer=Guru
Dental UpgradeCode=ef8d3106-2b45-4ff2-b95b-3d24b4ef5f2f
BootstrapperApplicationRef
Id=WixStandardBootstrapperApplication.RtfLicense
  bal:WixStandardBootstrapperApplication LicenseFile=C:\VS
Publish\Guru\Dependencies\License.rtf ThemeFile=gururtftheme.xml
LogoFile=images\guru-dental.png LocalizationFile=1033\gururtftheme.wxl/
  Payload Name=gururtftheme.wxl SourceFile=1033\gururtftheme.wxl /
  Payload Name=guru-dental.png SourceFile=images\guru-dental.png/
/BootstrapperApplicationRef

Variable Name=InstallServer Type=numeric bal:Overridable=yes
Value=0 /

Chain
  ExePackage Cache=no
  InstallCondition=InstallServer = 1
  Description=SQL Server and Guru Server Bundle
  Id=GuruServer
  SourceFile=\\SERVER\RedirectedFolders\gary.monk\My
Documents\Visual Studio 2013\Projects\Guru Install
Solution\GuruSQLBundle\bin\Debug\GuruSQLBundle.exe
  /ExePackage

  MsiPackage Cache=no
  Description=Guru Client
  Id=GuruClient
  DisplayInternalUI=yes
  SourceFile=\\SERVER\RedirectedFolders\gary.monk\My
Documents\Visual Studio 2013\Projects\Guru Install
Solution\GuruClientInstall\bin\Debug\GuruClientInstall.msi /
/Chain
/Bundle

Theme...

Page Name=Install
Richedit Name=EulaRichedit X=11 Y=80 Width=-11 Height=-70
TabStop=yes FontId=0 HexStyle=0x80 /
Checkbox Name=EulaAcceptCheckbox X=-11 Y=-41 Width=260
Height=17 TabStop=yes FontId=3
HideWhenDisabled=yes#(loc.InstallAcceptCheckbox)/Checkbox
Text X=11 Y=-11 Width=260 Height=17
FontId=3#(loc.InstallVersion)/Text
Button Name=OptionsButton X=-91 Y=-11 Width=75 Height=23
TabStop=yes FontId=0
HideWhenDisabled=yes#(loc.InstallOptionsButton)/Button
Button Name=WelcomeCancelButton X=-11 Y=-11 Width=75
Height=23 TabStop=yes FontId=0#(loc.InstallCloseButton)/Button
/Page
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=180 Y=180 Width=-11
Height=17 FontId=3 TabStop=yes
HideWhenDisabled=no#(loc.ServerInstallCheckbox)/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

What I'm trying to do is to have the option for installing server always be
displayed without the user having to click on a button. After displaying the
server option there isn't any point to going back to the welcome page.

Thanks for the help!

Gary



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Re-Install-condition-is-not-being-set-in-options-dialog-P-tp7598521p7598533.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=164703151iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Install condition is not being set in options dialog [P]

2014-12-10 Thread Steven Ogilvie
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=0x0200L 
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:g...@gurudental.com]
Sent: December-10-14 3:24 PM
To: wix-users@lists.sourceforge.net
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: 

Re: [WiX-users] Install condition is not being set in options dialog [P]

2014-12-10 Thread garymonk
I do not see anything in the log that shows that the checkbox is being
initialized. 

I copied the variable statement and the checkbox statement from your code
and changed the names and I still do not see anything in my log. 

My log looks like this...

[022C:2E6C][2014-12-10T16:51:33]i000: Setting numeric variable
'EulaAcceptCheckbox' to value 1
[022C:2E6C][2014-12-10T16:51:35]i000: Setting numeric variable
'EulaAcceptCheckbox' to value 1
[022C:5B60][2014-12-10T16:51:35]i200: Plan begin, 2 packages, action:
Install
[022C:5B60][2014-12-10T16:51:35]i052: Condition 'InstallServer = 1'
evaluates to false.
[022C:5B60][2014-12-10T16:51:35]w321: Skipping dependency registration on
package with no dependency providers: Server

I'd almost think that it wasn't using my theme file except that the option
dialog displays with the checkbox and text in the theme file.

I'm wondering why the EulaAcceptCheckbox is displayed twice?

Thanks,
Gary



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Re-Install-condition-is-not-being-set-in-options-dialog-P-tp7598521p7598524.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=164703151iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Install condition is not being set in options dialog [P]

2014-12-10 Thread Sean Hall
The logic for which page's controls get saved when you click which button
is hardcoded
https://github.com/wixtoolset/wix3/blob/develop/src/ext/BalExtension/wixstdba/WixStandardBootstrapperApplication.cpp.
Clicking the OptionsButton or the InstallButton saves the Install
page.  Clicking the OptionsOkButton saves the Options page.  Clicking
on the RepairButton or the UninstallButton saves the Modify page.

You'll only see the variable initialized in the log if you declare the
variable with a default value in the bundle.

On Wed, Dec 10, 2014 at 6:59 PM, garymonk g...@gurudental.com wrote:

 I do not see anything in the log that shows that the checkbox is being
 initialized.

 I copied the variable statement and the checkbox statement from your code
 and changed the names and I still do not see anything in my log.

 My log looks like this...

 [022C:2E6C][2014-12-10T16:51:33]i000: Setting numeric variable
 'EulaAcceptCheckbox' to value 1
 [022C:2E6C][2014-12-10T16:51:35]i000: Setting numeric variable
 'EulaAcceptCheckbox' to value 1
 [022C:5B60][2014-12-10T16:51:35]i200: Plan begin, 2 packages, action:
 Install
 [022C:5B60][2014-12-10T16:51:35]i052: Condition 'InstallServer = 1'
 evaluates to false.
 [022C:5B60][2014-12-10T16:51:35]w321: Skipping dependency registration on
 package with no dependency providers: Server

 I'd almost think that it wasn't using my theme file except that the option
 dialog displays with the checkbox and text in the theme file.

 I'm wondering why the EulaAcceptCheckbox is displayed twice?

 Thanks,
 Gary



 --
 View this message in context:
 http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Re-Install-condition-is-not-being-set-in-options-dialog-P-tp7598521p7598524.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=164703151iu=/4140/ostg.clktrk
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

--
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=164703151iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users