Update App Install Scripts/App - Adobe Acrobat 64bit - Install.ps1
This commit is contained in:
@@ -10,14 +10,21 @@ Script to install Adobe Acrobat 64bit
|
||||
2025-07-16 (GabeK) - Original script created
|
||||
#>
|
||||
|
||||
# Variables #
|
||||
|
||||
$App_Name = "Adobe Acrobat"
|
||||
$File_Name_Prefix = "Adobe-Acrobat-x64"
|
||||
$File_Name_Extension = "zip"
|
||||
$Install_Parameters = "/sAll /rd"
|
||||
$EPCache_Folder = "3rd Party Patches\$App_Name"
|
||||
$File_Name = "$File_Name_Prefix.$File_Name_Extension"
|
||||
[CmdletBinding()]
|
||||
Param(
|
||||
[Parameter(Mandatory = $false)]
|
||||
$App_Name = "Adobe Acrobat",
|
||||
[Parameter(Mandatory = $false)]
|
||||
$File_Name_Prefix = "Adobe-Acrobat-x64",
|
||||
[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"
|
||||
)
|
||||
|
||||
# Define a script block that contains the Invoke-WebRequest command
|
||||
$scriptBlock = {
|
||||
@@ -40,8 +47,9 @@ $DownloadURL = $output
|
||||
|
||||
# Script start #
|
||||
|
||||
Invoke-WebRequest -UseBasicParsing "https://endpoint.ufsdata.com/download/repository/632809041/Functions.ps1" -outfile "$Env:windir\NCentral\Cache\Functions.ps1"
|
||||
. "C:\Windows\NCentral\Cache\Functions.ps1"
|
||||
If ((Test-Path "C:\Temp\Script Cache") -eq $False) { New-Item -ItemType directory -Path "C:\Temp\Script Cache" }
|
||||
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:\Temp\Script Cache\Functions.ps1"
|
||||
|
||||
#Check to see if program is installed
|
||||
$Applist = Get-Software | Sort-Object -Descending
|
||||
@@ -54,9 +62,9 @@ If ($Applist.DisplayName -like "*$App_Name*64-bit*") {
|
||||
|
||||
Else {
|
||||
Test-Probe_Online
|
||||
Expand-Archive $EPCacheLocalLocation -DestinationPath "C:\Windows\NCentral\Cache" -Force
|
||||
Expand-Archive $EPCacheLocalLocation -DestinationPath "C:\Temp\Script Cache" -Force
|
||||
Remove-Item $EPCacheLocalLocation -Force
|
||||
$EPCacheLocalLocation = "C:\WINDOWS\NCentral\Cache\Adobe Acrobat\setup.exe"
|
||||
$EPCacheLocalLocation = "C:\Temp\Script Cache\Adobe Acrobat\setup.exe"
|
||||
Install-App
|
||||
}
|
||||
# Script End #
|
||||
Reference in New Issue
Block a user