About
Careers
Support
Partners
Community
Contact
Product
Overview
IT Discovery
IT Inventory
IT Analytics
Features
Integrations
Use Cases
IT Asset Management
Cybersecurity
Active Directory Audit
Installing Software & Patches
Automated IT Inventory
Pricing
Resources
Support Knowledge Base
Videos
Testimonials
Vulnerability Updates
Patch Tuesday
Blog
Free Download
Lansweeper
»
Installers
»
Installer - Microsoft Office
Active Topics
Search
Join Now
Login
Notification
Error
OK
Installer - Microsoft Office -
Performs an unattended deployment of Microsoft Office
Posted:
Monday, August 10, 2015 1:30:10 PM(UTC)
Daniel.B
Member
Original Poster
Posts: 1,150
4
Like
Microsoft Office provides several methods to prepare unattended installs of the Office suite. This package executes an installer in combination with an admin file which you can generate with the help of the OCT. To prepare this deployment:
Obtain an Office installation medium (DVD, ISO-file)
Mount the installation medium and copy the whole content of it to your Lansweeper package share under folder "\Installers\MS Office\".
Open the "Installers" folder. Hold the Shift key while right-clicking the "MS Office" folder. Select "Open command window here".
In the command prompt, type "setup.exe /admin". This will open the Office Customization Tool (OCT).
Select the Office version to be configured.
Set up your Office installation settings according to your requirements. Details on all possible configuration settings for Office 2013 can be found on
this Microsoft page
.
Select "File" - "Save as". Store the MSP file in your package share under "\Installers\MS Office\adminfile.msp"
Review and test the deployment package.
Installer - Microsoft Office
Download Package
Description
Peforms and unattended install of Microsoft Office with adminfile.
Details on how to prepare the adminfile with the help of the Office Customization Tool (OCT) can be found under https://technet.microsoft.com/en-us/library/cc179097.aspx
This package checks if Office 2010 is already installed. If you install another version, you need to change the condition steps (step 1 and 2).
Final Action
Nothing
Max. Duration
20 min(s), 0 hour(s)
Rescan
No
Steps
1. Check if already installed
Type
Condition
Success
Stop (Success)
Failure
Go To Next
Conditions
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Office14.PROPLUS
UninstallString
Exists
2. Check if already installed (6432)
Type
Condition
Success
Stop (Success)
Failure
Go To Next
Conditions
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Office14.PROPLUS
UninstallString
Exists
3. Check installer file
Type
Condition
Success
Go To Next
Failure
Stop (Failure)
Conditions
File
{PackageShare}\Installers\MS Office\
setup.exe
Exists
4. Install
Type
Installer
Return Codes
0,1641,3010
Success
Stop (Success)
Failure
Stop (Failure)
Command
"{PackageShare}\Installers\MS Office\setup.exe" /adminfile "{PackageShare}\Installers\MS Office\adminfile.msp"
#1
westur999
Member
Posts: 1
posted:
10/29/2015 5:16:09 PM(UTC)
I am going to give this a try
User Profile
View All Posts by User
View helpful posts
#2
markthom87
Member
Posts: 1
posted:
4/29/2016 2:00:53 PM(UTC)
Changed the script to install ms office only without checking for office 2010, works great :-) Thank you!
User Profile
View All Posts by User
View helpful posts
#3
fpd2dc
Member
Posts: 9
posted:
11/6/2016 3:14:46 PM(UTC)
Has anyone tried this with Office 365?
User Profile
View All Posts by User
View helpful posts
#4
GaryT
Member
Posts: 4
posted:
12/8/2016 5:38:27 PM(UTC)
Has anyone modified this to install Office 2016?
User Profile
View All Posts by User
View helpful posts
#5
keys_it
Member
Posts: 31
posted:
12/28/2016 3:48:48 PM(UTC)
Originally Posted by: fpd2dc
Has anyone tried this with Office 365?
I know this is older, but I created an installer guide for Office 365 ProPlus here:
http://www.lansweeper.com/Forum/yaf_postst14059_Office-365-ProPlus-Installer.aspx#post48805
User Profile
View All Posts by User
View helpful posts
#6
Prithivi
Member
Posts: 1
posted:
3/29/2017 11:30:56 AM(UTC)
I am trying to install MS Office 2013 package via Lansweeper. After credential verfied, the progress going on.. but not installing...can someone help me
User Profile
View All Posts by User
View helpful posts
#7
Lakatta
Member
Alpha Tester
Posts: 19
posted:
3/31/2017 5:23:33 AM(UTC)
This is a good one. Good post.
We wrote a powershell script to do the dirty work for the most part. You will have to change the report location and some variables to where you 32 and 64 bit admin installs are.
Checks for 2016 already installed
Checks 32 or 64 bit architecture
Runs 32 or 64 bit
Rescans computer
We have pre-built dynamic groups, schedules, etc ready to deploy. So when we are given the thumbs up, we check the boxes and pray. It's solid, and be aware sharepoint 2010 easily corrupts and some residual junk doesn't uninstall all the time.
Hope it helps. Rename to .xml and .ps1
ps
It was a quick build due to time frame constraints on another project
Handles attachments
PS - LS Package - Office 2016 x32 and x64.xml.txt
(3kb) downloaded
245
time(s).
InstallOffice2016x32STAFF.ps1.txt
(45kb) downloaded
194
time(s).
InstallOffice2016x64STAFF.ps1.txt
(45kb) downloaded
181
time(s).
Uninstall32Office2010.xml.txt
(1kb) downloaded
218
time(s).
Uninstall32Office2013.xml.txt
(1kb) downloaded
150
time(s).
User Profile
View All Posts by User
View helpful posts
#8
Lakatta
Member
Alpha Tester
Posts: 19
posted:
3/31/2017 6:16:32 AM(UTC)
and the rest
Handles attachments
Uninstall32PRJPRO2013.xml.txt
(1kb) downloaded
96
time(s).
Uninstall32SHAREO2013.xml.txt
(1kb) downloaded
78
time(s).
Uninstall32VISPRO2013.xml.txt
(1kb) downloaded
88
time(s).
User Profile
View All Posts by User
View helpful posts
#9
Devin W.
Member
Posts: 11
posted:
3/30/2020 4:39:28 PM(UTC)
So I know this is an old post, but I am trying to do this with Office 2016. I do not have a registry entry for Office14. Can anyone give some advice on this?
User Profile
View All Posts by User
View helpful posts
#10
Florian_Eigsi
Member
Posts: 15
posted:
3/31/2020 7:29:05 AM(UTC)
Originally Posted by: Devin W.
So I know this is an old post, but I am trying to do this with Office 2016. I do not have a registry entry for Office14. Can anyone give some advice on this?
I don't use registry but check if file exist
"C:\Program Files\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\setup.exe"
or
"C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\setup.exe"
User Profile
View All Posts by User
View helpful posts
#11
Devin W.
Member
Posts: 11
posted:
3/31/2020 1:53:31 PM(UTC)
Originally Posted by: Florian_Eigsi
Originally Posted by: Devin W.
So I know this is an old post, but I am trying to do this with Office 2016. I do not have a registry entry for Office14. Can anyone give some advice on this?
I don't use registry but check if file exist
"C:\Program Files\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\setup.exe"
or
"C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\setup.exe"
So then when does your uninstall of 2010 take place?
User Profile
View All Posts by User
View helpful posts
#12
Florian_Eigsi
Member
Posts: 15
posted:
4/1/2020 8:42:09 AM(UTC)
So then when does your uninstall of 2010 take place?[/quote wrote:
I can't share my xml here, see screenshot
The 1st check, is a xml file that contain
<Configuration Product="PROPLUS">
<Display Level="non" CompletionNotice="No" SuppressModal="Yes" AcceptEula="Yes" />
<Setting Id="SETUP_REBOOT" Value="Never" />
</Configuration>
And here the command to uninstall
"C:\Program Files\Common Files\Microsoft Shared\OFFICE15\Office Setup Controller\setup.exe" /uninstall PROPLUS /CONFIG {PackageShare}\Base\Ms_Office\PROPLUS.XML
Have the same for VISIO and PROJECT
Florian_Eigsi attached the following image(s):
User Profile
View All Posts by User
View helpful posts
#13
Florian_Eigsi
Member
Posts: 15
posted:
4/1/2020 8:57:54 AM(UTC)
Quote:
So then when does your uninstall of 2010 take place?
Forgot Something, when you update Ms Office, you don't need to uninstall it.
Unless you install a 64 bit Ms Office 2016 on 32 bit Office already installed, you have to uninstall it before.
Try setup.exe /admin of your Ms Office installer
Florian_Eigsi attached the following image(s):
User Profile
View All Posts by User
View helpful posts
#14
Devin W.
Member
Posts: 11
posted:
4/1/2020 3:06:47 PM(UTC)
Originally Posted by: Florian_Eigsi
Quote:
So then when does your uninstall of 2010 take place?
Forgot Something, when you update Ms Office, you don't need to uninstall it.
Unless you install a 64 bit Ms Office 2016 on 32 bit Office already installed, you have to uninstall it before.
Try setup.exe /admin of your Ms Office installer
So I believe I have it set up correctly to install/upgrade but I keep getting timeout errors. I have the timeout set for 30 minutes. What could I do differently?
User Profile
View All Posts by User
View helpful posts
#15
Florian_Eigsi
Member
Posts: 15
posted:
4/1/2020 3:27:35 PM(UTC)
Quote:
So I believe I have it set up correctly to install/upgrade but I keep getting timeout errors. I have the timeout set for 30 minutes. What could I do differently?
Do you try it before in commande ligne ?
Change your msp file to see what happen (see screenshot)
You can put this in a .bat file and change .msp file name
"%~dp0\setup.exe" /adminfile ""%~dp0\eigsi_pers.msp"
Florian_Eigsi attached the following image(s):
User Profile
View All Posts by User
View helpful posts
#16
Devin W.
Member
Posts: 11
posted:
4/1/2020 3:35:08 PM(UTC)
Originally Posted by: Florian_Eigsi
Quote:
So I believe I have it set up correctly to install/upgrade but I keep getting timeout errors. I have the timeout set for 30 minutes. What could I do differently?
Do you try it before in commande ligne ?
Change your msp file to see what happen (see screenshot)
You can put this in a .bat file and change .msp file name
"%~dp0\setup.exe" /adminfile ""%~dp0\eigsi_pers.msp"
So save my file as a .bat? Sorry, I don't have any experience with lansweeper. This is all new to me
User Profile
View All Posts by User
View helpful posts
#17
Florian_Eigsi
Member
Posts: 15
posted:
4/1/2020 3:44:03 PM(UTC)
Quote:
So save my file as a .bat? Sorry, I don't have any experience with lansweeper. This is all new to me
No i would like you to test your install and msp file without lansweeper.
create install.bat with
%~dp0\setup.exe" /adminfile ""%~dp0\adminfile.msp
in
Where you have your setup for office and your msp file and don't forget to change it to see what happen.
Then launch install.bat, and you will see office installation
User Profile
View All Posts by User
View helpful posts
#18
Kkadysh
Member
Posts: 6
posted:
6/29/2020 10:00:12 AM(UTC)
Originally Posted by: Lakatta
This is a good one. Good post.
We wrote a powershell script to do the dirty work for the most part. You will have to change the report location and some variables to where you 32 and 64 bit admin installs are.
Checks for 2016 already installed
Checks 32 or 64 bit architecture
Runs 32 or 64 bit
Rescans computer
We have pre-built dynamic groups, schedules, etc ready to deploy. So when we are given the thumbs up, we check the boxes and pray. It's solid, and be aware sharepoint 2010 easily corrupts and some residual junk doesn't uninstall all the time.
Hope it helps. Rename to .xml and .ps1
ps
It was a quick build due to time frame constraints on another project
Hi,
I do not understand the ps script txt file.
Do the XML files need to be local on every machine?
it's not possible to put them on the lansweeper share and use them from there?
What does the command out-file \\networkshare\$env:computername.txt -append refers to, does it copy something to each computer from a netowork share?
It seems like a good script but I don't understand many parts of it unfortunately and I do know some power shell.
When using the ODT tool, the installation gets stuck sometimes and times out so I was thinking that maybe your script my be a better solution.
User Profile
View All Posts by User
View helpful posts
#19
Kkadysh
Member
Posts: 6
posted:
6/29/2020 10:04:07 AM(UTC)
Originally Posted by: Florian_Eigsi
So then when does your uninstall of 2010 take place?[/quote wrote:
I can't share my xml here, see screenshot
The 1st check, is a xml file that contain
<Configuration Product="PROPLUS">
<Display Level="non" CompletionNotice="No" SuppressModal="Yes" AcceptEula="Yes" />
<Setting Id="SETUP_REBOOT" Value="Never" />
</Configuration>
And here the command to uninstall
"C:\Program Files\Common Files\Microsoft Shared\OFFICE15\Office Setup Controller\setup.exe" /uninstall PROPLUS /CONFIG {PackageShare}\Base\Ms_Office\PROPLUS.XML
Have the same for VISIO and PROJECT
So the commands actually refer to an xml file located in the package share that uninstalls the programs?
And where is the command to install office 2016, at what point does it happen?
User Profile
View All Posts by User
View helpful posts
#20
Florian_Eigsi
Member
Posts: 15
posted:
6/29/2020 3:33:20 PM(UTC)
Originally Posted by: Kkadysh
Originally Posted by: Florian_Eigsi
So then when does your uninstall of 2010 take place?[/quote wrote:
I can't share my xml here, see screenshot
The 1st check, is a xml file that contain
<Configuration Product="PROPLUS">
<Display Level="non" CompletionNotice="No" SuppressModal="Yes" AcceptEula="Yes" />
<Setting Id="SETUP_REBOOT" Value="Never" />
</Configuration>
And here the command to uninstall
"C:\Program Files\Common Files\Microsoft Shared\OFFICE15\Office Setup Controller\setup.exe" /uninstall PROPLUS /CONFIG {PackageShare}\Base\Ms_Office\PROPLUS.XML
Have the same for VISIO and PROJECT
So the commands actually refer to an xml file located in the package share that uninstalls the programs?
And where is the command to install office 2016, at what point does it happen?
Step 4
"{PackageShare}\Installers\MS Office\setup.exe" /adminfile "{PackageShare}\Installers\MS Office\adminfile.msp"
To make your own msp file, you have to execute setup.exe /admin to launch the Microsoft Office Customization Tool
http://www.lansweeper.co...ft-Office.aspx#post62653
User Profile
View All Posts by User
View helpful posts
Active Discussions
Office 365 Scanning-enabled accts not linked\accessible?
by
Mark F
Last post:
Today
at 4:24:18 AM(UTC)
Set up user as Asset Manager over only one domain
by
tjkalb
Last post:
Yesterday
at 9:17:14 PM(UTC)
HP Warranty Scan
by
Brandon
Last post:
Yesterday
at 7:59:44 PM(UTC)
Lansweeper CMDB and Customer name
by
husibilski
Last post:
Yesterday
at 3:52:08 PM(UTC)
How can I get all the network interfaces with IP and MAC address via SQL command?
by
nino
Last post:
Yesterday
at 7:28:13 AM(UTC)
Combined Versions of Software for License Management and User-Based Licensing
by
DarrenS
Last post:
Yesterday
at 3:34:31 AM(UTC)
LSAgent Wrong Domains for Users
by
ggbce
Last post:
4/14/2021 3:09:19 PM(UTC)
Helpdesk API
by
scoops98
Last post:
4/14/2021 11:53:30 AM(UTC)