Jump to content

Recommended Posts

Posted

# Define the path to the setup.exe and configuration file
$setupPath = "\\fileserv1\distribution point\office2024\setup.exe"
$configPath = "\\fileserv1\distribution point\office2024\BeamOffice2024Pupil1.xml"

# Run the Office Deployment Tool with the configuration file
Start-Process -FilePath $setupPath -ArgumentList "/configure $configPath" -Wait -NoNewWindow

 

Running the script, office says it can't find the configuration file.

 

The config path is correct and readable. the config is valid as I can use it in a cmd window just fine.

 

"\\fileserv1\distribution point\office2024\setup.exe" /configure "\\fileserv1\distribution point\office2024\BeamOffice2024Pupil1.xml"

 

I'm wanting to add this to a startup script eventually.

 

cheers!

Posted
Some time back I did do this as a startup script. The script would check if the software did not exist before deploying. Will have a look to see if I can find it.
Posted

sorry, got lazy and asked copilot to write a bat file:

 

@echo off

REM Check if Office is installed
reg query "HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration" >nul 2>&1
if %ERRORLEVEL%==0 (
   echo Office is already installed. Exiting script.
   exit /b
)

REM Run the Office Deployment Tool with the configuration file
"\\fileserv1\distribution point\office2024\setup.exe" /configure "\\fileserv1\distribution point\office2024\BeamOffice2024Pupil1.xml"

 

not only does this work but it installs asynchronously so doesn't hold up the boot process. NICE!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...