Avatar of carbonbase
carbonbase
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Endpoint Configuration Manager application supersedence

I'm having problems trying to install a new version of Citrix Workspace, we use Microsoft Endpoint Configuration Manager.  I've set the new Workspace package to supersede the old one, problem is that after the new package is installed it still thinks that the old one is there and tries to uninstall it which ends up uninstalling the new version, end result is that old version is uninstalled as expected but the new version also gets uninstalled, even though Software Centre thinks that the new version is strill installed.  I've had a look at the AppEnforce and AppDiscovery logs using CMTrace, but I can't see what the problem is. 

* Microsoft Endpoint Configuration ManagerInstallationSCCMCitrix

Avatar of undefined
Last Comment
carbonbase

8/22/2022 - Mon
Hayes Jupe

Sounds like your detection methods aren't correct. Can you confirm they are both detecting the correct MSI ?
carbonbase

ASKER
I'm not using an MSI I've downloaded the Citrix Workspace install .exe and I'm calling it with some install switches from a batch file, this is the way the previous app install was done.

The superseded app had this as it's detection:

Detect Receiver.exe in file path:  C:\Program Files (x86)\Citrix\ICA Client\Receiver AND check file version of wfica32.exe in file path:  C:\Program Files (x86)\Citrix\ICA Client

Version of wfica32.exe is set to be greater than or equal to the version that is being installed.

I used the same detection mechanism for my app and just updated the version of wfica32.exe.

What seems to be happening is this:

  1. new app is deployed to the client
  2. new app does its install and uninstalls the previous app version
  3. In Software Centre both versions of the Workspace app are now listed as installed (even though the previous app is no longer on the machine)
  4. The new install prompts for a reboot which I do.
  5. After the reboot Software Centre still thinks both apps are installed so I force a config manager update
  6. The uninstall script of the superseded app is called (not sure why that is), this then removes whatever version of Citrix Workspace is installed (which in this case is the new version)
  7. The new version of Citrix Workspace has now been uninstalled which means there is now no version of Citrix Workspace on the client
  8. In Software Centre it thinks that the previous version is now removed and thinks the new version is installed.

I have tried modifying the uninstall script of the superseded app to only run if it detects the superseded version of wfica32.exe.  Now when I force a Config manager policy update the superseded app uninstall script is still invoked but this time doesn't remove the newly installed Workspace and disappears for Software Centre, but the status of the new app in Software Centre is "past due - will be updated"

I have also tried unticking the 'uninstall' option on the supersedance tab, but that means some reg keys from the superseded app version get left behind and I need those removed.

Hayes Jupe

yer, so if your using = or greater than - your going to get yourself into a loop when upgrading - as its always going to matchy on the superseded app - as its always going to be greater than.

Change that to be equal to, rather than equal or greater.


Your help has saved me hundreds of hours of internet surfing.
fblack61
carbonbase

ASKER
Should i change it to to 'equal to' on both the superseded app and the new one?
carbonbase

ASKER
I've changed both apps so that file version is equal to, unfortunately it hasn't fixed it and I'm seeing the same behaviour.  I also removed the first detection clause (i.e. checking to see if Receiver.exe exists) just in case that detection clause was causing problems but again it hasn't helped.
carbonbase

ASKER
Slight correction to one of my earlier posts, the new app shows as 'past due - will be retried' not sure why Software Centre doesn't think it is installed.  I'm seeing this in the AppEnforce log on the client machine.


    Performing detection of app deployment type New Citrix Workspace App batch file installer(ScopeId_AA2745C7-6D20-45F1-976E-9DCF0A0A97DC/DeploymentType_fce58ea2-f8bb-40ff-8f0c-b6a44b287e79, revision 29) for system.   AppEnforce   17/09/2021 18:04:16   3596 (0x0E0C)

+++ Application not discovered. [AppDT Id: ScopeId_AA2745C7-6D20-45F1-976E-9DCF0A0A97DC/DeploymentType_fce58ea2-f8bb-40ff-8f0c-b6a44b287e79, Revision: 29]   AppEnforce   17/09/2021 18:04:16   3596 (0x0E0C)


Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Hayes Jupe

there is a lag between updating the app and when the new detection rule will be in use.

could you please post the appdiscovery.log and appenforce.log from a machine with the issue.
carbonbase

ASKER
Hi, please see attached, thanks.

AppDiscovery.log
AppEnforce.log
carbonbase

ASKER
Hi just wondering if you had a chance to look at the log files?
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
ASKER CERTIFIED SOLUTION
Hayes Jupe

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
carbonbase

ASKER
That's great, narrows it down for me a bit, I'll see if I can modify the detection rule in Config manager.
carbonbase

ASKER
Hi Hayes, I changed the detection method to check the version of Receiver.exe and the install seems to be working fine now.  

Thanks for your help!