chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:28:17 +08:00
commit f7546d43cc
322 changed files with 158599 additions and 0 deletions
@@ -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)"}
}