Share via


how to define detection rule for a package in sccm 2012

Question

Monday, November 30, 2015 5:58 PM

I know I can define detection rules for any application deploy in sccm 2012. But I do not see where I can define detection rules for a package. The only thing I can do is to define what o/s I can deploy to. But I would like to detect file existence before deploying the package. How can I define this rule in a package?

Any response will be greatly appreciated!!!

All replies (6)

Tuesday, December 1, 2015 6:53 AM ✅Answered

Dear Sir,

What about to convert the package to Application using Package Conversion Manager?

download link: http://www.microsoft.com/en-us/download/details.aspx?id=34605

Best regards

Frank


Wednesday, December 2, 2015 3:29 PM ✅Answered

See this blog post from Jason, regarding R2 SP1 / SP2 functionality: http://blog.configmgrftw.com/package-conversion-manager-and-configmgr-r2-sp1-or-sp2/

Simon Dettling | msitproblog.com | @SimonDettling


Monday, November 30, 2015 6:03 PM

You can't create detection rule for packages.

Packages are simple in nature. If you want to do a detection you will have do no a script that deploy the package. Make the logic in the script and if it's installed make sure the script exit with 0. 

Make your deploy to only rerun if failed and voila.

Have a quick read here for difference.

http://www.windowsmanagementexperts.com/sccm-2012-applications-vs-packages/sccm-2012-applications-vs-packages.htm


Wednesday, December 2, 2015 2:30 PM

That sounds a good idea to try but the link is for sccm2012sp1. I have the version of sccm2012sp2. Do you have the link for this version?

Thank you very much!!!


Wednesday, December 2, 2015 10:02 PM

It seems a great tool but it wont let me convert the package. The issue is unable to provide detection method which is what I want really. :-(

Thank you very much!


Thursday, December 3, 2015 6:41 AM

Well, the Package or more precisely the Package Conversion Manager doesn't know anything about a Detection Method if the Application is not App-V or MSI based.

You can take the Applications main EXE as Detection Method. For Example if you are deploying Notepad++ you could take notepad++.exe with the corresponding Version as detection method. You just need to find something unique that is only present on the System when this application is installed.

Simon Dettling | msitproblog.com | @SimonDettling