?
Solved

installing software using Group policy

Posted on 2012-03-23
7
Medium Priority
?
285 Views
Last Modified: 2012-04-09
I have a situation where I need to install an msi package using group policy which works fine, but then right after that, I need to apply an update to the same package with a second msi package.  I am not sure how to prioritize the order of applications to be applied via group policy, can anyone explain how to do that?  Also, is there an option to force a restart after the last package?
0
Comment
Question by:evel1959
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 5

Assisted Solution

by:colonytire
colonytire earned 1500 total points
ID: 37758095
You can prioritize the scripts in GP.  I often times build a batch script that runs them in the order needed.  If you do the batch script you could tell the script to restart the machine using shutdown /r after it runs the msi installers.
0
 

Author Comment

by:evel1959
ID: 37758104
OK thanks, I will play with that.   Are you simply running  a windows batch file or are you using some other scripting language?
0
 
LVL 5

Expert Comment

by:colonytire
ID: 37758147
just a simple DOS type windows .bat file
0
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 
LVL 5

Accepted Solution

by:
colonytire earned 1500 total points
ID: 37758232
@echo off
TITLE Name_your_Script


ECHO.
ECHO Installing YOUR_APP_NAME
ECHO Please wait...
start /wait "Folder_location\firstpackage.msi" /qn <Quiet with no interaction


ECHO.
ECHO Installing YOUR_Update_NAME
ECHO Please wait...
start /wait "Folder_location\secondpackage.msi" /qn


shutdown.exe -r -f -t 10 -c "Windows will now restart in 10 seconds..."
0
 

Author Comment

by:evel1959
ID: 37758291
This looks nice.  In a bit, I will try it and let you know how it works for me.  I have some transform work to do ahead of this before I can try.  Thanks so much.
0
 

Author Comment

by:evel1959
ID: 37766410
So I created a batch file that does this and I beleive it will work, however, when trying to launch it from Group policy, the only type of file it will allow me to point to is an msi.  I am a newbie to Group policy and not sure how to accomplish executing a batch file from Group policy.  Did I miss something?  Does it need to be converted or wrapped in an msi?
0
 
LVL 5

Assisted Solution

by:colonytire
colonytire earned 1500 total points
ID: 37766504
Put the .bat or .cmd that you created in the apropriate sysvol folder of the DC server. Then when you click the add button in the GPeditor it will be available to you.

You can easily copy across the network using \\DCserverName\SYSVOL\domainname.???\scripts\

Hope this helps,
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question