• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 288
  • Last Modified:

installing software using Group policy

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
evel1959
Asked:
evel1959
  • 4
  • 3
3 Solutions
 
colonytireDirector of TechnologyCommented:
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
 
evel1959Author Commented:
OK thanks, I will play with that.   Are you simply running  a windows batch file or are you using some other scripting language?
0
 
colonytireDirector of TechnologyCommented:
just a simple DOS type windows .bat file
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
colonytireDirector of TechnologyCommented:
@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
 
evel1959Author Commented:
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
 
evel1959Author Commented:
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
 
colonytireDirector of TechnologyCommented:
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now