[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2016-07-29
2
Medium Priority
?
719 Views
Last Modified: 2016-08-11
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!
0
Comment
Question by:rmessing171
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 22

Accepted Solution

by:
Joseph Moody earned 2000 total points
ID: 41743012
You need to bring these up into two separate deployments. Make the MSI dependent on the VBS (this is located under the dependencies tab). Then deploy the MSI to your collection.

The application will see that the VBS is needed and will download/install it first.
1
 

Author Closing Comment

by:rmessing171
ID: 41752916
Thank you for your assistance!
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

649 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