How do I package this vbscript as a msi for Group Policy

Posted by TheCleaner on Server Fault See other posts from Server Fault or by TheCleaner
Published on 2011-01-07T16:46:04Z Indexed on 2011/01/07 16:56 UTC
Read the original article Hit count: 325

Filed under:
|
|

I had a developer that is no longer with us create an msi to do this for me, but the package is outdated now and we need to deploy new files.

Basically I need to do the following:

  1. Take the code at the bottom of this question and deploy it to all users as a software install package in Group Policy. I don't want to use a computer startup script because I don't want this to run at every login...just once to install and be done.

How can I take the below and turn it into an msi for deployment through GPO?

@echo off
delete "C:\Windows\Downloaded Program Files\jdeexpimp.inf"
delete "C:\Windows\Downloaded Program Files\jdeexpimpU.ocx"
delete "C:\Windows\Downloaded Program Files\jdewebctls.inf"
delete "C:\Windows\Downloaded Program Files\jdewebctlsU.ocx"

copy "\\tuldc01\EOneActiveXapplets\ActiveX898\jdeexpimpU\*" "C:\Windows\Downloaded Program Files\"
copy "\\tuldc01\EOneActiveXapplets\ActiveX898\jdewebctlsU\*" "C:\Windows\Downloaded Program Files\"

regsvr32 "C:\Windows\Downloaded Program Files\jdeexpimpU.ocx"
regsvr32 "C:\Windows\Downloaded Program Files\jdewebctlsU.ocx"

© Server Fault or respective owner

Related posts about group-policy

Related posts about vbscript