Hi,
I gathered a few related and unrelated questions. Your answers are
greatly appreciated.
* In installer UI, I know how to limit the input to a certain
max size: {max}, eg. Text="{24}". I tried to search for a reference for
these values, but I couldn't find anything. Is there a way to specify
something to force the user to enter only numbers or some other specific
format?
<Control Id="Host" Type="Edit" X="30" Y="80" Width="200"
Height="18" Property="CONSOLE_HOST" Text="{???}" />
* I'd like to disable a set of controls elegantly in the UI. I
have four inputs that I want to disable based on a radio button
selection. I have to do this for every control. Is there some kind of
grouping? This is my control below, see how the conditions are repeated.
<UI>
<Dialog Id="ScanEngineServiceDlg" Width="370" Height="270"
Title="!(loc.ScanEngineServiceDlg_Title)">
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56"
Height="17" Default="yes" Text="!(loc.WixUINext)" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56"
Height="17" Text="!(loc.WixUIBack)" />
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56"
Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
</Control>
<Control Id="Description" Type="Text" X="25" Y="23" Width="280"
Height="15" Transparent="yes" NoPrefix="yes"
Text="!(loc.ScanEngineServiceDlgDescription)" />
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15"
Transparent="yes" NoPrefix="yes" Text="!(loc.ScanEngineServiceDlgTitle)"
/>
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370"
Height="44" TabSkip="no" Text="!(loc.ScanEngineServiceDlgBannerBitmap)"
/>
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370"
Height="0" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370"
Height="0" />
<Control Id="ScanEngineServiceType" Type="RadioButtonGroup" X="20"
Y="50" Width="290" Height="40" Property="SCANENGINE_SERVICE_LOGON_TYPE">
<RadioButtonGroup Property="SCANENGINE_SERVICE_LOGON_TYPE">
<RadioButton Value="ScanEngineServiceLocalSystem" X="0" Y="0"
Width="290" Height="16" Text="!(loc.ScanEngineServiceLocalSystemText)"
/>
<RadioButton Value="ScanEngineServiceAccount" X="0" Y="20"
Width="290" Height="16" Text="!(loc.ScanEngineServiceAccountText)" />
</RadioButtonGroup>
</Control>
<Control Id="UsernameLabel" Type="Text" X="20" Y="100" Width="290"
Height="20" Text="!(loc.ScanEngineServiceUsernameLabel)">
<Condition Action="disable"><![CDATA[SCANENGINE_SERVICE_LOGON_TYPE
<> "ScanEngineServiceAccount"]]></Condition>
<Condition Action="enable"><![CDATA[SCANENGINE_SERVICE_LOGON_TYPE =
"ScanEngineServiceAccount"]]></Condition>
</Control>
<Control Id="Username" Type="Edit" X="30" Y="120" Width="200"
Height="18" Property="SCANENGINE_SERVICE_USERNAME" Text="{64}">
<Condition Action="disable"><![CDATA[SCANENGINE_SERVICE_LOGON_TYPE
<> "ScanEngineServiceAccount"]]></Condition>
<Condition Action="enable"><![CDATA[SCANENGINE_SERVICE_LOGON_TYPE =
"ScanEngineServiceAccount"]]></Condition>
</Control>
<Control Id="PasswordLabel" Type="Text" X="20" Y="150" Width="290"
Height="20" Text="!(loc.ScanEngineServicePasswordLabel)">
<Condition Action="disable"><![CDATA[SCANENGINE_SERVICE_LOGON_TYPE
<> "ScanEngineServiceAccount"]]></Condition>
<Condition Action="enable"><![CDATA[SCANENGINE_SERVICE_LOGON_TYPE =
"ScanEngineServiceAccount"]]></Condition>
</Control>
<Control Id="Password" Password="yes" Type="Edit" X="30" Y="170"
Width="200" Height="18" Property="SCANENGINE_SERVICE_PASSWORD">
<Condition Action="disable"><![CDATA[SCANENGINE_SERVICE_LOGON_TYPE
<> "ScanEngineServiceAccount"]]></Condition>
<Condition Action="enable"><![CDATA[SCANENGINE_SERVICE_LOGON_TYPE =
"ScanEngineServiceAccount"]]></Condition>
</Control>
</Dialog>
</UI>
* Given what I have above, how do I translate this properly to
the ServiceInstall-related credentials? I am letting the user choose
whether to run as Local System or a specific account.
* Given an account specified in this UI, how do I add a Test
button that will LogonUser? (Before I go code a custom action myself).
Thx
dB.
-dB.
dblock.org <http://www.dblock.org/> / foodcandy.com
<http://www.foodcandy.com/>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users