chore: import upstream snapshot with attribution
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>nilesoft-shell</id>
|
||||
<version>1.9</version>
|
||||
<title>Nilesoft Shell</title>
|
||||
<authors>Mahmoud Gomaa</authors>
|
||||
<owners>Mahmoud Gomaa</owners>
|
||||
<projectUrl>https://nilesoft.org</projectUrl>
|
||||
<iconUrl>https://cdn.jsdelivr.net/gh/moudey/Shell@main/packages/assets/logo-256.png</iconUrl>
|
||||
<copyright>2023 Nilesoft Ltd.</copyright>
|
||||
<licenseUrl>https://raw.githubusercontent.com/moudey/Shell/main/LICENSE</licenseUrl>
|
||||
<packageSourceUrl>https://github.com/moudey/Shell/tree/main/packages/choco</packageSourceUrl>
|
||||
<docsUrl>https://nilesoft.org/docs</docsUrl>
|
||||
<tags>context-menu right-click file-explorer shell-extension</tags>
|
||||
<summary>Powerful context menu manager for Windows File Explorer.</summary>
|
||||
<description>Shell is a context menu extender that lets you handpick the items to integrate into Windows File Explorer context menu, create custom commands to access all your favorite web pages, files, and folders, and launch any application directly from the context menu. It also provides you a convenient solution to modify or remove any context menu item added by the system or third party software.</description>
|
||||
<releaseNotes>Changes in the configuration file structure, making it more flexible, improving performance, fixing some issues, and adding more helper functions make the Explorer more powerful.</releaseNotes>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="tools\**" target="tools" />
|
||||
</files>
|
||||
</package>
|
||||
@@ -0,0 +1,13 @@
|
||||
$ErrorActionPreference = 'Stop' # stop on all errors
|
||||
$url = 'https://nilesoft.org/download/shell/1.9/setup.exe'
|
||||
$packageArgs = @{
|
||||
packageName = $env:ChocolateyPackageName
|
||||
fileType = 'exe'
|
||||
url = $url
|
||||
softwareName = 'Nilesoft Shell'
|
||||
checksum = '4df2b30fc6b9d6d7c95c7e5070fbeb305c7d1b30ef3c135bb9e2838c10114fb6'
|
||||
checksumType = 'sha256'
|
||||
silentArgs = '/VERYSILENT /NORESTART' # Inno Setup
|
||||
validExitCodes= @(0)
|
||||
}
|
||||
Install-ChocolateyPackage @packageArgs
|
||||
@@ -0,0 +1,24 @@
|
||||
$ErrorActionPreference = 'Stop' # stop on all errors
|
||||
$packageArgs = @{
|
||||
packageName = $env:ChocolateyPackageName
|
||||
softwareName = 'Nilesoft Shell'
|
||||
fileType = 'exe'
|
||||
silentArgs = '/VERYSILENT /NORESTART' # Inno Setup
|
||||
validExitCodes= @(0)
|
||||
}
|
||||
|
||||
[array]$key = Get-UninstallRegistryKey -SoftwareName $packageArgs['softwareName']
|
||||
|
||||
if ($key.Count -eq 1) {
|
||||
$key | % {
|
||||
$packageArgs['file'] = "$($_.UninstallString)"
|
||||
Uninstall-ChocolateyPackage @packageArgs
|
||||
}
|
||||
} elseif ($key.Count -eq 0) {
|
||||
Write-Warning "$packageName has already been uninstalled by other means."
|
||||
} elseif ($key.Count -gt 1) {
|
||||
Write-Warning "$($key.Count) matches found!"
|
||||
Write-Warning "To prevent accidental data loss, no programs will be uninstalled."
|
||||
Write-Warning "Please alert package maintainer the following keys were matched:"
|
||||
$key | % {Write-Warning "- $($_.DisplayName)"}
|
||||
}
|
||||
Reference in New Issue
Block a user