Solved

installing software using Group policy

Posted on 2012-03-23
7
273 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

Join & Write a Comment

This is a little timesaver I have been using for setting up Microsoft Small Business Server (SBS) in the simplest possible way. It may not be appropriate for every customer. However, when you get a situation where the person who owns the server is i…
Remote Apps is a feature in server 2008 which allows users to run applications off Remote Desktop Servers without having to log into them to run the applications.  The user can either have a desktop shortcut installed or go through the web portal to…
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…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

747 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

13 Experts available now in Live!

Get 1:1 Help Now