| <?xml version="1.0" encoding="UTF-8"?> |
| |
| <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> |
| <Fragment> |
| <Property Id="ADMINUSER" Hidden="yes" /> |
| <Property Id="ADMINPASSWORD" Hidden="yes" /> |
| <UI> |
| <Dialog Id="AdminPromptDlg" Width="370" Height="270" Title="Create Administrator Account"> |
| <Control Id="Title" Type="Text" X="20" Y="20" Width="220" Height="30" Transparent="yes" NoPrefix="yes" Text="{\WixUI_Font_Emphasized}Create CouchDB Admin User" /> |
| <Control Id="Description" Type="Text" X="20" Y="50" Width="220" Height="40" Transparent="yes" NoPrefix="yes" Text="{\WixUI_Font_Emphasized}CouchDB 3.x+ requires an admin user to start. Existing credentials will not be overwritten." /> |
| <Control Id="UserLabel" Type="Text" Width="322" Height="10" X="20" Y="110" Text="Account name (Example: admin):" /> |
| <Control Id="UserTextbox" Type="Edit" Width="200" Height="15" X="20" Y="123" Property="ADMINUSER" /> |
| <Control Id="PassLabel" Type="Text" Width="322" Height="10" X="20" Y="147" Text="Password:" /> |
| <Control Id="PassTextbox" Type="Edit" Width="200" Height="15" X="20" Y="160" Password="yes" Property="ADMINPASSWORD" /> |
| <Control Id="Validate" Type="PushButton" Width="100" Height="15" X="20" Y="180" Text="Validate Credentials" /> |
| <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" /> |
| <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" /> |
| <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)"> |
| <Condition Action="disable"><![CDATA[(ADMINUSER = "") OR (ADMINPASSWORD = "")]]></Condition> |
| <Condition Action="enable"><![CDATA[(ADMINUSER <> "") AND (ADMINPASSWORD <> "")]]></Condition> |
| |
| <Publish Property="ADMINUSER" Value="[ADMINUSER]">1</Publish> |
| <Publish Property="ADMINPASSWORD" Value="[ADMINPASSWORD]">1</Publish> |
| </Control> |
| <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> |
| </Dialog> |
| </UI> |
| </Fragment> |
| </Wix> |
| |