Skip to content

Instantly share code, notes, and snippets.

@meitinger
Last active July 10, 2016 15:50
Show Gist options
  • Save meitinger/69f235415408dfe30f4ccb55eef2bb65 to your computer and use it in GitHub Desktop.
Save meitinger/69f235415408dfe30f4ccb55eef2bb65 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>3.5</ProductVersion>
<ProjectGuid>{067360aa-dfef-4477-8061-3ff6ef8d601e}</ProjectGuid>
<SchemaVersion>2.0</SchemaVersion>
<OutputName>7-Zip</OutputName>
<OutputType>Package</OutputType>
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' AND '$(MSBuildExtensionsPath32)' != '' ">$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
<BaseInputPaths>src\</BaseInputPaths>
<DefineConstants>Debug</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
<BaseInputPaths>src\</BaseInputPaths>
<SuppressBuildInfo>true</SuppressBuildInfo>
<SignOutput>true</SignOutput>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
<OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
<BaseInputPaths>src\</BaseInputPaths>
<DefineConstants>Debug</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
<OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
<BaseInputPaths>src\</BaseInputPaths>
<SuppressBuildInfo>true</SuppressBuildInfo>
<SignOutput>true</SignOutput>
</PropertyGroup>
<ItemGroup>
<Compile Include="7-Zip.wxs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="7-Zip.wxl" />
</ItemGroup>
<Import Project="$(WixTargetsPath)" />
<Target Name="SignMsi" Condition=" '$(Configuration)' == 'Release' ">
<Exec Command="signtool.exe sign /a &quot;$(TargetPath)&quot;" />
</Target>
</Project>
<?xml version="1.0" encoding="Windows-1252"?>
<!--
Copyright (C) 2011-2016, Manuel Meitinger
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<WixLocalization Codepage="1252" Culture="de-de" xmlns="http://schemas.microsoft.com/wix/2006/localization">
<String Id="Name">7-Zip</String>
<String Id="Description">Freies Packprogramm mit einer hohen Kompressionsrate.</String>
<String Id="Language">1031</String>
<String Id="DowngradeErrorMessage">Eine neuere Version von [ProductName] ist bereits installiert.</String>
<String Id="Wow6432ErrorMessage">Dieses Installationsprogramm ist auf Ihrem Computer nicht unterstützt. Verwenden Sie das 64 bit-Installationsprogramm.</String>
<String Id="LanguageFileName">de</String>
<String Id="ShellExtension">7-Zip Shellerweiterung</String>
<String Id="_7zExtension">7-Zip-Archiv</String>
<String Id="_arjExtension">ARJ-Archiv</String>
<String Id="_bz2Extension">bzip2-komprimierte Datei</String>
<String Id="_bzip2Extension">bzip2-komprimierte Datei</String>
<String Id="_cpioExtension">cpio-Archiv</String>
<String Id="_gzExtension">gzip-komprimierte Datei</String>
<String Id="_gzipExtension">gzip-komprimierte Datei</String>
<String Id="_lhaExtension">LHA-komprimierte Datei</String>
<String Id="_lzhExtension">LHA-komprimierte Datei</String>
<String Id="_lzmaExtension">LZMA-komprimierte Datei</String>
<String Id="_rarExtension">WinRAR-Archiv</String>
<String Id="_tarExtension">Tar-Archiv</String>
<String Id="_tazExtension">Compress-komprimiertes Tar-Archiv</String>
<String Id="_tbzExtension">bzip2-komprimiertes Tar-Archiv</String>
<String Id="_tbz2Extension">bzip2-komprimiertes Tar-Archiv</String>
<String Id="_tgzExtension">gzip-komprimiertes Tar-Archiv</String>
<String Id="_tpzExtension">TPZ-Archiv</String>
<String Id="_txzExtension">LZMA2-komprimiertes Tar-Archiv</String>
<String Id="_xzExtension">LZMA2-komprimierte Datei</String>
<String Id="_zExtension">Compress-komprimierte Datei</String>
<String Id="_cabExtension">Cabinet-Archiv</String>
<String Id="_zipExtension">ZIP-komprimiertes Archiv</String>
<String Id="_001Extension">Geteiltes Archiv</String>
<String Id="_debExtension">Debian-Paketdatei</String>
<String Id="_dmgExtension">Apple-Abbilddatei</String>
<String Id="_fatExtension">FAT-Abbild</String>
<String Id="_hfsExtension">HFS-Abbild</String>
<String Id="_isoExtension">ISO-9660-CD-Abbild</String>
<String Id="_ntfsExtension">NTFS-Abbild</String>
<String Id="_rpmExtension">RedHat-Paketdatei</String>
<String Id="_squashfsExtension">SquashFS-Abbild</String>
<String Id="_swmExtension">Geteiltes Windows-Installationsabbild</String>
<String Id="_vhdExtension">Virtuelle Festplattendatei</String>
<String Id="_wimExtension">Windows-Installationsabbild</String>
<String Id="_xarExtension">XAR-Archiv</String>
</WixLocalization>
<?xml version="1.0" encoding="Windows-1252"?>
<!--
Copyright (C) 2011-2016, Manuel Meitinger
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<?define ShellExtension = {23170F69-40C1-278A-1000-000100020000}?>
<?define AssociatedExtensions = 7z;arj;bz2;bzip2;cpio;gz;gzip;lha;lzh;lzma;rar;tar;taz;tbz;tbz2;tgz;tpz;txz;xz;z?>
<?define CompressedExtensions = cab;zip;$(var.AssociatedExtensions)?>
<?define SupportedExtensions = 001;deb;dmg;fat;hfs;iso;ntfs;rpm;squashfs;swm;vhd;wim;xar;$(var.CompressedExtensions)?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Name="!(loc.Name)" Language="!(loc.Language)" Version="!(bind.fileVersion._7zFM.exe)" Manufacturer="Igor Pavlov" UpgradeCode="602F7F7CBAB4407FB48D20C942882892" Codepage="1252">
<Package Id="*" InstallerVersion="200" Compressed="yes" Platform="$(var.Platform)" InstallPrivileges="elevated" InstallScope="perMachine" />
<Media Id="1" Cabinet="_7z.cab" EmbedCab="yes" CompressionLevel="high" />
<Property Id="ARPNOMODIFY" Value="1" />
<Property Id="ARPPRODUCTICON" Value="_7z.exe" />
<?if $(var.Platform) != x64?>
<Condition Message="!(loc.Wow6432ErrorMessage)"><![CDATA[NOT VersionNT64]]></Condition>
<?endif?>
<MajorUpgrade AllowSameVersionUpgrades="yes" DowngradeErrorMessage="!(loc.DowngradeErrorMessage)" />
<Icon Id="_7z.exe" SourceFile="7-Zip.ico" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramMenuFolder" />
<?if $(var.Platform) = x64?>
<Directory Id="WindowsFolder" />
<?define ProgramFiles = ProgramFiles64Folder?>
<?else?>
<?define ProgramFiles = ProgramFilesFolder?>
<?endif?>
<Directory Id="$(var.ProgramFiles)">
<Directory Id="_7zFolder" Name="7-Zip">
<Directory Id="LanguageFolder" Name="Lang" />
</Directory>
</Directory>
</Directory>
<Feature Id="_7z">
<!-- files -->
<?foreach File in 7z.dll;7z.exe;7z.sfx;7zCon.sfx;7zG.exe;7-zip.chm;7-zip.dll;History.txt;License.txt;readme.txt?>
<Component Directory="_7zFolder">
<File KeyPath="yes" Source="$(var.Platform)\$(var.File)" />
</Component>
<?endforeach?>
<Component Directory="_7zFolder">
<File KeyPath="yes" Source="$(var.Platform)\7zFM.exe">
<Shortcut Id="_7zFM.exe" Advertise="yes" Name="!(loc.Name)" Directory="ProgramMenuFolder" Description="!(loc.Description)" Icon="_7z.exe" />
</File>
</Component>
<Component Directory="LanguageFolder">
<File Id="lang.txt" KeyPath="yes" Source="$(var.Platform)\Lang\!(loc.LanguageFileName).txt" />
</Component>
<?if $(var.Platform) = x64?>
<Component Directory="_7zFolder">
<File KeyPath="yes" Source="x64\7-zip32.dll" />
</Component>
<?endif?>
<!-- perceived-as-compressed extensions -->
<?foreach Extension in $(var.CompressedExtensions)?>
<Component Directory="_7zFolder" Guid="">
<RegistryValue KeyPath="yes" Root="HKCR" Key=".$(var.Extension)" Name="PerceivedType" Value="compressed" Type="string" />
</Component>
<?endforeach?>
<!-- application capabilities -->
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKLM" Key="SOFTWARE\RegisteredApplications" Name="7-Zip" Value="SOFTWARE\7-Zip\Capabilities" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKLM" Key="SOFTWARE\7-Zip\Capabilities" Name="ApplicationName" Value="!(loc.Name)" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKLM" Key="SOFTWARE\7-Zip\Capabilities" Name="ApplicationDescription" Value="!(loc.Description)" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKLM" Key="SOFTWARE\7-Zip\Capabilities\MIMEAssociations" Name="application/x-7z-compressed" Value="7-Zip.7z" Type="string" />
</Component>
<?foreach Extension in $(var.SupportedExtensions)?>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKLM" Key="SOFTWARE\7-Zip\Capabilities\FileAssociations" Name=".$(var.Extension)" Value="7-Zip.$(var.Extension)" Type="string" />
</Component>
<?endforeach?>
<!-- application registration -->
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\7zFM.exe" Value="[_7zFolder]7zFM.exe" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\7zFM.exe" Name="Path" Value="[_7zFolder]" Type="string" />
</Component>
<!-- mime registration -->
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="MIME\Database\Content Type\application/x-7z-compressed" Name="Extension" Value=".7z" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key=".7z" Name="Content Type" Value="application/x-7z-compressed" Type="string" />
</Component>
<!-- archive extension association -->
<?foreach Extension in $(var.AssociatedExtensions)?>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key=".$(var.Extension)" Value="7-Zip.$(var.Extension)" Type="string" />
</Component>
<?endforeach?>
<!-- progid names and handlers -->
<?foreach Extension in $(var.SupportedExtensions)?>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key=".$(var.Extension)\OpenWithProgids" Name="7-Zip.$(var.Extension)" Value="" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.$(var.Extension)" Value="!(loc._$(var.Extension)Extension)" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.$(var.Extension)\shell\open\command" Value="&quot;[_7zFolder]7zFM.exe&quot; &quot;%1&quot;" Type="string" />
</Component>
<?endforeach?>
<!-- progid icons -->
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.7z\DefaultIcon" Value="[_7zFolder]7z.dll,0" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.zip\DefaultIcon" Value="[_7zFolder]7z.dll,1" Type="string" />
</Component>
<?foreach Extension in bz2;bzip2;tbz;tbz2?>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.$(var.Extension)\DefaultIcon" Value="[_7zFolder]7z.dll,2" Type="string" />
</Component>
<?endforeach?>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.rar\DefaultIcon" Value="[_7zFolder]7z.dll,3" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.arj\DefaultIcon" Value="[_7zFolder]7z.dll,4" Type="string" />
</Component>
<?foreach Extension in taz;z?>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.$(var.Extension)\DefaultIcon" Value="[_7zFolder]7z.dll,5" Type="string" />
</Component>
<?endforeach?>
<?foreach Extension in lha;lzh?>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.$(var.Extension)\DefaultIcon" Value="[_7zFolder]7z.dll,6" Type="string" />
</Component>
<?endforeach?>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.cab\DefaultIcon" Value="[_7zFolder]7z.dll,7" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.iso\DefaultIcon" Value="[_7zFolder]7z.dll,8" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.001\DefaultIcon" Value="[_7zFolder]7z.dll,9" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.rpm\DefaultIcon" Value="[_7zFolder]7z.dll,10" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.deb\DefaultIcon" Value="[_7zFolder]7z.dll,11" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.cpio\DefaultIcon" Value="[_7zFolder]7z.dll,12" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.tar\DefaultIcon" Value="[_7zFolder]7z.dll,13" Type="string" />
</Component>
<?foreach Extension in gz;gzip;tgz;tpz?>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.$(var.Extension)\DefaultIcon" Value="[_7zFolder]7z.dll,14" Type="string" />
</Component>
<?endforeach?>
<?foreach Extension in swm;wim?>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.$(var.Extension)\DefaultIcon" Value="[_7zFolder]7z.dll,15" Type="string" />
</Component>
<?endforeach?>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.lzma\DefaultIcon" Value="[_7zFolder]7z.dll,16" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.dmg\DefaultIcon" Value="[_7zFolder]7z.dll,17" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.hfs\DefaultIcon" Value="[_7zFolder]7z.dll,18" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.xar\DefaultIcon" Value="[_7zFolder]7z.dll,19" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.vhd\DefaultIcon" Value="[_7zFolder]7z.dll,20" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.fat\DefaultIcon" Value="[_7zFolder]7z.dll,21" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.ntfs\DefaultIcon" Value="[_7zFolder]7z.dll,22" Type="string" />
</Component>
<?foreach Extension in xz;txz?>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.$(var.Extension)\DefaultIcon" Value="[_7zFolder]7z.dll,23" Type="string" />
</Component>
<?endforeach?>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="7-Zip.squashfs\DefaultIcon" Value="[_7zFolder]7z.dll,24" Type="string" />
</Component>
<!-- perceived-as-compressed icon and open-with registration -->
<Component Directory="_7zFolder" Guid="">
<RegistryValue KeyPath="yes" Root="HKCR" Key="SystemFileAssociations\compressed\DefaultIcon" Value="%SystemRoot%\system32\zipfldr.dll" Type="expandable" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="SystemFileAssociations\compressed\OpenWithList\7zFM.exe" Value="" Type="string" />
</Component>
<!-- open-with handler -->
<?foreach Extension in $(var.SupportedExtensions)?>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="Applications\7zFM.exe\SupportedTypes" Name=".$(var.Extension)" Value="" Type="string" />
</Component>
<?endforeach?>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="Applications\7zFM.exe\shell\open" Name="FriendlyAppName" Value="!(loc.Name)" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="Applications\7zFM.exe\shell\open\command" Value="&quot;[_7zFolder]7zFM.exe&quot; &quot;%1&quot;" Type="string" />
</Component>
<!-- shell extension -->
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="CLSID\$(var.ShellExtension)" Value="!(loc.ShellExtension)" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="CLSID\$(var.ShellExtension)\InprocServer32" Value="[_7zFolder]7-zip.dll" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="CLSID\$(var.ShellExtension)\InprocServer32" Name="ThreadingModel" Value="Apartment" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved" Name="$(var.ShellExtension)" Value="!(loc.ShellExtension)" Type="string" />
</Component>
<?if $(var.Platform) = x64?>
<Component Directory="WindowsFolder" Win64="no">
<RegistryValue Id="reg2AB2945656300C1AC96E2B49C256FC2B.86" KeyPath="yes" Root="HKCR" Key="CLSID\$(var.ShellExtension)" Value="!(loc.ShellExtension)" Type="string" />
</Component>
<Component Directory="WindowsFolder" Win64="no">
<RegistryValue Id="regE678356132FC58923B13DDDB19337E04.86" KeyPath="yes" Root="HKCR" Key="CLSID\$(var.ShellExtension)\InprocServer32" Value="[_7zFolder]7-zip32.dll" Type="string" />
</Component>
<Component Directory="WindowsFolder" Win64="no">
<RegistryValue Id="regD9F7CD43F26F6130C32FADEA3BC2C4C7.86" KeyPath="yes" Root="HKCR" Key="CLSID\$(var.ShellExtension)\InprocServer32" Name="ThreadingModel" Value="Apartment" Type="string" />
</Component>
<Component Directory="WindowsFolder" Win64="no">
<RegistryValue Id="reg098198B6D1E20E348AF83A9AA0239117.86" KeyPath="yes" Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved" Name="$(var.ShellExtension)" Value="!(loc.ShellExtension)" Type="string" />
</Component>
<?endif?>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="*\shellex\ContextMenuHandlers\7-Zip" Value="$(var.ShellExtension)" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="Directory\shellex\ContextMenuHandlers\7-Zip" Value="$(var.ShellExtension)" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="Directory\shellex\DragDropHandlers\7-Zip" Value="$(var.ShellExtension)" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="Drive\shellex\DragDropHandlers\7-Zip" Value="$(var.ShellExtension)" Type="string" />
</Component>
<Component Directory="_7zFolder">
<RegistryValue KeyPath="yes" Root="HKCR" Key="Folder\shellex\ContextMenuHandlers\7-Zip" Value="$(var.ShellExtension)" Type="string" />
</Component>
</Feature>
</Product>
</Wix>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment