Morning all,
i am new to version 4 of PSAppDeploy Toolkit and i am having a hard time getting it to do anything!
I am attempting to ask it to prompt the user to save and close excel on launch if its open, then install an MSI with a purple theme to the toolkit to match branding.
i have tried using an elevated cmd prompt with the following command logged in as a standard user using the local admin credentials from LAPS
Invoke-AppDeployToolkit.exe -DeploymentType Install -DeployMode Interactive
The edited sections of invoke-appdeploytoolkit.ps1 file looks like the below
$adtSession = @{
AppVendor = 'dsr V.B'
AppName = 'ds'
AppVersion = '26.1.23'
AppArch = 'x64'
AppLang = 'EN'
AppRevision = '01'
AppSuccessExitCodes = @(0)
AppRebootExitCodes = @(1641, 3010)
# Prompt to close Excel (with user-friendly name)
AppProcessesToClose = @(
@{
Name = 'excel'
Description = 'Microsoft Excel'
}
)
AppScriptVersion = '1.0.0'
AppScriptDate = '2026-06-25'
AppScriptAuthor = 'CH '
RequireAdmin = $true
InstallName = 'ds'
InstallTitle = 'ds Installation'
DeployAppScriptFriendlyName = $MyInvocation.MyCommand.Name
DeployAppScriptParameters = $PSBoundParameters
DeployAppScriptVersion = '4.1.8'
}
##================================================
MARK: Install
##================================================
function Install-ADTDeployment
{
[CmdletBinding()]
param ()
##-------------------------------
## PRE-INSTALL
##-------------------------------
$adtSession.InstallPhase = "Pre-$($adtSession.DeploymentType)"
Show-ADTInstallationWelcome `
-CloseProcesses $adtSession.AppProcessesToClose `
-PromptToSave `
-AllowDefer `
-DeferTimes 3 `
-CheckDiskSpace `
-PersistPrompt `
-Title 'DS Installation' `
-Subtitle '[bold][accent]Action required:[/accent][/bold] Please close Microsoft Excel to continue' `
-CustomText 'DS integrates directly with Excel. [bold]Microsoft Excel must be closed[/bold] before installation can proceed. Please save your work and close Excel when prompted.'
Show-ADTInstallationProgress
##-------------------------------
## INSTALL
##-------------------------------
$adtSession.InstallPhase = $adtSession.DeploymentType
Start-ADTMsiProcess `
-Action 'Install' `
-FilePath "$($adtSession.DirFiles)\DS.msi" `
-ArgumentList @('/qn', 'REBOOT=ReallySuppress') `
-LogFileName 'DS'
When launching the exe nothing happens, no log files created, excel is open not prompted to close.
i also have a concern that when i get this working, not sure i can use it in intune anyway as it will have to install as SYSTEM?
any advice would be great before i admit defeat with this one!
thank you