Quantcast
Viewing all articles
Browse latest Browse all 4762

Automaticly run Program\Script After and MSI Installation

Hi All,

Today I started looking into the use of Application Model in SCCM 2012.

It was easy to create an application by using the import MSI function, which automatically created the application, deployment type and detection rule. But I'm struggling with how to run a script afterwards, when the MSI installation was successful.

I've looked into creating 2nd deployment type making the first deployment type as it's dependency, but it's mandatory that I also need to make an detection rule. And this is where I'm stuck ass the detection rule I want to have the same as for the first deployment type which will make it impossible to run because the condition will be evaluated ass already installed.

Is there a way to avoid the detection rule? If not is if possible trigger something after the first deployment type based on the errorlevel after the MSI installation.

My goal is to write a regkey  somewhere in HKLM\Software\<company name> after an successful installation of an application. This location we've included in our hardware inventory for reporting purposes.

Any suggestions to achieve this goal are welcome .

Regards,

Daniel


Viewing all articles
Browse latest Browse all 4762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>