feat: MultiPar 1.2.2.6
- https://www.livebusinesschat.com/smf/index.php?board=396.0 - http://multipar.eu/
This commit is contained in:
21
MultiPar/tools/chocolateyInstall.ps1
Normal file
21
MultiPar/tools/chocolateyInstall.ps1
Normal file
@@ -0,0 +1,21 @@
|
||||
$package = 'MultiPar'
|
||||
$version = '1.2.2.6'
|
||||
$downloadVersion = '122'
|
||||
|
||||
try {
|
||||
$params = @{
|
||||
packageName = $package;
|
||||
fileType = 'exe';
|
||||
#InnoSetup - http://unattended.sourceforge.net/InnoSetup_Switches_ExitCodes.html
|
||||
silentArgs = '/silent', '/verysilent', '/sp-', '/suppressmsgboxes';
|
||||
url = "http://ftp.vector.co.jp/pack/winnt/util/disk/care/MultiPar$($downloadVersion)_setup.exe";
|
||||
}
|
||||
|
||||
Install-ChocolateyPackage @params
|
||||
|
||||
Write-ChocolateySuccess $package
|
||||
} catch {
|
||||
Write-ChocolateyFailure $package "$($_.Exception.Message)"
|
||||
throw
|
||||
}
|
||||
|
25
MultiPar/tools/chocolateyUninstall.ps1
Normal file
25
MultiPar/tools/chocolateyUninstall.ps1
Normal file
@@ -0,0 +1,25 @@
|
||||
$package = 'MultiPar'
|
||||
|
||||
try {
|
||||
|
||||
$path = ${Env:ProgramFiles(x86)}, $Env:ProgramFiles |
|
||||
% { Join-Path $_ $package } |
|
||||
? { Test-Path $_ } |
|
||||
Select -First 1
|
||||
|
||||
if ($path)
|
||||
{
|
||||
Push-Location $path
|
||||
$uninstaller = '.\unins000.exe'
|
||||
if (Test-Path $uninstaller)
|
||||
{
|
||||
$unargs = '/silent', '/verysilent', '/suppressmsgboxes', '/norestart'
|
||||
&$uninstaller $unargs
|
||||
}
|
||||
}
|
||||
|
||||
Write-ChocolateySuccess $package
|
||||
} catch {
|
||||
Write-ChocolateyFailure $package "$($_.Exception.Message)"
|
||||
throw
|
||||
}
|
Reference in New Issue
Block a user