|
33 | 33 | <Component Id='startup' Guid='*' Win64='$(var.Win64)'> |
34 | 34 | <RegistryValue Root="HKCU" Key="Software\Microsoft\Windows\CurrentVersion\Run" Name="Blackhole" Value='"[APPLICATIONFOLDER]blackhole.exe" --purge' Type="string" KeyPath="yes" Action="write"/> |
35 | 35 | </Component> |
36 | | - |
37 | | - <Component Id='contextmenu' Guid='*' Win64='$(var.Win64)'> |
38 | | - <RegistryValue Root="HKCR" Key="*\shell\Blackhole" Value='Blackhole' Type="string" KeyPath="yes" Action="write"/> |
39 | | - <RegistryValue Root="HKCR" Key="*\shell\Blackhole" Name="Icon" Value='"[APPLICATIONFOLDER]blackhole.exe"' Type="string" KeyPath="no" Action="write"/> |
40 | | - <RegistryValue Root="HKCR" Key="*\shell\Blackhole\command" Value='"[APPLICATIONFOLDER]blackhole.exe" --send "%1"' Type="string" KeyPath="no" Action="write"/> |
41 | | - |
42 | | - <RegistryValue Root="HKCR" Key="Folder\shell\Blackhole" Value='Blackhole' Type="string" KeyPath="no" Action="write"/> |
43 | | - <RegistryValue Root="HKCR" Key="Folder\shell\Blackhole" Name="Icon" Value='"[APPLICATIONFOLDER]blackhole.exe"' Type="string" KeyPath="no" Action="write"/> |
44 | | - <RegistryValue Root="HKCR" Key="Folder\shell\Blackhole\command" Value='"[APPLICATIONFOLDER]blackhole.exe" --send "%1"' Type="string" KeyPath="no" Action="write"/> |
45 | | - </Component> |
46 | 36 | </Directory> |
47 | 37 | </Directory> |
| 38 | + <Directory Id="SendToFolder" /> |
48 | 39 | </Directory> |
49 | 40 |
|
| 41 | + <DirectoryRef Id="SendToFolder"> |
| 42 | + <Component Id="ApplicationSendToShortcut" Guid="13FF38CE-787D-46A6-A2D3-06C7B5663A88"> |
| 43 | + <Shortcut Id="ApplicationSendToShortcut" |
| 44 | + Name="Blackhole" |
| 45 | + Description="Sends the file or folder to your Blackhole" |
| 46 | + Target="[APPLICATIONFOLDER]blackhole.exe" |
| 47 | + Arguments="--send" |
| 48 | + WorkingDirectory="APPLICATIONFOLDER" |
| 49 | + Show="minimized" |
| 50 | + /> |
| 51 | + <RegistryValue Root="HKCU" Key="Software\Blackhole" Name="SendToInstalled" Type="integer" Value="1" KeyPath="yes"/> |
| 52 | + <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/> |
| 53 | + </Component> |
| 54 | + </DirectoryRef> |
| 55 | + |
50 | 56 | <Feature Id='Binaries' Title='Application' Description='Installs all binaries and the license.' Level='1' ConfigurableDirectory='APPLICATIONFOLDER' AllowAdvertise='no' Display='expand' Absent='disallow'> |
51 | 57 | <ComponentRef Id='License'/> |
52 | 58 |
|
|
57 | 63 | <ComponentRef Id='startup'/> |
58 | 64 | </Feature> |
59 | 65 |
|
60 | | - <Feature Id='ContextMenuReg' Title='Add Blackhole to context menu' Description='Adds "Blackhole" option to the right click menu on files and folders, which moves them to the BLACKHOLE.' Level='1' AllowAdvertise='no' Display='expand' Absent='allow'> |
61 | | - <ComponentRef Id='contextmenu'/> |
| 66 | + <Feature Id='ApplicationSendToShortcut' Title='Add Blackhole to "Send To"' Description='Adds "Blackhole" option to the "Send To" menu, which moves them to the BLACKHOLE.' Level='1' AllowAdvertise='no' Display='expand' Absent='allow'> |
| 67 | + <ComponentRef Id='ApplicationSendToShortcut'/> |
62 | 68 | </Feature> |
63 | 69 |
|
64 | 70 | <SetProperty Id='ARPINSTALLLOCATION' Value='[APPLICATIONFOLDER]' After='CostFinalize'/> |
|
0 commit comments