Re: [WiX-users] Unable to get install button to enable

2014-10-22 Thread garymonk
I was looking for the wrong Id in the detect routine.



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Unable-to-get-install-button-to-enable-tp7597419p7597433.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Unable to get install button to enable

2014-10-21 Thread garymonk
Hi,

I have an installer that will install either a client only, or both the
client and the server. The way I determine which one to install is by having
a custom ui with two check boxes. A variable is set and checked in the chain
to decide if one or both (client and server) is to be installed. When the ui
is started the the install button is disabled. 

What I need to have happen is when either of the check boxes is checked I
need the install button to enable. When the button is clicked I need to have
the install start.

The program is not currently listed in Programs and Features.

How do I enable the install button programmatically in C#?

*Bundle.wxs...*

?xml version=1.0 encoding=UTF-8?
Wix xmlns=http://schemas.microsoft.com/wix/2006/wi;
xmlns:bal=http://schemas.microsoft.com/wix/BalExtension;
  Bundle Copyright=Copyright© 2014, Guru Dental, LLC
Manufacturer=Guru Dental
Name=Guru
UpgradeCode={00BA23D8-FB98-43CD-A8A5-CB019552B375}
Version=6.0.4

BootstrapperApplicationRef Id=ManagedBootstrapperApplicationHost
  Payload SourceFile=\\SERVER\RedirectedFolders\gary.monk\My
Documents\Visual Studio 2013\Projects\Guru Install
Solution\GuruBA\bin\Debug\GuruBA.dll/
  Payload SourceFile=\\SERVER\RedirectedFolders\gary.monk\My
Documents\Visual Studio 2013\Projects\Guru Install
Solution\GuruBA\bin\Debug\BootstrapperCore.config/
  Payload SourceFile=\\SERVER\RedirectedFolders\gary.monk\My
Documents\Visual Studio 2013\Projects\Guru Install
Solution\GuruBA\bin\Debug\Microsoft.Practices.Prism.dll/
/BootstrapperApplicationRef

WixVariable Id=WixMbaPrereqPackageId Value=/
WixVariable Id=WixMbaPrereqLicenseUrl Value=/

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

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

*InstallView.xaml...*

Window x:Name=GuruInstaller x:Class=GuruBA.Views.InstallView

xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation;
 xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml;

xmlns:mc=http://schemas.openxmlformats.org/markup-compatibility/2006; 
 xmlns:d=http://schemas.microsoft.com/expression/blend/2008; 
 mc:Ignorable=d 
 d:DesignHeight=460 d:DesignWidth=700 ResizeMode=NoResize
Height=460 Width=700 
Icon=\\SERVER\RedirectedFolders\gary.monk\My
Documents\Visual Studio 2013\Projects\Guru Install
Solution\GuruBA\Images\guru.ico

Window.Resources




/Window.Resources

Grid ShowGridLines=False
Grid.RowDefinitions
RowDefinition Height=Auto/
RowDefinition/
RowDefinition Height=40/
RowDefinition Height=12/
/Grid.RowDefinitions
Grid.ColumnDefinitions
ColumnDefinition/
ColumnDefinition/
ColumnDefinition/
/Grid.ColumnDefinitions
StackPanel Grid.ColumnSpan=3 Margin=0,0,0,0
Style={StaticResource headerStyle}
Border BorderBrush=#FF7FBA00 BorderThickness=2
CornerRadius=8,8,3,3/
WrapPanel  Grid.Row=0 Grid.Column=0 Height=100 
WrapPanel Margin=0,10,10,10
Image Width=30 Margin=10,0,0,0 
   Source=\\SERVER\RedirectedFolders\gary.monk\My
Documents\Visual Studio 2013\Projects\Guru Install
Solution\GuruBA\Images\guru.ico/
/WrapPanel
StackPanel Grid.Row=0 Grid.Column=0 Margin=0,5,0,0 
TextBlock Text=Guru Installer VerticalAlignment=Top
Style={StaticResource headerBoldText} /
TextBlock Text=You have chosen to install this
software on your system VerticalAlignment=Top FontSize=14
Foreground=White/
/StackPanel
/WrapPanel
Border BorderBrush=#FF7FBA00 BorderThickness=2
CornerRadius=8,8,3,3/
/StackPanel
DockPanel Grid.Row=0 Grid.Column=3 LastChildFill=False
Image Width=180 Height=48 DockPanel.Dock=Right
VerticalAlignment=Bottom Margin=0,0,0,5
Source=\\SERVER\RedirectedFolders\gary.monk\My
Documents\Visual Studio 2013\Projects\Guru Install
Solution\GuruBA\Images\guru fax logo.png/
/DockPanel
DockPanel Grid.Row=1 Grid.Column=0 Style={StaticResource
headerStyle}
Grid
TextBlock