Skip to content

Commit

Permalink
Add NanaZipLegacyShell MSI installer.
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhngtu committed Feb 16, 2025
1 parent 9ee7b12 commit f558102
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 0 deletions.
15 changes: 15 additions & 0 deletions NanaZip.sln
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "K7Pal", "K7Pal\K7Pal.vcxpro
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NanaZipLegacyShell", "NanaZip.UI.Classic\NanaZipLegacyShell.vcxproj", "{F5C18E0D-AE2D-494D-9D28-0C435C8ED5C2}"
EndProject
Project("{B7DD6F7E-DEF8-4E67-B5B7-07EF123DB6F0}") = "NanaZipLegacyShellSetup", "NanaZipLegacyShellSetup\NanaZipLegacyShellSetup.wixproj", "{C86BA390-0452-4D92-8B37-067F1553BFA4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM64 = Debug|ARM64
Expand Down Expand Up @@ -271,6 +273,18 @@ Global
{F5C18E0D-AE2D-494D-9D28-0C435C8ED5C2}.Release|x64.Build.0 = Release|x64
{F5C18E0D-AE2D-494D-9D28-0C435C8ED5C2}.Release|x86.ActiveCfg = Release|Win32
{F5C18E0D-AE2D-494D-9D28-0C435C8ED5C2}.Release|x86.Build.0 = Release|Win32
{C86BA390-0452-4D92-8B37-067F1553BFA4}.Debug|ARM64.ActiveCfg = Debug|ARM64
{C86BA390-0452-4D92-8B37-067F1553BFA4}.Debug|ARM64.Build.0 = Debug|ARM64
{C86BA390-0452-4D92-8B37-067F1553BFA4}.Debug|x64.ActiveCfg = Debug|x64
{C86BA390-0452-4D92-8B37-067F1553BFA4}.Debug|x64.Build.0 = Debug|x64
{C86BA390-0452-4D92-8B37-067F1553BFA4}.Debug|x86.ActiveCfg = Debug|x86
{C86BA390-0452-4D92-8B37-067F1553BFA4}.Debug|x86.Build.0 = Debug|x86
{C86BA390-0452-4D92-8B37-067F1553BFA4}.Release|ARM64.ActiveCfg = Release|ARM64
{C86BA390-0452-4D92-8B37-067F1553BFA4}.Release|ARM64.Build.0 = Release|ARM64
{C86BA390-0452-4D92-8B37-067F1553BFA4}.Release|x64.ActiveCfg = Release|x64
{C86BA390-0452-4D92-8B37-067F1553BFA4}.Release|x64.Build.0 = Release|x64
{C86BA390-0452-4D92-8B37-067F1553BFA4}.Release|x86.ActiveCfg = Release|x86
{C86BA390-0452-4D92-8B37-067F1553BFA4}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -297,6 +311,7 @@ Global
{249B9FCE-0114-4EE9-A31E-C8A36EEA2279} = {1B20CAF2-FCA3-490D-BDD7-2D7DD439787A}
{279F7FA5-7DDC-4635-99B0-3C7F2179DAE0} = {1B20CAF2-FCA3-490D-BDD7-2D7DD439787A}
{F5C18E0D-AE2D-494D-9D28-0C435C8ED5C2} = {6666CFC3-1986-469A-9266-0FD8C2674DF6}
{C86BA390-0452-4D92-8B37-067F1553BFA4} = {6666CFC3-1986-469A-9266-0FD8C2674DF6}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {DE2C16C4-5306-4103-9C2A-749DC32B5CA6}
Expand Down
5 changes: 5 additions & 0 deletions NanaZipLegacyShellSetup/NanaZipLegacyShellSetup.wixproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project Sdk="WixToolset.Sdk/5.0.2">
<ItemGroup>
<ProjectReference Include="..\NanaZip.UI.Classic\NanaZipLegacyShell.vcxproj" />
</ItemGroup>
</Project>
8 changes: 8 additions & 0 deletions NanaZipLegacyShellSetup/Package.en-us.wxl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!--
This file contains the declaration of all the localizable strings.
-->
<WixLocalization xmlns="http://wixtoolset.org/schemas/v4/wxl" Culture="en-US">

<String Id="DowngradeError" Value="A newer version of [ProductName] is already installed." />

</WixLocalization>
49 changes: 49 additions & 0 deletions NanaZipLegacyShellSetup/Package.wxs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<Wix
xmlns="http://wixtoolset.org/schemas/v4/wxs"
xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
<Package
Name="NanaZip Legacy Shell Extensions"
Manufacturer="M2-Team"
Version="!(bind.fileVersion.NanaZipLegacyShell.dll)"
UpgradeCode="{49A00978-12FB-4443-A816-4F10D29C4B12}"
Scope="perUserOrMachine">
<MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeError)" />
<MediaTemplate EmbedCab="yes" />
<ComponentGroupRef Id="NanaZipLegacyShellComponents" />
</Package>

<Fragment>
<StandardDirectory Id="ProgramFiles6432Folder">
<Directory Id="INSTALLFOLDER" Name="NanaZipLegacyShell" />
</StandardDirectory>
</Fragment>

<Fragment>
<ComponentGroup Id="NanaZipLegacyShellComponents" Directory="INSTALLFOLDER">
<Component>
<File
Id="NanaZipLegacyShell.dll"
Source="$(SolutionDir)Output\Binaries\$(Configuration)\$(Platform)\NanaZipLegacyShell.dll" />
<Class Id="{542CE69A-6EA7-4D77-9B8F-8F56CEA2BF16}" Context="InprocServer32"
ThreadingModel="apartment" Advertise="yes" />
<Class Id="{23170F69-40C1-278A-1000-00FE00020000}" Context="InprocServer32"
ThreadingModel="apartment" Advertise="yes" />
</Component>
<Component>
<RegistryKey Root="HKCR" Key="Directory\shellex\CopyHookHandlers\NanaZipLegacyShell">
<RegistryValue Value="{542CE69A-6EA7-4D77-9B8F-8F56CEA2BF16}" />
</RegistryKey>
</Component>
<Component>
<RegistryKey Root="HKCR" Key="Directory\shellex\DragDropHandlers\NanaZipLegacyShell">
<RegistryValue Value="{23170F69-40C1-278A-1000-00FE00020000}" />
</RegistryKey>
</Component>
<Component>
<RegistryKey Root="HKCR" Key="Drive\shellex\DragDropHandlers\NanaZipLegacyShell">
<RegistryValue Value="{23170F69-40C1-278A-1000-00FE00020000}" />
</RegistryKey>
</Component>
</ComponentGroup>
</Fragment>
</Wix>

0 comments on commit f558102

Please sign in to comment.