I show how to Win32 package Adobe Acrobat Reader in this series of three videos.
The Installer script will be written in PowerShell and will take the help of ChatGPT to write most of it.
You can follow along, download installer files, extract, have the script call the MSI installer, and add a patch MSP file.
In the following two videos, we will package this into a .intunewin file and deploy it with Microsoft Intune.
Links:
Adobe Acrobat Download: helpx.adobe.com/acrobat/kb/ac...
ChatGPT: chat.openai.com/
Scripts (Finished script; it doesn't look like this until the last third video):
Install Adobe Acrobat 23.006.20320 64-bit
Author: John Bryntze + ChatGPT
Date: 28th September 2023
Get the directory where the script is located
$scriptPath = Split-Path -Path $MyInvocation.MyCommand.Path
Define the log file path
$logFilePath = "C:\ProgramData\JBNLogs\InstallAdobeAcrobat.log"
Ensure the log directory exists
$logDirectory = Split-Path -Path $logFilePath
if (-not (Test-Path $logDirectory)) {
New-Item -ItemType Directory -Path $logDirectory | Out-Null
}
Define the arguments for a silent installation with update and logging
$installArgs = "EULA_ACCEPT=YES /update $scriptPath\AcrobatDCx64Upd2300620320.msp /qn /norestart /log $logFilePath"
Run the installation
Start-Process -FilePath "$scriptPath\AcroPro.msi" -ArgumentList $installArgs -Wait
Create registry keys to not force login
$featureLockDownKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Adobe\Adobe Acrobat\DC\FeatureLockDown"
$cIPMKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Adobe\Adobe Acrobat\DC\FeatureLockDown\cIPM"
Set the string and DWORD values
$featureLockDownStringValue = "bIsSCReducedModeEnforcedEx"
$featureLockDownDwordValue = "00000001"
$cIPMStringValue = "bDontShowMsgWhenViewingDoc"
$cIPMDwordValue = "00000000"
Add the registry keys and values using reg.exe with /reg:64 switch
reg.exe add "$featureLockDownKey" /v "$featureLockDownStringValue" /t REG_DWORD /d $featureLockDownDwordValue /f /reg:64
reg.exe add "$cIPMKey" /v "$cIPMStringValue" /t REG_DWORD /d $cIPMDwordValue /f /reg:64
0:00 Introduction
0:20 Download Adobe Acrobat
4:27 Create PowerShell Script with ChatGPT
18:37 Test Script to install
21:46 Outro
Playlist: • Create Intune Win32 Ap...
Негізгі бет Intune - Package Apps with help of ChatGPT - Create Install Script (1/3)
Пікірлер: 15