From d554caf462f52dc18e5256100ebff1af3fe7f6c1 Mon Sep 17 00:00:00 2001 From: Mahmoud Gomaa Date: Tue, 9 May 2023 23:27:55 +0300 Subject: [PATCH] Add packages --- .../nilesoft-shell.1.8.1.nupkg | Bin .../nilesoft.shell.nuspec | 52 +++++++++--------- .../tools/chocolateyinstall.ps1 | 24 ++++---- .../tools/chocolateyuninstall.ps1 | 48 ++++++++-------- 4 files changed, 62 insertions(+), 62 deletions(-) rename packages/choco/{Nilesoft.Shell => }/nilesoft-shell.1.8.1.nupkg (100%) rename packages/choco/{Nilesoft.Shell => }/nilesoft.shell.nuspec (98%) rename packages/choco/{Nilesoft.Shell => }/tools/chocolateyinstall.ps1 (97%) rename packages/choco/{Nilesoft.Shell => }/tools/chocolateyuninstall.ps1 (97%) diff --git a/packages/choco/Nilesoft.Shell/nilesoft-shell.1.8.1.nupkg b/packages/choco/nilesoft-shell.1.8.1.nupkg similarity index 100% rename from packages/choco/Nilesoft.Shell/nilesoft-shell.1.8.1.nupkg rename to packages/choco/nilesoft-shell.1.8.1.nupkg diff --git a/packages/choco/Nilesoft.Shell/nilesoft.shell.nuspec b/packages/choco/nilesoft.shell.nuspec similarity index 98% rename from packages/choco/Nilesoft.Shell/nilesoft.shell.nuspec rename to packages/choco/nilesoft.shell.nuspec index 55ac677..eecbb4f 100644 --- a/packages/choco/Nilesoft.Shell/nilesoft.shell.nuspec +++ b/packages/choco/nilesoft.shell.nuspec @@ -1,26 +1,26 @@ - - - - nilesoft-shell - 1.8.1 - Nilesoft Shell - Mahmoud Gomaa - Mahmoud Gomaa - https://nilesoft.org - https://raw.githubusercontent.com/moudey/Shell/main/packages/assets/logo-256.png - 2023 Nilesoft Ltd. - https://raw.githubusercontent.com/moudey/Shell/main/LICENSE - https://github.com/moudey/Shell/packages/choco - https://nilesoft.org/docs - context-menu right-click file-explorer shell-extension - Powerful context menu manager for Windows File Explorer. - 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. - - Fixed a keyboard bug when executing a command. -- Fixed a bug with 'title.xxx' functions. -- New 'checked' property for static item to change the checked state. -- New value for 'image.align' option to set priority. - - - - - + + + + nilesoft-shell + 1.8.1 + Nilesoft Shell + Mahmoud Gomaa + Mahmoud Gomaa + https://nilesoft.org + https://raw.githubusercontent.com/moudey/Shell/main/packages/assets/logo-256.png + 2023 Nilesoft Ltd. + https://raw.githubusercontent.com/moudey/Shell/main/LICENSE + https://github.com/moudey/Shell/packages/choco + https://nilesoft.org/docs + context-menu right-click file-explorer shell-extension + Powerful context menu manager for Windows File Explorer. + 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. + - Fixed a keyboard bug when executing a command. +- Fixed a bug with 'title.xxx' functions. +- New 'checked' property for static item to change the checked state. +- New value for 'image.align' option to set priority. + + + + + diff --git a/packages/choco/Nilesoft.Shell/tools/chocolateyinstall.ps1 b/packages/choco/tools/chocolateyinstall.ps1 similarity index 97% rename from packages/choco/Nilesoft.Shell/tools/chocolateyinstall.ps1 rename to packages/choco/tools/chocolateyinstall.ps1 index fb90393..db8e050 100644 --- a/packages/choco/Nilesoft.Shell/tools/chocolateyinstall.ps1 +++ b/packages/choco/tools/chocolateyinstall.ps1 @@ -1,13 +1,13 @@ -$ErrorActionPreference = 'Stop' # stop on all errors -$url = 'https://nilesoft.org/download/shell/1.8/setup.exe' -$packageArgs = @{ - packageName = $env:ChocolateyPackageName - fileType = 'exe' - url = $url - softwareName = 'Nilesoft Shell' - checksum = 'c87da931586ab14ce957e99971ef8b344edfb1b0caa273e87c1be752bb924447' - checksumType = 'sha256' - silentArgs = '/VERYSILENT /NORESTART' # Inno Setup - validExitCodes= @(0) -} +$ErrorActionPreference = 'Stop' # stop on all errors +$url = 'https://nilesoft.org/download/shell/1.8/setup.exe' +$packageArgs = @{ + packageName = $env:ChocolateyPackageName + fileType = 'exe' + url = $url + softwareName = 'Nilesoft Shell' + checksum = 'c87da931586ab14ce957e99971ef8b344edfb1b0caa273e87c1be752bb924447' + checksumType = 'sha256' + silentArgs = '/VERYSILENT /NORESTART' # Inno Setup + validExitCodes= @(0) +} Install-ChocolateyPackage @packageArgs \ No newline at end of file diff --git a/packages/choco/Nilesoft.Shell/tools/chocolateyuninstall.ps1 b/packages/choco/tools/chocolateyuninstall.ps1 similarity index 97% rename from packages/choco/Nilesoft.Shell/tools/chocolateyuninstall.ps1 rename to packages/choco/tools/chocolateyuninstall.ps1 index 45faf92..f0205ab 100644 --- a/packages/choco/Nilesoft.Shell/tools/chocolateyuninstall.ps1 +++ b/packages/choco/tools/chocolateyuninstall.ps1 @@ -1,24 +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)"} -} +$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)"} +}