New additions.
This commit is contained in:
parent
47adf43407
commit
5115b49630
11 changed files with 4859 additions and 0 deletions
|
@ -0,0 +1,148 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!--
|
||||||
|
<copyright file="VerifyReadyDlg.wxs" company="Outercurve Foundation">
|
||||||
|
Copyright (c) 2004, Outercurve Foundation.
|
||||||
|
This software is released under Microsoft Reciprocal License (MS-RL).
|
||||||
|
The license and further copyright text can be found in the file
|
||||||
|
LICENSE.TXT at the root directory of the distribution.
|
||||||
|
</copyright>
|
||||||
|
-->
|
||||||
|
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
||||||
|
<Fragment>
|
||||||
|
<UI>
|
||||||
|
<Dialog Id="CustomVerifyReadyDlg" Width="370" Height="270" Title="!(loc.VerifyReadyDlg_Title)" TrackDiskSpace="yes">
|
||||||
|
<Control Id="Install" Type="PushButton" ElevationShield="yes" X="212" Y="243" Width="80" Height="17" Default="yes" Hidden="yes" Disabled="yes" Text="!(loc.VerifyReadyDlgInstall)">
|
||||||
|
<Condition Action="show">NOT Installed AND ALLUSERS</Condition>
|
||||||
|
<Condition Action="enable">NOT Installed</Condition>
|
||||||
|
<Condition Action="default">NOT Installed</Condition>
|
||||||
|
<Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
|
||||||
|
<Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</Publish>
|
||||||
|
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
|
||||||
|
<Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
|
||||||
|
<Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</Publish>
|
||||||
|
</Control>
|
||||||
|
<Control Id="InstallNoShield" Type="PushButton" ElevationShield="no" X="212" Y="243" Width="80" Height="17" Default="yes" Hidden="yes" Disabled="yes" Text="!(loc.VerifyReadyDlgInstall)">
|
||||||
|
<Condition Action="show">NOT Installed AND NOT ALLUSERS</Condition>
|
||||||
|
<Condition Action="enable">NOT Installed</Condition>
|
||||||
|
<Condition Action="default">NOT Installed</Condition>
|
||||||
|
<Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
|
||||||
|
<Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</Publish>
|
||||||
|
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
|
||||||
|
<Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
|
||||||
|
<Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</Publish>
|
||||||
|
</Control>
|
||||||
|
<Control Id="Change" Type="PushButton" ElevationShield="yes" X="212" Y="243" Width="80" Height="17" Default="yes" Hidden="yes" Disabled="yes" Text="!(loc.VerifyReadyDlgChange)">
|
||||||
|
<Condition Action="show">WixUI_InstallMode = "Change" AND ALLUSERS AND (ADDLOCAL OR REMOVE)</Condition>
|
||||||
|
<Condition Action="enable">WixUI_InstallMode = "Change"</Condition>
|
||||||
|
<Condition Action="default">WixUI_InstallMode = "Change"</Condition>
|
||||||
|
<Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
|
||||||
|
<Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</Publish>
|
||||||
|
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
|
||||||
|
<Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
|
||||||
|
<Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</Publish>
|
||||||
|
</Control>
|
||||||
|
<Control Id="ChangeNoShield" Type="PushButton" ElevationShield="no" X="212" Y="243" Width="80" Height="17" Default="yes" Hidden="yes" Disabled="yes" Text="!(loc.VerifyReadyDlgChange)">
|
||||||
|
<Condition Action="show">WixUI_InstallMode = "Change" AND (NOT ALLUSERS OR (NOT ADDLOCAL AND NOT REMOVE))</Condition>
|
||||||
|
<Condition Action="enable">WixUI_InstallMode = "Change"</Condition>
|
||||||
|
<Condition Action="default">WixUI_InstallMode = "Change"</Condition>
|
||||||
|
<Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
|
||||||
|
<Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</Publish>
|
||||||
|
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
|
||||||
|
<Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
|
||||||
|
<Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</Publish>
|
||||||
|
</Control>
|
||||||
|
<Control Id="Repair" Type="PushButton" X="212" Y="243" Width="80" Height="17" Default="yes" Hidden="yes" Disabled="yes" Text="!(loc.VerifyReadyDlgRepair)">
|
||||||
|
<Condition Action="show">WixUI_InstallMode = "Repair"</Condition>
|
||||||
|
<Condition Action="enable">WixUI_InstallMode = "Repair"</Condition>
|
||||||
|
<Condition Action="default">WixUI_InstallMode = "Repair"</Condition>
|
||||||
|
<Publish Event="ReinstallMode" Value="ecmus"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
|
||||||
|
<Publish Event="Reinstall" Value="All"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
|
||||||
|
<Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
|
||||||
|
<Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</Publish>
|
||||||
|
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
|
||||||
|
<Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
|
||||||
|
<Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</Publish>
|
||||||
|
</Control>
|
||||||
|
<Control Id="Remove" Type="PushButton" ElevationShield="yes" X="212" Y="243" Width="80" Height="17" Hidden="yes" Disabled="yes" Text="!(loc.VerifyReadyDlgRemove)">
|
||||||
|
<Condition Action="show">WixUI_InstallMode = "Remove" AND ALLUSERS</Condition>
|
||||||
|
<Condition Action="enable">WixUI_InstallMode = "Remove"</Condition>
|
||||||
|
<Publish Event="Remove" Value="All"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
|
||||||
|
<Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
|
||||||
|
<Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</Publish>
|
||||||
|
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
|
||||||
|
<Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
|
||||||
|
<Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</Publish>
|
||||||
|
</Control>
|
||||||
|
<Control Id="RemoveNoShield" Type="PushButton" ElevationShield="no" X="212" Y="243" Width="80" Height="17" Hidden="yes" Disabled="yes" Text="!(loc.VerifyReadyDlgRemove)">
|
||||||
|
<Condition Action="show">WixUI_InstallMode = "Remove" AND NOT ALLUSERS</Condition>
|
||||||
|
<Condition Action="enable">WixUI_InstallMode = "Remove"</Condition>
|
||||||
|
<Publish Event="Remove" Value="All"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
|
||||||
|
<Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
|
||||||
|
<Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</Publish>
|
||||||
|
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
|
||||||
|
<Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
|
||||||
|
<Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</Publish>
|
||||||
|
</Control>
|
||||||
|
<Control Id="Update" Type="PushButton" ElevationShield="yes" X="212" Y="243" Width="80" Height="17" Hidden="yes" Disabled="yes" Text="!(loc.VerifyReadyDlgUpdate)">
|
||||||
|
<Condition Action="show">WixUI_InstallMode = "Update" AND ALLUSERS</Condition>
|
||||||
|
<Condition Action="enable">WixUI_InstallMode = "Update"</Condition>
|
||||||
|
<Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
|
||||||
|
<Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</Publish>
|
||||||
|
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
|
||||||
|
<Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
|
||||||
|
<Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</Publish>
|
||||||
|
</Control>
|
||||||
|
<Control Id="UpdateNoShield" Type="PushButton" ElevationShield="no" X="212" Y="243" Width="80" Height="17" Hidden="yes" Disabled="yes" Text="!(loc.VerifyReadyDlgUpdate)">
|
||||||
|
<Condition Action="show">WixUI_InstallMode = "Update" AND NOT ALLUSERS</Condition>
|
||||||
|
<Condition Action="enable">WixUI_InstallMode = "Update"</Condition>
|
||||||
|
<Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
|
||||||
|
<Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</Publish>
|
||||||
|
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
|
||||||
|
<Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
|
||||||
|
<Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</Publish>
|
||||||
|
</Control>
|
||||||
|
|
||||||
|
<Control Id="InstallTitle" Type="Text" X="15" Y="15" Width="300" Height="15" Transparent="yes" NoPrefix="yes" Hidden="yes" Text="!(loc.VerifyReadyDlgInstallTitle)">
|
||||||
|
<Condition Action="show">NOT Installed</Condition>
|
||||||
|
</Control>
|
||||||
|
<Control Id="InstallText" Type="Text" X="25" Y="70" Width="320" Height="160" Hidden="yes" Text="!(loc.VerifyReadyDlgInstallText) [CUSTOM_INSTALL_TEXT]" Transparent="yes">
|
||||||
|
<Condition Action="show">NOT Installed</Condition>
|
||||||
|
</Control>
|
||||||
|
<Control Id="ChangeTitle" Type="Text" X="15" Y="15" Width="300" Height="15" Transparent="yes" NoPrefix="yes" Hidden="yes" Text="!(loc.VerifyReadyDlgChangeTitle)">
|
||||||
|
<Condition Action="show">WixUI_InstallMode = "Change"</Condition>
|
||||||
|
</Control>
|
||||||
|
<Control Id="ChangeText" Type="Text" X="25" Y="70" Width="320" Height="80" Hidden="yes" Text="!(loc.VerifyReadyDlgChangeText)">
|
||||||
|
<Condition Action="show">WixUI_InstallMode = "Change"</Condition>
|
||||||
|
</Control>
|
||||||
|
<Control Id="RepairTitle" Type="Text" X="15" Y="15" Width="300" Height="15" Transparent="yes" NoPrefix="yes" Hidden="yes" Text="!(loc.VerifyReadyDlgRepairTitle)">
|
||||||
|
<Condition Action="show">WixUI_InstallMode = "Repair"</Condition>
|
||||||
|
</Control>
|
||||||
|
<Control Id="RepairText" Type="Text" X="25" Y="70" Width="320" Height="80" Hidden="yes" NoPrefix="yes" Text="!(loc.VerifyReadyDlgRepairText)">
|
||||||
|
<Condition Action="show">WixUI_InstallMode = "Repair"</Condition>
|
||||||
|
</Control>
|
||||||
|
<Control Id="RemoveTitle" Type="Text" X="15" Y="15" Width="300" Height="15" Transparent="yes" NoPrefix="yes" Hidden="yes" Text="!(loc.VerifyReadyDlgRemoveTitle)">
|
||||||
|
<Condition Action="show">WixUI_InstallMode = "Remove"</Condition>
|
||||||
|
</Control>
|
||||||
|
<Control Id="RemoveText" Type="Text" X="25" Y="70" Width="320" Height="80" Hidden="yes" NoPrefix="yes" Text="!(loc.VerifyReadyDlgRemoveText)">
|
||||||
|
<Condition Action="show">WixUI_InstallMode = "Remove"</Condition>
|
||||||
|
</Control>
|
||||||
|
<Control Id="UpdateTitle" Type="Text" X="15" Y="15" Width="300" Height="15" Transparent="yes" NoPrefix="yes" Hidden="yes" Text="!(loc.VerifyReadyDlgUpdateTitle)">
|
||||||
|
<Condition Action="show">WixUI_InstallMode = "Update"</Condition>
|
||||||
|
</Control>
|
||||||
|
<Control Id="UpdateText" Type="Text" X="25" Y="70" Width="320" Height="80" Hidden="yes" NoPrefix="yes" Text="!(loc.VerifyReadyDlgUpdateText)">
|
||||||
|
<Condition Action="show">WixUI_InstallMode = "Update"</Condition>
|
||||||
|
</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>
|
||||||
|
<Control Id="Back" Type="PushButton" X="156" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)">
|
||||||
|
<Condition Action="default">WixUI_InstallMode = "Remove"</Condition>
|
||||||
|
</Control>
|
||||||
|
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.VerifyReadyDlgBannerBitmap)" />
|
||||||
|
<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" />
|
||||||
|
</Dialog>
|
||||||
|
</UI>
|
||||||
|
</Fragment>
|
||||||
|
</Wix>
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<configSections>
|
||||||
|
<section name="installer" type="WebsitePanel.Installer.Configuration.InstallerSection, WebsitePanel.Installer.Core"/>
|
||||||
|
</configSections>
|
||||||
|
<installer>
|
||||||
|
<!-- Installed components -->
|
||||||
|
<components/>
|
||||||
|
<!-- Studio settings -->
|
||||||
|
<settings>
|
||||||
|
<add key="Log.FileName" value="WebsitePanel.Installer.log" />
|
||||||
|
<add key="Web.Service" value="" />
|
||||||
|
<add key="Web.AutoCheck" value="False" />
|
||||||
|
<add key="Web.Proxy.UseProxy" value="false" />
|
||||||
|
<add key="Web.Proxy.Address" value="" />
|
||||||
|
<add key="Web.Proxy.UserName" value="" />
|
||||||
|
<add key="Web.Proxy.Password" value="" />
|
||||||
|
</settings>
|
||||||
|
</installer>
|
||||||
|
</configuration>
|
BIN
WebsitePanel.Installer/Sources/Setup.WIXInstaller/failmark.ico
Normal file
BIN
WebsitePanel.Installer/Sources/Setup.WIXInstaller/failmark.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
WebsitePanel.Installer/Sources/Setup.WIXInstaller/passmark.ico
Normal file
BIN
WebsitePanel.Installer/Sources/Setup.WIXInstaller/passmark.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,35 @@
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace WebsitePanel.WIXInstaller.Common
|
||||||
|
{
|
||||||
|
class InMemoryStringLogListener : TraceListener
|
||||||
|
{
|
||||||
|
private const string Format = "[{0}] Message: {1}";
|
||||||
|
static private StringBuilder m_Ctx;
|
||||||
|
string m_id;
|
||||||
|
static InMemoryStringLogListener()
|
||||||
|
{
|
||||||
|
m_Ctx = new StringBuilder();
|
||||||
|
}
|
||||||
|
public InMemoryStringLogListener(string InstanceID)
|
||||||
|
: base(InstanceID)
|
||||||
|
{
|
||||||
|
m_id = InstanceID;
|
||||||
|
}
|
||||||
|
public override void Write(string Value)
|
||||||
|
{
|
||||||
|
WriteLog(Value);
|
||||||
|
}
|
||||||
|
public override void WriteLine(string Value)
|
||||||
|
{
|
||||||
|
WriteLog(Value + Environment.NewLine);
|
||||||
|
}
|
||||||
|
[Conditional("DEBUG")]
|
||||||
|
private void WriteLog(string Value)
|
||||||
|
{
|
||||||
|
m_Ctx.Append(string.Format(Format, m_id, Value));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,19 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace WebsitePanel.WIXInstaller.Common
|
||||||
|
{
|
||||||
|
internal struct Prop
|
||||||
|
{
|
||||||
|
public const int REQ_IIS_MINIMUM = 6;
|
||||||
|
public const string REQ_LOG = "PI_PREREQ_LOG";
|
||||||
|
public const string REQ_OS = "PI_PREREQ_OS";
|
||||||
|
public const string REQ_IIS = "PI_PREREQ_IIS";
|
||||||
|
public const string REQ_IIS_MAJOR = "PI_PREREQ_IIS_MAJOR";
|
||||||
|
public const string REQ_IIS_MINOR = "PI_PREREQ_IIS_MINOR";
|
||||||
|
public const string REQ_ASPNET = "PI_PREREQ_ASPNET";
|
||||||
|
public const string REQ_SERVER = "PI_PREREQ_WP_SERVER";
|
||||||
|
public const string REQ_ESERVER = "PI_PREREQ_WP_ESERVER";
|
||||||
|
public const string REQ_PORTAL = "PI_PREREQ_WP_PORTAL";
|
||||||
|
public const string REQ_WDPORTAL = "PI_PREREQ_WP_WDPORTAL";
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,36 @@
|
||||||
|
using Microsoft.Deployment.WindowsInstaller;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using WebsitePanel.Setup;
|
||||||
|
|
||||||
|
namespace WebsitePanel.WIXInstaller.Common
|
||||||
|
{
|
||||||
|
internal static class Tool
|
||||||
|
{
|
||||||
|
public static SetupVariables GetSetupVars(Session Ctx)
|
||||||
|
{
|
||||||
|
return new SetupVariables
|
||||||
|
{
|
||||||
|
SetupAction = SetupActions.Install,
|
||||||
|
IISVersion = Global.IISVersion
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void FillServerVariables(SetupVariables Vars)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void FillEServerVariables(SetupVariables Vars)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void FillPortalVariables(SetupVariables Vars)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,79 @@
|
||||||
|
using System;
|
||||||
|
using Microsoft.Deployment.WindowsInstaller;
|
||||||
|
|
||||||
|
namespace WebsitePanel.WIXInstaller.Common.Util
|
||||||
|
{
|
||||||
|
internal interface IListCtrl
|
||||||
|
{
|
||||||
|
ulong Count { get; }
|
||||||
|
string Id { get; }
|
||||||
|
void AddItem(Record Item);
|
||||||
|
}
|
||||||
|
|
||||||
|
internal abstract class ListCtrlBase : IListCtrl
|
||||||
|
{
|
||||||
|
private Session m_Ctx;
|
||||||
|
private string m_CtrlType;
|
||||||
|
private string m_CtrlId;
|
||||||
|
private View m_View;
|
||||||
|
private ulong m_Count;
|
||||||
|
|
||||||
|
public ListCtrlBase(Session session, string CtrlType, string CtrlId)
|
||||||
|
{
|
||||||
|
m_Ctx = session;
|
||||||
|
m_CtrlType = CtrlType;
|
||||||
|
m_CtrlId = CtrlId;
|
||||||
|
m_View = null;
|
||||||
|
m_Count = 0;
|
||||||
|
Initialize();
|
||||||
|
}
|
||||||
|
|
||||||
|
~ListCtrlBase()
|
||||||
|
{
|
||||||
|
if (m_View != null)
|
||||||
|
m_View.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
public virtual ulong Count { get { return m_Count; } }
|
||||||
|
|
||||||
|
public virtual string Id { get { return m_CtrlId; } }
|
||||||
|
|
||||||
|
public virtual void AddItem(Record Item)
|
||||||
|
{
|
||||||
|
m_View.Execute(Item);
|
||||||
|
++m_Count;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Initialize()
|
||||||
|
{
|
||||||
|
m_Ctx.Database.Execute(string.Format("DELETE FROM `{0}` WHERE `Property`='{1}'", m_CtrlType, m_CtrlId));
|
||||||
|
m_View = m_Ctx.Database.OpenView(m_Ctx.Database.Tables[m_CtrlType].SqlInsertString + " TEMPORARY");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class ListViewCtrl : ListCtrlBase
|
||||||
|
{
|
||||||
|
public ListViewCtrl(Session session, string WiXListID) : base(session, "ListView", WiXListID)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void AddItem(bool Checked, string Value)
|
||||||
|
{
|
||||||
|
AddItem(new Record(new object[] { Id, Count, Value, Value, Checked ? "passmark" : "failmark" }));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class ComboBoxCtrl : ListCtrlBase
|
||||||
|
{
|
||||||
|
public ComboBoxCtrl(Session session, string WiXComboID): base(session, "ComboBox", WiXComboID)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void AddItem(string Value)
|
||||||
|
{
|
||||||
|
AddItem(new Record(new object[] { Id, Count, Value, Value }));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,26 @@
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using Microsoft.Deployment.WindowsInstaller;
|
||||||
|
|
||||||
|
namespace WebsitePanel.WIXInstaller.Common
|
||||||
|
{
|
||||||
|
public class WiXLogListener : TraceListener
|
||||||
|
{
|
||||||
|
private Session m_Ctx;
|
||||||
|
public WiXLogListener(Session Ctx)
|
||||||
|
: base("WiXLogListener")
|
||||||
|
{
|
||||||
|
m_Ctx = Ctx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Write(string Value)
|
||||||
|
{
|
||||||
|
m_Ctx.Log(Value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void WriteLine(string Value)
|
||||||
|
{
|
||||||
|
m_Ctx.Log(Value + Environment.NewLine);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace WebsitePanel.WIXInstaller.Common
|
||||||
|
{
|
||||||
|
internal struct YesNo
|
||||||
|
{
|
||||||
|
public static string Yes { get { return "1"; } }
|
||||||
|
|
||||||
|
public static string No { get { return "0"; } }
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue