feat(installer): add ui and allow upgrades correctly
This commit is contained in:
parent
8d9b5a6a4b
commit
0a8a9e1e53
|
@ -1,17 +1,38 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
||||||
<Product Id="B0180BA2-96D4-49FE-9091-C8A0B3E991F1" Name="XIVChat for Windows" Language="1033" Version="1.0.0.0"
|
<Product Id="*" Name="XIVChat for Windows" Language="1033" Version="1.0.2"
|
||||||
Manufacturer="XIVChat"
|
Manufacturer="XIVChat"
|
||||||
UpgradeCode="D792BC67-EE1E-46D7-8C68-1A794875E1D1">
|
UpgradeCode="D792BC67-EE1E-46D7-8C68-1A794875E1D1">
|
||||||
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine"/>
|
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine"/>
|
||||||
|
|
||||||
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed."/>
|
<MajorUpgrade
|
||||||
|
DowngradeErrorMessage="A newer version of [ProductName] is already installed."
|
||||||
|
AllowSameVersionUpgrades="yes"/>
|
||||||
<MediaTemplate EmbedCab="yes"/>
|
<MediaTemplate EmbedCab="yes"/>
|
||||||
|
|
||||||
<Feature Id="ProductFeature" Title="XIVChat for Windows" Level="1">
|
<Feature Id="ProductFeature" Title="XIVChat for Windows" Level="1">
|
||||||
<ComponentGroupRef Id="XIVChat_Desktop"/>
|
<ComponentGroupRef Id="XIVChat_Desktop"/>
|
||||||
<ComponentRef Id="App_Start_Menu_Shortcut"/>
|
<ComponentRef Id="App_Start_Menu_Shortcut"/>
|
||||||
</Feature>
|
</Feature>
|
||||||
|
|
||||||
|
<UI>
|
||||||
|
<UIRef Id="WixUI_InstallDir"/>
|
||||||
|
<Publish Dialog="WelcomeDlg"
|
||||||
|
Control="Next"
|
||||||
|
Event="NewDialog"
|
||||||
|
Value="InstallDirDlg"
|
||||||
|
Order="2">
|
||||||
|
1
|
||||||
|
</Publish>
|
||||||
|
<Publish Dialog="InstallDirDlg"
|
||||||
|
Control="Back"
|
||||||
|
Event="NewDialog"
|
||||||
|
Value="WelcomeDlg"
|
||||||
|
Order="2">
|
||||||
|
1
|
||||||
|
</Publish>
|
||||||
|
</UI>
|
||||||
|
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER"/>
|
||||||
</Product>
|
</Product>
|
||||||
|
|
||||||
<Fragment>
|
<Fragment>
|
||||||
|
@ -26,18 +47,26 @@
|
||||||
|
|
||||||
<DirectoryRef Id="ApplicationProgramsFolder">
|
<DirectoryRef Id="ApplicationProgramsFolder">
|
||||||
<Component Id="App_Start_Menu_Shortcut" Guid="6EF30C67-2EAA-4988-8470-E1149D5C1B50">
|
<Component Id="App_Start_Menu_Shortcut" Guid="6EF30C67-2EAA-4988-8470-E1149D5C1B50">
|
||||||
<Shortcut Id="ApplicationStartMenuShortcut" Name="XIVChat for Windows"
|
<Shortcut Id="ApplicationStartMenuShortcut"
|
||||||
Target="[INSTALLFOLDER]XIVChat Desktop.exe" WorkingDirectory="INSTALLFOLDER">
|
Name="XIVChat for Windows"
|
||||||
|
Target="[INSTALLFOLDER]XIVChat Desktop.exe"
|
||||||
|
WorkingDirectory="INSTALLFOLDER">
|
||||||
<!-- AUMID -->
|
<!-- AUMID -->
|
||||||
<ShortcutProperty Key="System.AppUserModel.ID" Value="XIVChat.XIVChat_Desktop"/>
|
<ShortcutProperty Key="System.AppUserModel.ID"
|
||||||
|
Value="XIVChat.XIVChat_Desktop"/>
|
||||||
|
|
||||||
<!-- COM CLSID -->
|
<!-- COM CLSID -->
|
||||||
<ShortcutProperty Key="System.AppUserModel.ToastActivatorCLSID"
|
<ShortcutProperty Key="System.AppUserModel.ToastActivatorCLSID"
|
||||||
Value="{F12BCC85-6FEE-4A9A-BBB8-08DFAA7BE1A8}"/>
|
Value="{F12BCC85-6FEE-4A9A-BBB8-08DFAA7BE1A8}"/>
|
||||||
</Shortcut>
|
</Shortcut>
|
||||||
<RemoveFolder Id="RemoveApplicationProgramsFolder" Directory="ApplicationProgramsFolder"
|
<RemoveFolder Id="RemoveApplicationProgramsFolder"
|
||||||
|
Directory="ApplicationProgramsFolder"
|
||||||
On="uninstall"/>
|
On="uninstall"/>
|
||||||
<RegistryValue Root="HKCU" Key="Software\XIVChat for Windows" Name="installed" Type="integer" Value="1"
|
<RegistryValue Root="HKCU"
|
||||||
|
Key="Software\XIVChat for Windows"
|
||||||
|
Name="installed"
|
||||||
|
Type="integer"
|
||||||
|
Value="1"
|
||||||
KeyPath="yes"/>
|
KeyPath="yes"/>
|
||||||
</Component>
|
</Component>
|
||||||
</DirectoryRef>
|
</DirectoryRef>
|
||||||
|
|
|
@ -27,6 +27,10 @@
|
||||||
<HintPath>$(WixExtDir)\WixBalExtension.dll</HintPath>
|
<HintPath>$(WixExtDir)\WixBalExtension.dll</HintPath>
|
||||||
<Name>WixBalExtension</Name>
|
<Name>WixBalExtension</Name>
|
||||||
</WixExtension>
|
</WixExtension>
|
||||||
|
<WixExtension Include="WixUIExtension">
|
||||||
|
<HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath>
|
||||||
|
<Name>WixUIExtension</Name>
|
||||||
|
</WixExtension>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " />
|
<Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " />
|
||||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') " />
|
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') " />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user