Intune User prompt & Excel Issues

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

Is it possible that your source folder has consecutive spaces in it?

hello, it does have a space in it should i remove all spaces?

I had a similar issue to what you are describing but my folder name and an extra space in it. It had 2 consecutive spaces in it. Spaces are fine, there is just an issue that should be fixed in the next version.

[Bug] Invoke-AppDeployToolkit.exe does not run if there are consecutive spaces in the folder name · Issue #2024 · PSAppDeployToolkit/PSAppDeployToolkit

Thank you i may give it a go!

any guidance on how to ensure the user UI launches for prompting them to close excel when its done from intune? is that still done using another exe you place somewhere?