This commit is contained in:
Meik
2026-03-05 09:56:57 +01:00
parent 838e6b1ee1
commit 4013fa8e32
827 changed files with 743038 additions and 0 deletions

233
Setup/Product.wxs Normal file
View File

@@ -0,0 +1,233 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Product Id="*"
Version="3.10.0.1"
Name="Customer Panel"
Manufacturer="Consulting4IT GmbH, Germany"
Language="1031"
UpgradeCode="74284999-5804-4BAA-859D-EA9FDDA554F0"
>
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Platform="x86"/>
<MajorUpgrade
DowngradeErrorMessage="A newer version of [ProductName] is already installed."
Schedule="afterInstallInitialize"
AllowSameVersionUpgrades="yes"/>
<Icon Id="Setup.ico" SourceFile="Img\logo_CustomerPanel.ico"/>
<WixVariable Id="WixUILicenseRtf" Value="License.rtf"/>
<WixVariable Id="WixUIBannerBmp" Value="Img\Banner.bmp"/>
<WixVariable Id="WixUIDialogBmp" Value="Img\Dialog.bmp"/>
<UIRef Id="WixUI_Dialogs" />
<Media Id="1" Cabinet="Install.cab" EmbedCab="yes" DiskPrompt="Setup.msi" />
<Property Id='DiskPrompt' Value="C4IT Customer Panel installation source" />
<Icon Id="CustomerPanelExeIcon" SourceFile="Source\Customer Panel.exe"/>
<Property Id="PARAM_M42SERVER" Secure="yes">
<RegistrySearch Id="PARAM_SERVER_REG"
Root="HKLM"
Key="Software\Consulting4IT GmbH\Customer Panel"
Name="MatrixServer"
Type="raw"/>
</Property>
<Property Id="PARAM_CUSTOMER_PANEL_TITLE" Secure="yes">
<RegistrySearch Id="PARAM_CUSTOMER_PANEL_TITLE_REG"
Root="HKLM"
Key="Software\Consulting4IT GmbH\Customer Panel"
Name="CustomerPanelTitle"
Type="raw"/>
</Property>
<Property Id="PARAM_CUSTOM_ANNOUNCEMENT_TEXT" Secure="yes">
<RegistrySearch Id="PARAM_CUSTOM_ANNOUNCEMENT_TEXT_REG"
Root="HKLM"
Key="Software\Consulting4IT GmbH\Customer Panel"
Name="CustomAnnouncementText"
Type="raw"/>
</Property>
<Property Id="PARAM_LAUNCHAPP" Value="1" Secure="yes"/>
<Property Id="PARAM_CREATESHORTCUT" Value="1" Secure="yes"/>
<Property Id="PARAM_AUTOSTART" Value="1" Secure="yes"/>
<Property Id="PARAM_LANGUAGE" Value="0" Secure="yes"/>
<Property Id="PARAM_PMODE" Value="0" Secure="yes"/>
<Property Id="PARAM_NOTIFIER" Value="1" Secure="yes"/>
<Property Id="PARAM_IPINFO_ONLY_IN_CORPORATENETWORK" Value="0" Secure="yes"/>
<Property Id="PARAM_ANNOUNCEMENT_VIEW" Value="0" Secure="yes"/>
<Property Id="PARAM_MSGATEWAY_TENANTID" Secure="yes"/>
<Property Id="PARAM_MSGATEWAY_APPID" Secure="yes"/>
<Property Id="PARAM_MSGATEWAY_SCOPE" Secure="yes"/>
<Property Id="PARAM_NO_FORMSAUTH" Value="0" Secure="yes"/>
<Property Id="ARPPRODUCTICON" Value="Setup.ico"/>
<PropertyRef Id="WIX_IS_NETFRAMEWORK_46_OR_LATER_INSTALLED"/>
<Condition Message="This application requires .NET Framework 4.6 Please install the .NET Framework then run this installer again."><![CDATA[Installed OR WIX_IS_NETFRAMEWORK_46_OR_LATER_INSTALLED]]></Condition>
<Feature Id="ProductFeature" Title="Customer Panel" Level="1" Absent="disallow">
<ComponentRef Id="ProgramMenuDir"/>
<ComponentGroupRef Id="ProductComponents" />
<Feature Id="MsGateway" Title="MS Gateway Authorisation Support" Level="100" Absent="allow">
<Condition Level="1">(PARAM_MSGATEWAY_TENANTID) AND (PARAM_MSGATEWAY_APPID) AND (PARAM_MSGATEWAY_SCOPE)</Condition>
<ComponentGroupRef Id="MsGatewayComponents" />
</Feature>
</Feature>
<CustomAction
Id="CA_LaunchApp"
Directory="INSTALLFOLDER"
ExeCommand="&quot;[INSTALLFOLDER]Customer Panel.exe&quot;"
Execute="immediate"
Return="asyncNoWait"
Impersonate="yes"/>
<InstallExecuteSequence>
<Custom Action="CA_LaunchApp" After="InstallFinalize">PARAM_LAUNCHAPP="1"</Custom>
</InstallExecuteSequence>
</Product>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="C4IT" Name="Consulting4IT">
<Directory Id="INSTALLFOLDER" Name="Customer Panel">
<Directory Id="INSTALLFOLDER_DE" Name="de"/>
<Directory Id="INSTALLFOLDER_EN" Name="en"/>
<Directory Id="RUNTIMES" Name="runtimes">
<Directory Id="WIN_ARM64" Name="win-arm64">
<Directory Id="WIN_ARM64_NATIVE" Name="native"/>
</Directory>
<Directory Id="WIN_X64" Name="win-x64">
<Directory Id="WIN_X64_NATIVE" Name="native"/>
</Directory>
<Directory Id="WIN_X86" Name="win-x86">
<Directory Id="WIN_X86_NATIVE" Name="native"/>
</Directory>
</Directory>
</Directory>
</Directory>
</Directory>
<Directory Id="ProgramMenuFolder" Name="Programs">
<Directory Id="ProgramMenuDir" Name="Customer Panel">
<Component Id="ProgramMenuDir" Guid="A29D4B9F-A7DE-44A2-958F-BA7C35BBDCD1">
<RemoveFolder Id='ProgramMenuDir' On="uninstall"/>
<RegistryValue Root="HKMU" Key="Software\Consulting4IT GmbH\Customer Panel" Type="string" Name="ProgramFolder" Value="1" KeyPath="yes" />
</Component>
</Directory>
</Directory>
</Directory>
</Fragment>
<Fragment>
<ComponentGroup Id="ProductComponents">
<Component Id="MainShortcutComponent" Guid="a4016c2b-0c76-4286-b045-73123c855f87" Directory="INSTALLFOLDER">
<Condition>PARAM_CREATESHORTCUT="1"</Condition>
<Shortcut Id="MainShortcut"
Directory="ProgramMenuDir"
Name="Customer Panel"
Target="[INSTALLFOLDER]Customer Panel.exe"
WorkingDirectory="INSTALLFOLDER"
Icon="CustomerPanelExeIcon"
IconIndex="0"
Description="Customer Panel starten"/>
<!-- Dummy registry value to make this component installable -->
<RegistryValue Root="HKCU"
Key="Software\Consulting4IT GmbH\Customer Panel"
Name="ShortcutInstalled"
Type="integer"
Value="1"
KeyPath="yes"/>
</Component>
<Component Id="MainExecutable" Guid="29155E76-CD15-45F6-AAC1-3520FF5A47C1" Directory="INSTALLFOLDER">
<File Id="C4IT_CustomerPanel.exe" Name="Customer Panel.exe" DiskId="1" Source="Source\Customer Panel.exe" KeyPath="yes"/>
<File Id="C4IT_CustomerPanel.exe.config" Name="Customer Panel.exe.config" DiskId="1" Source="Source\Customer Panel.exe.config" KeyPath="no"/>
<File Id="Newtonsoft.Json.dll" Name="Newtonsoft.Json.dll" DiskId="1" Source="Source\Newtonsoft.Json.dll" KeyPath="no"/>
<File Id="C4IT.API.Contracts.dll" Name="C4IT.API.Contracts.dll" DiskId="1" Source="Source\C4IT.API.Contracts.dll" KeyPath="no"/>
<File Id="ComputerInformationReport.dll" Name="ComputerInformationReport.dll" DiskId="1" Source="Source\ComputerInformationReport.dll" KeyPath="no"/>
<File Id="C4IT.Matrix.WebClient.dll" Name="C4IT.Matrix.WebClient.dll" DiskId="1" Source="Source\C4IT.Matrix.WebClient.dll" KeyPath="no"/>
</Component>
<Component Id="Executable_DE" Guid="B282CD59-D6F8-489B-AD25-58F343A298F1" Directory="INSTALLFOLDER_DE">
<File Id="DE_C4IT_CustomerPanel.resources.dll" Name="Customer Panel.resources.dll" DiskId="1" Source="Source\de\Customer Panel.resources.dll" KeyPath="no"/>
</Component>
<Component Id="WebView2_CoreDll" Guid="AA34D761-19A7-44D6-B3D5-C37F849D3D76" Directory="INSTALLFOLDER">
<File Id="Microsoft.Web.WebView2.Core.dll" Name="Microsoft.Web.WebView2.Core.dll" DiskId="1" Source="Source\Microsoft.Web.WebView2.Core.dll" KeyPath="yes"/>
</Component>
<Component Id="WebView2_WinFormsDll" Guid="C528A937-AB23-4EF7-9348-28F0A74F2D82" Directory="INSTALLFOLDER">
<File Id="Microsoft.Web.WebView2.WinForms.dll" Name="Microsoft.Web.WebView2.WinForms.dll" DiskId="1" Source="Source\Microsoft.Web.WebView2.WinForms.dll" KeyPath="yes"/>
</Component>
<Component Id="WebView2_WpfDll" Guid="D5D4F5E3-8B29-41BB-B4D5-CB4E0D8F781D" Directory="INSTALLFOLDER">
<File Id="Microsoft.Web.WebView2.Wpf.dll" Name="Microsoft.Web.WebView2.Wpf.dll" DiskId="1" Source="Source\Microsoft.Web.WebView2.Wpf.dll" KeyPath="yes"/>
</Component>
<Component Id="WebView2_LoaderWinX86" Guid="DCD947C7-4828-4828-98B3-DB7C03F2F20B" Directory="WIN_X86_NATIVE">
<File Id="WebView2Loader_x86" Name="WebView2Loader.dll" DiskId="1" Source="Source\runtimes\win-x86\native\WebView2Loader.dll" KeyPath="yes"/>
</Component>
<Component Id="WebView2_LoaderWinX64" Guid="6A58746F-3093-4C4A-8496-D4399B245B6B" Directory="WIN_X64_NATIVE">
<File Id="WebView2Loader_x64" Name="WebView2Loader.dll" DiskId="1" Source="Source\runtimes\win-x64\native\WebView2Loader.dll" KeyPath="yes"/>
</Component>
<Component Id="WebView2_LoaderWinARM64" Guid="CBBEFA2E-DA47-4E34-A29B-BA14E65B8D2B" Directory="WIN_ARM64_NATIVE">
<File Id="WebView2Loader_arm64" Name="WebView2Loader.dll" DiskId="1" Source="Source\runtimes\win-arm64\native\WebView2Loader.dll" KeyPath="yes"/>
</Component>
<Component Id="WindowsAPICodePack_CoreDll" Guid="0c59682d-6063-4793-824a-cf1df046a0e8" Directory="INSTALLFOLDER">
<File Id="Microsoft.WindowsAPICodePack.dll" Name="Microsoft.WindowsAPICodePack.dll" DiskId="1" Source="Source\Microsoft.WindowsAPICodePack.dll" KeyPath="yes"/>
</Component>
<Component Id="WindowsAPICodePack_ShellDll" Guid="ff500e4c-66a3-4f2d-b068-d60763a6f0e2" Directory="INSTALLFOLDER">
<File Id="Microsoft.WindowsAPICodePack.Shell.dll" Name="Microsoft.WindowsAPICodePack.Shell.dll" DiskId="1" Source="Source\Microsoft.WindowsAPICodePack.Shell.dll" KeyPath="yes"/>
</Component>
<Component Id="Autostart" Guid="B8D7B854-2FE2-4C8A-85B1-8D14834E2254" Directory="INSTALLFOLDER">
<Condition>PARAM_AUTOSTART="1"</Condition>
<RegistryValue Root="HKMU" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Run" Type="string" Name="C4IT Customer Panel" Value="&quot;[INSTALLFOLDER]Customer Panel.exe&quot;" KeyPath="yes"/>
</Component>
<Component Id="Configuration" Guid="CD303533-5F8B-490B-B0FF-EE4F81FFE9C9" Directory="INSTALLFOLDER">
<RegistryKey Key="Software\Consulting4IT GmbH\Customer Panel" Root="HKMU">
<RegistryValue Name="MatrixServer" Value="[PARAM_M42SERVER]" Type="string" />
<RegistryValue Name="CustomerPanelTitle" Value="[PARAM_CUSTOMER_PANEL_TITLE]" Type="string" />
<RegistryValue Name="CustomAnnouncementText" Value="[PARAM_CUSTOM_ANNOUNCEMENT_TEXT]" Type="string" />
<RegistryValue Name="MsGateway_TenantId" Value="[PARAM_MSGATEWAY_TENANTID]" Type="string" />
<RegistryValue Name="MsGateway_ApplicationId" Value="[PARAM_MSGATEWAY_APPID]" Type="string" />
<RegistryValue Name="MsGateway_Scope" Value="[PARAM_MSGATEWAY_SCOPE]" Type="string" />
<RegistryValue Name="Disable_FormBasesAuthentication" Value="[PARAM_NO_FORMSAUTH]" Type="integer" />
</RegistryKey>
</Component>
<Component Id="ConfigurationSecure" Guid="63046F4D-59E8-43FA-A4F6-559F3512FD3D" Directory="INSTALLFOLDER">
<RegistryKey Key="Software\Consulting4IT GmbH\Customer Panel" Root="HKMU">
<RegistryValue Name="isSecure" Value="1" Type="integer" />
</RegistryKey>
</Component>
<Component Id="ConfigurationIpInformation" Guid="6934490A-BC19-4C3A-83F5-3C025117E775" Directory="INSTALLFOLDER">
<RegistryKey Key="Software\Consulting4IT GmbH\Customer Panel" Root="HKMU">
<RegistryValue Name="ShowIpInfoOnlyInCorporateNetwork" Value="[PARAM_IPINFO_ONLY_IN_CORPORATENETWORK]" Type="integer" />
</RegistryKey>
</Component>
<Component Id="ConfigurationAnnouncmentView" Guid="dfcf5491-6adb-498e-a1b3-3c4eca0ef050" Directory="INSTALLFOLDER">
<RegistryKey Key="Software\Consulting4IT GmbH\Customer Panel" Root="HKMU">
<RegistryValue Name="AnnouncementView" Value="[PARAM_ANNOUNCEMENT_VIEW]" Type="integer" />
</RegistryKey>
</Component>
<Component Id="ConfigurationUser" Guid="6AFA7A25-3525-4808-8494-ABCCE172AF1C" Directory="INSTALLFOLDER">
<RegistryKey Key="Software\Consulting4IT GmbH\Customer Panel\DefaultUserSettings" Root="HKMU">
<RegistryValue Name="userLanguage" Value="[PARAM_LANGUAGE]" Type="integer" />
<RegistryValue Name="notifierEnabled" Value="[PARAM_NOTIFIER]" Type="integer" />
<RegistryValue Name="PresentationMode" Value="[PARAM_PMODE]" Type="integer" />
</RegistryKey>
</Component>
</ComponentGroup>
<ComponentGroup Id="MsGatewayComponents">
<Component Id="MsGatewayDlls" Guid="949E5142-F3CE-46AA-AAB2-838B33BAE514" Directory="INSTALLFOLDER">
<File Id="MsGatewayAuthentication.dll" Name="C4IT.Matrix.MsGatewayAuthentication.dll" DiskId="1" Source="Source\C4IT.Matrix.MsGatewayAuthentication.dll" KeyPath="yes"/>
<File Id="MsGatewayAuthentication.config" Name="C4IT.Matrix.MsGatewayAuthentication.dll.config" DiskId="1" Source="Source\C4IT.Matrix.MsGatewayAuthentication.dll.config" KeyPath="no"/>
<File Id="MicrosoftIdentityClient.dll" Name="Microsoft.Identity.Client.dll" DiskId="1" Source="Source\Microsoft.Identity.Client.dll" KeyPath="no"/>
<File Id="MicrosoftIdentityModelAbstractions.dll" Name="Microsoft.IdentityModel.Abstractions.dll" DiskId="1" Source="Source\Microsoft.IdentityModel.Abstractions.dll" KeyPath="no"/>
</Component>
</ComponentGroup>
</Fragment>
</Wix>