Solved

installing software using Group policy

Posted on 2012-03-23
7
275 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
  • 4
  • 3
7 Comments
 
LVL 5

Assisted Solution

by:colonytire
colonytire earned 500 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
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
LVL 5

Accepted Solution

by:
colonytire earned 500 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 500 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Issue: One Windows 2008 R2 64bit server on the network unable to connect to a buffalo Device (Linkstation) with firmware version 1.56. There are a total of four servers on the network this being one of them. Troubleshooting Steps: Connect via h…
Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
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…

895 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now