Add packages

This commit is contained in:
Mahmoud Gomaa committed 2023-05-09 23:27:55 +03:00
1 parent 9ef8c353b8
commit d554caf462
4 files changed
+62 -62

No files matched your search

@@ -1,26 +1,26 @@
<?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.8.1</version>
<title>Nilesoft Shell</title>
<authors>Mahmoud Gomaa</authors>
<owners>Mahmoud Gomaa</owners>
<projectUrl>https://nilesoft.org</projectUrl>
<iconUrl>https://raw.githubusercontent.com/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/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>- 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.</releaseNotes>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>
<?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.8.1</version>
<title>Nilesoft Shell</title>
<authors>Mahmoud Gomaa</authors>
<owners>Mahmoud Gomaa</owners>
<projectUrl>https://nilesoft.org</projectUrl>
<iconUrl>https://raw.githubusercontent.com/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/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>- 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.</releaseNotes>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>
@@ -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
@@ -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)"}
}