2023-01-23 22:59:18 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
|
|
|
|
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" >
|
|
|
|
|
|
|
|
<?include $(sys.CURRENTDIR)\Common.wxi?>
|
|
|
|
|
2023-03-31 18:23:57 +08:00
|
|
|
<?define PowerRenameFiles=?>
|
|
|
|
<?define PowerRenameFilesPath=$(var.BinDir)modules\$(var.PowerRenameProjectName)\?>
|
|
|
|
<?define PowerRenameAssetsFiles=?>
|
|
|
|
<?define PowerRenameAssetsFilesPath=$(var.BinDir)modules\$(var.PowerRenameProjectName)\Assets\?>
|
2023-01-23 22:59:18 +08:00
|
|
|
|
|
|
|
<Fragment>
|
2023-03-31 18:23:57 +08:00
|
|
|
<DirectoryRef Id="PowerRenameInstallFolder" FileSource="$(var.PowerRenameFilesPath)">
|
|
|
|
<!-- Generated by generateFileComponents.ps1 -->
|
|
|
|
<!--PowerRenameFiles_Component_Def-->
|
2023-01-23 22:59:18 +08:00
|
|
|
<!-- !Warning! Make sure to change Component Guid if you update something here -->
|
|
|
|
<Component Id="Module_PowerRename" Guid="40D43079-240E-402D-8CE8-571BFFA71175" Win64="yes">
|
2023-03-31 18:23:57 +08:00
|
|
|
<RegistryKey Root="$(var.RegistryScope)" Key="Software\Classes\CLSID\{0440049F-D1DC-4E46-B27B-98393D79486B}">
|
2023-01-23 22:59:18 +08:00
|
|
|
<RegistryValue Type="string" Value="PowerRename Shell Extension" />
|
|
|
|
<RegistryValue Type="string" Name="ContextMenuOptIn" Value="" />
|
|
|
|
<RegistryValue Type="string" Key="InprocServer32" Value="[PowerRenameInstallFolder]PowerToys.PowerRenameExt.dll" />
|
|
|
|
<RegistryValue Type="string" Key="InprocServer32" Name="ThreadingModel" Value="Apartment" />
|
|
|
|
</RegistryKey>
|
2023-03-31 18:23:57 +08:00
|
|
|
<RegistryKey Root="$(var.RegistryScope)" Key="SOFTWARE\Classes\AllFileSystemObjects\ShellEx\ContextMenuHandlers\PowerRenameExt">
|
2023-01-23 22:59:18 +08:00
|
|
|
<RegistryValue Type="string" Value="{0440049F-D1DC-4E46-B27B-98393D79486B}"/>
|
|
|
|
</RegistryKey>
|
2023-03-31 18:23:57 +08:00
|
|
|
<RegistryKey Root="$(var.RegistryScope)" Key="SOFTWARE\Classes\Directory\background\ShellEx\ContextMenuHandlers\PowerRenameExt">
|
2023-03-08 21:51:33 +08:00
|
|
|
<RegistryValue Type="string" Value="{0440049F-D1DC-4E46-B27B-98393D79486B}"/>
|
|
|
|
</RegistryKey>
|
2023-01-23 22:59:18 +08:00
|
|
|
|
|
|
|
</Component>
|
|
|
|
</DirectoryRef>
|
|
|
|
|
|
|
|
<DirectoryRef Id="PowerRenameMicrosoftUIXamlAssetsInstallFolder" FileSource="$(var.BinDir)modules\$(var.PowerRenameProjectName)\Microsoft.UI.Xaml\Assets">
|
2023-03-31 18:23:57 +08:00
|
|
|
<Component Id="PowerRenameMicrosoftUIXamlAssets_NoiseAsset_256x256_PNG.png" Win64="yes" Guid="793472B1-4481-4A7A-AA76-9E1E54FAB9DB">
|
|
|
|
<RegistryKey Root="$(var.RegistryScope)" Key="Software\Classes\powertoys\components">
|
|
|
|
<RegistryValue Type="string" Name="PowerRenameMicrosoftUIXamlAssets_NoiseAsset_256x256_PNG" Value="" KeyPath="yes"/>
|
|
|
|
</RegistryKey>
|
|
|
|
<File Id="PowerRenameMicrosoftUIXamlAssetsFile_NoiseAsset_256x256_PNG.png" Source="$(var.BinDir)modules\$(var.PowerRenameProjectName)\Microsoft.UI.Xaml\Assets\NoiseAsset_256x256_PNG.png" />
|
|
|
|
</Component>
|
2023-01-23 22:59:18 +08:00
|
|
|
</DirectoryRef>
|
|
|
|
|
2023-03-31 18:23:57 +08:00
|
|
|
<DirectoryRef Id="PowerRenameAssetsFolder" FileSource="$(var.PowerRenameAssetsFilesPath)">
|
|
|
|
<!-- Generated by generateFileComponents.ps1 -->
|
|
|
|
<!--PowerRenameAssetsFiles_Component_Def-->
|
2023-01-23 22:59:18 +08:00
|
|
|
</DirectoryRef>
|
|
|
|
|
2023-03-31 18:23:57 +08:00
|
|
|
<ComponentGroup Id="PowerRenameComponentGroup">
|
|
|
|
<Component Id="RemovePowerRenameFolder" Guid="2028549B-02E3-4D80-BC3F-59AEA37AC73D" Directory="PowerRenameInstallFolder" >
|
|
|
|
<RegistryKey Root="$(var.RegistryScope)" Key="Software\Classes\powertoys\components">
|
|
|
|
<RegistryValue Type="string" Name="RemovePowerRenameFolder" Value="" KeyPath="yes"/>
|
|
|
|
</RegistryKey>
|
|
|
|
<RemoveFolder Id="RemoveFolderPowerRenameFolder" Directory="PowerRenameInstallFolder" On="uninstall"/>
|
|
|
|
<RemoveFolder Id="RemoveFolderPowerRenameAssetsFolder" Directory="PowerRenameAssetsFolder" On="uninstall"/>
|
|
|
|
<RemoveFolder Id="RemoveFolderPowerRenameMicrosoftUIXamlInstallFolder" Directory="PowerRenameMicrosoftUIXamlInstallFolder" On="uninstall"/>
|
|
|
|
<RemoveFolder Id="RemoveFolderPowerRenameMicrosoftUIXamlAssetsInstallFolder" Directory="PowerRenameMicrosoftUIXamlAssetsInstallFolder" On="uninstall"/>
|
|
|
|
</Component>
|
2023-01-23 22:59:18 +08:00
|
|
|
<ComponentRef Id="Module_PowerRename" />
|
2023-03-31 18:23:57 +08:00
|
|
|
<ComponentRef Id="PowerRenameMicrosoftUIXamlAssets_NoiseAsset_256x256_PNG.png" />
|
2023-01-23 22:59:18 +08:00
|
|
|
</ComponentGroup>
|
|
|
|
|
|
|
|
</Fragment>
|
|
|
|
</Wix>
|