-
Notifications
You must be signed in to change notification settings - Fork 3
/
Config_Git_exapmle.ps1
24 lines (24 loc) · 975 Bytes
/
Config_Git_exapmle.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$Config = @{
appVendor = "The Git Development Community"
appName = "Git"
appVersion = "2.20.1"
appDetectionVersion = "2.20.1"
appDetectionName = "git"
appScriptDate = get-date -Format "yyyy/MM/dd"
appScriptAuthor = "Transneft Technology, LLC"
close_app = "git-bash","wish"
InstallScriptBlock = {
[string]$installPhase = 'Installation'
Show-InstallationProgress -StatusMessage "Óñòàíîâêà ïðèëîæåíèÿ $appName `nØàã [1/1] óñòàíîâêà ïðèëîæåíèÿ..."
if ($envOSArchitecture = '64-bit'){
$mainExitCode = Execute-Process -Path "$dirFiles\Git-2.20.1-64-bit.exe" -Parameters "/VERYSILENT"
}
else {
$mainExitCode = Execute-Process -Path "$dirFiles\Git-2.20.1-32-bit.exe" -Parameters "/VERYSILENT"
}
}
UninstallScriptBlock = {
[string]$installPhase = 'Uninstall'
Execute-Process -Path "C:\Program Files\Git\unins000.exe" -Parameters "/VERYSILENT"
}
}