SOLVED

Detection Method Query

%3CLINGO-SUB%20id%3D%22lingo-sub-1369310%22%20slang%3D%22en-US%22%3EDetection%20Method%20Query%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1369310%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20have%20a%20scenario.%20I%20am%20installing%20an%20SCCM%20Application.%3C%2FP%3E%3CP%3E1)%20I%20have%20installed%20Firefox%201.0%20on%20my%20machine.%3C%2FP%3E%3CP%3E2)%20On%20top%20of%20it%2C%20I%20have%20installed%20Firefox%202.0%20(%20No%20Supersedence%20used%2C%20Firefox%202.0%20has%20internal%20logic%20to%20uninstall%20Firefox%201.0).%3C%2FP%3E%3CP%3E3)%20So%20after%20sometime%2C%20I%20found%20Firefox%201.0%20getting%20installed%20back%20on%20my%20machine%20and%20sitting%20together%20with%20Firefox%202.0.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20puzzled%20how%20it%20got%20re-installed.%20I%20had%20checked%20the%20AppDicovery.log%20and%20found%20below%2C%3C%2FP%3E%3CP%3ESCCM%20was%20checking%20the%20detection%20method%20and%20found%20Firefox%201.0%20missing%20from%20the%20machine%20so%20it%20brought%20back%20the%20Firefox%201.0.%3C%2FP%3E%3CP%3E1)%20Does%20it%20mean%20I%20cannot%20use%20internal%20logic%20to%20uninstall%20previous%20versions%20%3F%3C%2FP%3E%3CP%3E2)%20Let%20us%20suppose%20an%20Application%20has%20detection%20method%20to%20check%20file%20existence%2C%20C%3A%5Ctemp%5CA.txt.%3C%2FP%3E%3CP%3EIf%20user%20accidentally%20deletes%20this%20file%2C%20will%20the%20whole%20application%20re-install%20on%20the%20user%20machine%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20advise.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1369310%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EApp%20Management%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ECM%202012%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EGeneral%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOperating%20System%20Deployment%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESite%20Setup%20and%20Client%20Deployment%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESoftware%20Update%20Management%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1369478%22%20slang%3D%22en-US%22%3ERe%3A%20Detection%20Method%20Query%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1369478%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F658936%22%20target%3D%22_blank%22%3E%40arjun_padanakandy89%3C%2FA%3E%26nbsp%3Bif%20you%20detection%20logic%20is%20to%20look%20for%20a%20file%20then%20if%20you%20delete%20the%20file%2C%20yes%20it%20will%20try%20to%20reinstall.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1372118%22%20slang%3D%22en-US%22%3ERe%3A%20Detection%20Method%20Query%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1372118%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F658936%22%20target%3D%22_blank%22%3E%40arjun_padanakandy89%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20Garth%20said%2C%20when%20the%20appintenteval%20runs%2C%20and%20it%20finds%20a%20required%20deployment%20is%20no%20longer%20installed%2C%20it%20will%20automatically%20run%20the%20install%20program%20for%20that%20application.%26nbsp%3B%26nbsp%3B%3CBR%20%2F%3EThat%20said%2C%20if%20you're%20not%20using%20%3CSPAN%3ESupersedence%3C%2FSPAN%3E%2C%20then%20I'm%20assuming%20you%20still%20have%20Firefox%20v1%20deployed%20as%20required.%26nbsp%3B%20You%20should%20remove%20that%20required%20deployment%20so%20it%20doesn't%20try%20to%20reinstall.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1372745%22%20slang%3D%22en-US%22%3ERe%3A%20Detection%20Method%20Query%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1372745%22%20slang%3D%22en-US%22%3ESo%20from%20uninstallation%20of%20previous%20packages%20point%20of%20view%2C%20we%20have%20only%20two%20options%20%3F%3CBR%20%2F%3E1)%20Use%20only%20Supersedence%20for%20uninstalling%20any%20previous%20versions.%3CBR%20%2F%3E2)%20Or%20if%20we%20use%20any%20scripts%20to%20uninstall%20then%20we%20will%20need%20to%20remove%20the%20deployment%20of%20old%20packages%2C%20this%20will%20prevent%20it%20from%20re-installing.%3CBR%20%2F%3EPlease%20correct%20me%20if%20I%20go%20wrong.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1372894%22%20slang%3D%22en-US%22%3ERe%3A%20Detection%20Method%20Query%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1372894%22%20slang%3D%22en-US%22%3EThank%20you%20for%20your%20response.%3CBR%20%2F%3E%3CBR%20%2F%3EAlso%20I%20observed%20something.%20Adding%20to%20your%20reply.%20I%20have%20modified%20some%20files%20of%20the%20Application%20and%20also%20changed%20the%20Detection%20logic%20(I%20am%20updating%20the%20same%20Application)%20and%20clicked%20on%20Update%20Content.%3CBR%20%2F%3E%3CBR%20%2F%3ENow%20the%20revised%20Application%20is%20found%20auto-installed%20on%20the%20machine.%3CBR%20%2F%3E%3CBR%20%2F%3EHow%20to%20ensure%20the%20Application%20is%20not%20re-installed%20automatically%20%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1379247%22%20slang%3D%22en-US%22%3ERe%3A%20Detection%20Method%20Query%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1379247%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F658936%22%20target%3D%22_blank%22%3E%40arjun_padanakandy89%3C%2FA%3E%26nbsp%3BA%20third%20option%20would%20be%20to%20create%20a%20detection%20method%20that%20is%20also%20satisfied%20for%20newer%20versions%20of%20the%20same%20product.%20This%20mechanism%20is%20used%20in%20the%20default%20application%20deployment%20types%20for%20Microsoft%20Edge%20and%20Microsoft%20Office%20365.%20Basically%2C%20we%20check%20for%20the%20product%20version%20as%20written%20in%20the%20registry%20to%20be%20greater%20than%20or%20equal%20to%20the%20version%20we're%20deploying.%20That%20way%2C%20the%20deployment%20is%20still%20considered%20compliant%2C%20even%20if%20the%20built-in%20application%20update%20mechanism%20has%20updated%20the%20application%20to%20a%20newer%20version.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1379263%22%20slang%3D%22en-US%22%3ERe%3A%20Detection%20Method%20Query%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1379263%22%20slang%3D%22en-US%22%3EIf%20you%20change%20the%20detection%20method%20for%20a%20deployment%20type%20in%20an%20application%20that's%20deployed%20as%20Required%2C%20clients%20targeted%20by%20that%20deployment%20will%20use%20the%20revised%20detection%20method.%20If%20the%20new%20detection%20rule%20isn't%20satisfied%2C%20that%20will%20trigger%20a%20re-install.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1381590%22%20slang%3D%22en-US%22%3ERe%3A%20Detection%20Method%20Query%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1381590%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F241578%22%20target%3D%22_blank%22%3E%40Michiel%20Overweel%3C%2FA%3E%26nbsp%3B%20Thank%20you%20for%20the%20reply.%20We%20have%20a%20huge%20User%20base%20in%20our%20organization.%3CBR%20%2F%3E%3CBR%20%2F%3EOnce%26nbsp%3Ban%20Application%20is%20created%2C%20we%20do%20some%20User%20acceptance%20testing%20(on%201-2%20devices)%26nbsp%3Bbefore%20deploying%20on%20the%20wide%20user%20base.%20So%20if%20I%20make%20any%20changes%20to%20the%20Application%20I%20will%20not%20be%20able%20to%20perform%20any%20User%20acceptance%20testing%2C%20it%20will%20be%20directly%20deployed%20onto%20User%20machines%20targeted%20by%20the%20deployment.%3CBR%20%2F%3E%3CBR%20%2F%3ECan%20you%20advise%20how%20can%20we%20handle%20this%20scenario%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1382655%22%20slang%3D%22en-US%22%3ERe%3A%20Detection%20Method%20Query%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1382655%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F658936%22%20target%3D%22_blank%22%3E%40arjun_padanakandy89%3C%2FA%3E%26nbsp%3BI%20may%20be%20misunderstanding%20your%20question%2C%20but%20I%20don't%20see%20a%20problem%20in%20the%20scenario%20you're%20describing.%20Initially%2C%20you%20should%20deploy%20the%20new%20application%20to%20a%20collection%20containing%20the%20test%20users%20or%20devices%20only%2C%20either%20as%20Required%20or%20as%20Available.%20This%20allows%20the%20test%20users%20to%20perform%20their%20acceptance%20testing%2C%20and%20it%20allows%20you%20to%20make%20changes%20to%20the%20application%20without%20affecting%20anyone%20except%20the%20test%20users.%20Once%20you're%20satisfied%20that%20the%20application%20works%20as%20intended%2C%20you%20can%20deploy%20it%20to%20the%20production%20collection(s).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1382853%22%20slang%3D%22en-US%22%3ERe%3A%20Detection%20Method%20Query%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1382853%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F241578%22%20target%3D%22_blank%22%3E%40Michiel%20Overweel%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EWe%20are%20almost%20there%20on%20the%20same%20page.%20So%20yes%2C%20my%20Application%20is%20on%20the%20Production%20Collection%20now.%3CBR%20%2F%3E%3CBR%20%2F%3ELet%20us%20suppose%20the%20Vendor%20comes%20back%20with%20a%20fix%2Fpatch%20after%20a%20week.%26nbsp%3B%20And%20we%20as%20a%20part%20of%20Packaging%20team%20are%20asked%20to%20make%20the%20new%20changes%20in%20the%20same%20Application%20and%20Update%20the%20Content.%3CBR%20%2F%3ESo%20I%20have%20created%20a%20new%20deployment%20type%20for%20Fix%2C%20with%20a%20detection%20method%2C%20which%20will%20install%20only%20if%20Base%20Application%20is%20present.%3CBR%20%2F%3E%3CBR%20%2F%3ESo%20now%20that%20I%20have%20made%20the%20changes%2C%20I%20will%20deploy%20the%20Application%26nbsp%3Bon%20test%20collection%20for%20acceptance%20tests.%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20is%20where%20I%20observed%2C%20all%20the%20users%20in%20Production%20collection%20also%20received%20the%20updated%20content.%3CBR%20%2F%3EAs%20I%20mentioned%20earlier%2C%20we%20have%20a%20long%20list%20of%20Collection%20for%20respective%20regions%20across%20the%20globe.%20Do%20you%20suggest%20to%20remove%20the%20Collection%20as%20soon%20as%20the%20Application%20installs%20%3F%20And%20is%20this%20scenario%20only%20for%20Applications%20and%20not%20for%20packages%20%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1386679%22%20slang%3D%22en-US%22%3ERe%3A%20Detection%20Method%20Query%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1386679%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F658936%22%20target%3D%22_blank%22%3E%40arjun_padanakandy89%3C%2FA%3E%26nbsp%3BFirst%20of%20all%2C%20I%20would%20never%20create%20a%20new%20Deployment%20Type%20to%20install%20an%20update%20for%20an%20existing%20application.%20That's%20not%20what%20DT's%20are%20intended%20for.%20What%20I%20would%20do%20is%20either%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ERemove%20the%20production%20application%26nbsp%3Bdeployment%20temporarily%2C%20add%20the%20fix%2C%20update%20the%20detection%20method%2C%20go%20through%20the%20user%20acceptance%20test%20process%20again%20and%20then%20deploy%20it%20to%20the%20production%20collection%20again%2C%20or%3A%3C%2FLI%3E%0A%3CLI%3ECreate%20a%20new%20application%20object%20that%20includes%20the%20fix%2C%20make%20it%20Supersede%20the%20original%20application%20and%20treat%20it%20like%20you%20treat%20any%20new%20application%20(i.e.%20follow%20the%20test%20and%20production%20deployment%20process%20as%20described%20before).%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EI%20would%20definitely%20recommend%20the%20second%20scenario%3B%20much%20simpler%20to%20implement%20and%20maintain.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1396994%22%20slang%3D%22en-US%22%3ERe%3A%20Detection%20Method%20Query%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1396994%22%20slang%3D%22en-US%22%3EThank%20you%2C%20that%20answers%20my%20query.%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi,

I have a scenario. I am installing an SCCM Application.

1) I have installed Firefox 1.0 on my machine.

2) On top of it, I have installed Firefox 2.0 ( No Supersedence used, Firefox 2.0 has internal logic to uninstall Firefox 1.0).

3) So after sometime, I found Firefox 1.0 getting installed back on my machine and sitting together with Firefox 2.0.

 

I was puzzled how it got re-installed. I had checked the AppDicovery.log and found below,

SCCM was checking the detection method and found Firefox 1.0 missing from the machine so it brought back the Firefox 1.0.

1) Does it mean I cannot use internal logic to uninstall previous versions ?

2) Let us suppose an Application has detection method to check file existence, C:\temp\A.txt.

If user accidentally deletes this file, will the whole application re-install on the user machine ?

 

Please advise.

11 Replies
Highlighted

@arjun_padanakandy89 if you detection logic is to look for a file then if you delete the file, yes it will try to reinstall. 

Highlighted
Best Response confirmed by arjun_padanakandy89 (Occasional Contributor)
Solution

@arjun_padanakandy89 

 

As Garth said, when the appintenteval runs, and it finds a required deployment is no longer installed, it will automatically run the install program for that application.  
That said, if you're not using Supersedence, then I'm assuming you still have Firefox v1 deployed as required.  You should remove that required deployment so it doesn't try to reinstall.

Highlighted
So from uninstallation of previous packages point of view, we have only two options ?
1) Use only Supersedence for uninstalling any previous versions.
2) Or if we use any scripts to uninstall then we will need to remove the deployment of old packages, this will prevent it from re-installing.
Please correct me if I go wrong.
Highlighted
Thank you for your response.

Also I observed something. Adding to your reply. I have modified some files of the Application and also changed the Detection logic (I am updating the same Application) and clicked on Update Content.

Now the revised Application is found auto-installed on the machine.

How to ensure the Application is not re-installed automatically ?


Highlighted

@arjun_padanakandy89 A third option would be to create a detection method that is also satisfied for newer versions of the same product. This mechanism is used in the default application deployment types for Microsoft Edge and Microsoft Office 365. Basically, we check for the product version as written in the registry to be greater than or equal to the version we're deploying. That way, the deployment is still considered compliant, even if the built-in application update mechanism has updated the application to a newer version.

Highlighted
If you change the detection method for a deployment type in an application that's deployed as Required, clients targeted by that deployment will use the revised detection method. If the new detection rule isn't satisfied, that will trigger a re-install.
Highlighted

@Michiel Overweel  Thank you for the reply. We have a huge User base in our organization.

Once an Application is created, we do some User acceptance testing (on 1-2 devices) before deploying on the wide user base. So if I make any changes to the Application I will not be able to perform any User acceptance testing, it will be directly deployed onto User machines targeted by the deployment.

Can you advise how can we handle this scenario ?

Highlighted

@arjun_padanakandy89 I may be misunderstanding your question, but I don't see a problem in the scenario you're describing. Initially, you should deploy the new application to a collection containing the test users or devices only, either as Required or as Available. This allows the test users to perform their acceptance testing, and it allows you to make changes to the application without affecting anyone except the test users. Once you're satisfied that the application works as intended, you can deploy it to the production collection(s).

Highlighted

@Michiel Overweel 

We are almost there on the same page. So yes, my Application is on the Production Collection now.

Let us suppose the Vendor comes back with a fix/patch after a week.  And we as a part of Packaging team are asked to make the new changes in the same Application and Update the Content.
So I have created a new deployment type for Fix, with a detection method, which will install only if Base Application is present.

So now that I have made the changes, I will deploy the Application on test collection for acceptance tests.

This is where I observed, all the users in Production collection also received the updated content.
As I mentioned earlier, we have a long list of Collection for respective regions across the globe. Do you suggest to remove the Collection as soon as the Application installs ? And is this scenario only for Applications and not for packages ?







Highlighted

@arjun_padanakandy89 First of all, I would never create a new Deployment Type to install an update for an existing application. That's not what DT's are intended for. What I would do is either:

  • Remove the production application deployment temporarily, add the fix, update the detection method, go through the user acceptance test process again and then deploy it to the production collection again, or:
  • Create a new application object that includes the fix, make it Supersede the original application and treat it like you treat any new application (i.e. follow the test and production deployment process as described before).

I would definitely recommend the second scenario; much simpler to implement and maintain.

Highlighted
Thank you, that answers my query.