Link to home
Start Free TrialLog in
Avatar of rmessing171
rmessing171Flag for United States of America

asked on

SCCM 2012 - Deploy Application (.MSI) but Run VBS Before

Hello Everyone:

I have a .MSI Application that I trying deploy, but I first need to have a VBS script run before it.  I would like to avoid using a Task Sequence to perform this.  Below is what I currently have defined for the Application, but it is only executing the VBS, and unfortantely not installing the .MSI after.  Did I miss something or did I configure something incorrectly?

Application Name = SEP 10 Agent

Deployment Types =2

1. Name = SEP 10 Agent - Windows Installer
Technology Title = Windows Installer (*.msi file)
Installation Program = msiexec /i SEP.MSI /q /norestart
Detection Method = MSI Product Code: {etc}
Dependencies = Name - SEP 9 Unininstall, Application - SEP 10 Agent,  Deployment Type = SEP 9 Unininstall, Automatically Install = Yes

2. Name = SEP 9 Uninstall
Technology Title = Script Installer
Programs = SEP 9Uninstall.vbs
Detection Method = Setting Type = File System, Type = Folder, Path = %WINDIR%, Folder = System32b, Checked - This file or folder is associated with a 32-bit application on 64-bit systems.  (I set the detection to C:\Windows\System32b as the folder doesn't exist and it will then enforce the VBS to get executed.)

Result:  When I deploy this, it will successfully downloads the VBS and .MSI into Cache on the client PC.  It will successfully run the VBS script before running the .MSI.  Unfortunately, after it runs the VBS script it is not running the .MSI and it is showing that it failed the deployment.

Any thoughts or suggestions are openly welcome!
ASKER CERTIFIED SOLUTION
Avatar of Joseph Moody
Joseph Moody
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rmessing171

ASKER

Thank you for your assistance!