Update App Install Scripts/App - Adobe Acrobat 32bit - Install.ps1
This commit is contained in:
@@ -10,14 +10,21 @@ Script to install Adobe Acrobat 64bit
|
|||||||
2025-07-16 (GabeK) - Original script created
|
2025-07-16 (GabeK) - Original script created
|
||||||
#>
|
#>
|
||||||
|
|
||||||
# Variables #
|
[CmdletBinding()]
|
||||||
|
Param(
|
||||||
$App_Name = "Adobe Acrobat"
|
[Parameter(Mandatory = $false)]
|
||||||
$File_Name_Prefix = "Adobe-Acrobat-x32"
|
$App_Name = "Adobe Acrobat",
|
||||||
$File_Name_Extension = "zip"
|
[Parameter(Mandatory = $false)]
|
||||||
$Install_Parameters = "/sAll /rd"
|
$File_Name_Prefix = "Adobe-Acrobat-x32",
|
||||||
$EPCache_Folder = "3rd Party Patches\$App_Name"
|
[Parameter(Mandatory = $false)]
|
||||||
|
$File_Name_Extension = "zip",
|
||||||
|
[Parameter(Mandatory = $false)]
|
||||||
|
$Install_Parameters = "/sAll /rd",
|
||||||
|
[Parameter(Mandatory = $false)]
|
||||||
|
$EPCache_Folder = "3rd Party Patches\$App_Name",
|
||||||
|
[Parameter(Mandatory = $false)]
|
||||||
$File_Name = "$File_Name_Prefix.$File_Name_Extension"
|
$File_Name = "$File_Name_Prefix.$File_Name_Extension"
|
||||||
|
)
|
||||||
|
|
||||||
# Define a script block that contains the Invoke-WebRequest command
|
# Define a script block that contains the Invoke-WebRequest command
|
||||||
$scriptBlock = {
|
$scriptBlock = {
|
||||||
@@ -38,10 +45,10 @@ Wait-Job $job -timeout $timeout | Out-Null
|
|||||||
$output = Receive-Job $job
|
$output = Receive-Job $job
|
||||||
$DownloadURL = $output
|
$DownloadURL = $output
|
||||||
|
|
||||||
# Script start #
|
#Region Script Start
|
||||||
|
If ((Test-Path "C:\Temp\Script Cache") -eq $False) { New-Item -ItemType directory -Path "C:\Temp\Script Cache" }
|
||||||
Invoke-WebRequest -UseBasicParsing "https://endpoint.ufsdata.com/download/repository/632809041/Functions.ps1" -outfile "$Env:windir\NCentral\Cache\Functions.ps1"
|
Invoke-WebRequest -UseBasicParsing "https://scripts.gabesville.com/Gabesville/Powershell-Scripts/raw/branch/main/Functions%20Scripts/Functions.ps1" -outfile "C:\Temp\Script Cache\Functions.ps1"
|
||||||
. "C:\Windows\NCentral\Cache\Functions.ps1"
|
. "C:\Temp\Script Cache\Functions.ps1"
|
||||||
|
|
||||||
#Check to see if program is installed
|
#Check to see if program is installed
|
||||||
$Applist = Get-Software | Sort-Object -Descending
|
$Applist = Get-Software | Sort-Object -Descending
|
||||||
@@ -59,4 +66,4 @@ Else {
|
|||||||
$EPCacheLocalLocation = "C:\WINDOWS\NCentral\Cache\Adobe Acrobat\setup.exe"
|
$EPCacheLocalLocation = "C:\WINDOWS\NCentral\Cache\Adobe Acrobat\setup.exe"
|
||||||
Install-App
|
Install-App
|
||||||
}
|
}
|
||||||
# Script End #
|
#Region Script End
|
||||||
Reference in New Issue
Block a user