Link to home
Start Free TrialLog in
Avatar of Warren Peart
Warren Peart

asked on

Deploying an MSP file

Hi,

I am trying to deploy a .msp file. I need to do this as we have migrated from on-Prem Exchange to O365 and we had used MS Office customisation tool in order to configure settings including automatically creating an outlook profile that points to the on-Prem exchange server. Now that we have migrated, it is causing issues with the outlook profile re-configuring.

Office is built into our MDT Image, so removing it from the office installation would be a giant PITA.

I have created a new OCT MSP file and when installing it manually it re-configures office and all works great. My problem is now deploying this file to all workstations. I have created a batch file with the below command.

msiexec.exe /p "\\sbpsfile01\School\School\Apps\Deploy\OfficeCustom\OfficeConfigRemove.MSP" REINSTALL=ALL REINSTALLMODE=omus /qn

I have also tried using DFS path.

The policy is applied under computer configuration and the computers are in the OU that the policy is in.

Any help would be much appreciated.

Thanks,
Warren
Avatar of Mike Taylor
Mike Taylor
Flag of United Kingdom of Great Britain and Northern Ireland image

Hi Warren,

It looks fine to me but clearly it's not. You haven't actually said what is wrong though? Do you get an error message? Is there a log file? If not please add one with /L*vc:\windows\temp\Office.log at the end of the batch file.
The event log is also useful to check.

Mike
ASKER CERTIFIED SOLUTION
Avatar of Coralon
Coralon
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Warren Peart
Warren Peart

ASKER

Hi Mike, Hi Coralon

I had tested it with the log parameter and the log file was not created. Nothing was showing in event viewer. Yes, it does feel like it isn't running at all.

I will try dropping the file onto the local system via GPP and then seeing if there is any difference.

Thanks,
Warren
Change /qn in the command line  to /qb, and run manually on the workstation.

Also, you can add to the command something like /l*v %temp%\mylog.txt and collect the logfile from there.

Note that you probably also want to patch the installation source, in order to avoid patching all future installations.
Any luck yet Warren?  

Coralon
Hi Coralon,

I have actually been working on it today. It seems to be working now, but unfortunately the issue I was trying to fix still exists...

I took a bit of advise from yourself and mike.

I copied the file locally to the pc using GPP, then used the below script.

setlocal
 
reg query HKEY_CLASSES_ROOT\Installer\Patches\DC88D2DD20D960F4BA77A1F3D365E47D
if %errorlevel%==1 (goto Patches) else (goto End)
 
:Patches
start /wait msiexec.exe /update "C:\Temp\OfficeConfigRemove.MSP" REINSTALL=ALL REINSTALLMODE=omus /qn /l*v c:\Temp\OfficeCust.log
 
:End
 
Endlocal

Thanks,
Warren
That's fantastic!   Glad to hear it is working out. :-)

Coralon