Hi!
I worked a lot in SCCM 2007 and when I first read about the supersedence feature in SCCM 2012 i thought "Yeaah, no more scripts for upgrades!". It does not however work as I expect and I can't figure out if its a bug or by design!?
The scenario:
Computers has been installed with windows 7 and multiple core applications such as office, adobe reader and flash, in this case Adobe flash 15. Now I wanted to upgrade flash to version 18 and instead of doing the same old of creating a powershell script that would first uninstall flash 15 and then install flash 18 I added that the later would supersede version 15, with Uninstall Checked.
I deployed it as required and tested the deployment on a few computers and it worked fine but did not deploy it to more computers.
Just now I received a call where a user told me flash did not work and when I connected to the users computer I saw that the new Flash player where installed, but I did Not added that computer to the upgrade collection!
AppEnforce.log (I superseded Flash 15 ActiveX & Plugin):
+++ Starting Uninstall enforcement for App DT "Adobe Flash Player 15 Plugin - Windows Installer (*.msi file)" ApplicationDeliveryType - ScopeId_820E306E-1C82-4336-9B5F-F80476438278/DeploymentType_af7409a8-8a7e-4085-befc-eae7b39f88f8, Revision - 1, ContentPath - C:\WINDOWS\ccmcache\7, Execution Context - System AppEnforce 2015-08-28 13:40:48 4492 (0x118C) A user is logged on to the system. AppEnforce 2015-08-28 13:40:48 4492 (0x118C) Performing detection of app deployment type Adobe Flash Player 15 Plugin - Windows Installer (*.msi file)(ScopeId_820E306E-1C82-4336-9B5F-F80476438278/DeploymentType_af7409a8-8a7e-4085-befc-eae7b39f88f8, revision 1) for system. AppEnforce 2015-08-28 13:40:48 4492 (0x118C)+++ Discovered MSI application [AppDT Id: ScopeId_820E306E-1C82-4336-9B5F-F80476438278/DeploymentType_af7409a8-8a7e-4085-befc-eae7b39f88f8, Revision: 1, MSI Product code: {AF82C1A9-56DC-4CCD-A36C-CAE56D541DFA}, MSI Product version: ] AppEnforce 2015-08-28 13:40:48 4492 (0x118C) App enforcement environment: Context: Machine Command line: msiexec /x {AF82C1A9-56DC-4CCD-A36C-CAE56D541DFA} /q Allow user interaction: No UI mode: 0 User token: null Session Id: 4294967295 Content path: C:\WINDOWS\ccmcache\7 Working directory: AppEnforce 2015-08-28 13:40:48 4492 (0x118C) Prepared working directory: C:\WINDOWS\ccmcache\7 AppEnforce 2015-08-28 13:40:48 4492 (0x118C) Found executable file msiexec with complete path C:\WINDOWS\system32\msiexec.exe AppEnforce 2015-08-28 13:40:48 4492 (0x118C) Prepared command line: "C:\WINDOWS\system32\msiexec.exe" /x {AF82C1A9-56DC-4CCD-A36C-CAE56D541DFA} /q /qn AppEnforce 2015-08-28 13:40:48 4492 (0x118C) Executing Command line: "C:\WINDOWS\system32\msiexec.exe" /x {AF82C1A9-56DC-4CCD-A36C-CAE56D541DFA} /q /qn with system context AppEnforce 2015-08-28 13:40:48 4492 (0x118C) Working directory C:\WINDOWS\ccmcache\7 AppEnforce 2015-08-28 13:40:48 4492 (0x118C) Post install behavior is BasedOnExitCode AppEnforce 2015-08-28 13:40:48 4492 (0x118C) Waiting for process 4604 to finish. Timeout = 120 minutes. AppEnforce 2015-08-28 13:40:48 4492 (0x118C) Process 4604 terminated with exitcode: 0 AppEnforce 2015-08-28 13:40:50 4492 (0x118C) Looking for exit code 0 in exit codes table... AppEnforce 2015-08-28 13:40:50 4492 (0x118C) Matched exit code 0 to a Success entry in exit codes table. AppEnforce 2015-08-28 13:40:50 4492 (0x118C) Performing detection of app deployment type Adobe Flash Player 15 Plugin - Windows Installer (*.msi file)(ScopeId_820E306E-1C82-4336-9B5F-F80476438278/DeploymentType_af7409a8-8a7e-4085-befc-eae7b39f88f8, revision 1) for system. AppEnforce 2015-08-28 13:40:50 4492 (0x118C)+++ MSI application not discovered [MSI Product Code: {AF82C1A9-56DC-4CCD-A36C-CAE56D541DFA}, MSI Product version: ] AppEnforce 2015-08-28 13:40:50 4492 (0x118C)++++++ App enforcement completed (1 seconds) for App DT "Adobe Flash Player 15 Plugin - Windows Installer (*.msi file)" [ScopeId_820E306E-1C82-4336-9B5F-F80476438278/DeploymentType_af7409a8-8a7e-4085-befc-eae7b39f88f8], Revision: 1, User SID: ] ++++++ AppEnforce 2015-08-28 13:40:50 4492 (0x118C)+++ Starting Uninstall enforcement for App DT "Adobe Flash Player 15 ActiveX - Windows Installer (*.msi file)" ApplicationDeliveryType - ScopeId_820E306E-1C82-4336-9B5F-F80476438278/DeploymentType_c675afa9-3c25-43e2-9e49-b577ee320e6b, Revision - 1, ContentPath - C:\WINDOWS\ccmcache\6, Execution Context - System AppEnforce 2015-08-28 13:40:50 4492 (0x118C) A user is logged on to the system. AppEnforce 2015-08-28 13:40:50 4492 (0x118C) Performing detection of app deployment type Adobe Flash Player 15 ActiveX - Windows Installer (*.msi file)(ScopeId_820E306E-1C82-4336-9B5F-F80476438278/DeploymentType_c675afa9-3c25-43e2-9e49-b577ee320e6b, revision 1) for system. AppEnforce 2015-08-28 13:40:50 4492 (0x118C)+++ Discovered MSI application [AppDT Id: ScopeId_820E306E-1C82-4336-9B5F-F80476438278/DeploymentType_c675afa9-3c25-43e2-9e49-b577ee320e6b, Revision: 1, MSI Product code: {BC8AC77D-6A6F-491F-BEED-2958F09C6CAE}, MSI Product version: ] AppEnforce 2015-08-28 13:40:50 4492 (0x118C) App enforcement environment: Context: Machine Command line: msiexec /x {BC8AC77D-6A6F-491F-BEED-2958F09C6CAE} /q Allow user interaction: No UI mode: 0 User token: null Session Id: 4294967295 Content path: C:\WINDOWS\ccmcache\6 Working directory: AppEnforce 2015-08-28 13:40:50 4492 (0x118C) Prepared working directory: C:\WINDOWS\ccmcache\6 AppEnforce 2015-08-28 13:40:50 4492 (0x118C) Found executable file msiexec with complete path C:\WINDOWS\system32\msiexec.exe AppEnforce 2015-08-28 13:40:50 4492 (0x118C) Prepared command line: "C:\WINDOWS\system32\msiexec.exe" /x {BC8AC77D-6A6F-491F-BEED-2958F09C6CAE} /q /qn AppEnforce 2015-08-28 13:40:50 4492 (0x118C) Executing Command line: "C:\WINDOWS\system32\msiexec.exe" /x {BC8AC77D-6A6F-491F-BEED-2958F09C6CAE} /q /qn with system context AppEnforce 2015-08-28 13:40:50 4492 (0x118C) Working directory C:\WINDOWS\ccmcache\6 AppEnforce 2015-08-28 13:40:50 4492 (0x118C) Post install behavior is BasedOnExitCode AppEnforce 2015-08-28 13:40:50 4492 (0x118C) Waiting for process 1204 to finish. Timeout = 120 minutes. AppEnforce 2015-08-28 13:40:50 4492 (0x118C) Process 1204 terminated with exitcode: 0 AppEnforce 2015-08-28 13:40:52 4492 (0x118C) Looking for exit code 0 in exit codes table... AppEnforce 2015-08-28 13:40:52 4492 (0x118C) Matched exit code 0 to a Success entry in exit codes table. AppEnforce 2015-08-28 13:40:52 4492 (0x118C) Performing detection of app deployment type Adobe Flash Player 15 ActiveX - Windows Installer (*.msi file)(ScopeId_820E306E-1C82-4336-9B5F-F80476438278/DeploymentType_c675afa9-3c25-43e2-9e49-b577ee320e6b, revision 1) for system. AppEnforce 2015-08-28 13:40:52 4492 (0x118C)+++ MSI application not discovered [MSI Product Code: {BC8AC77D-6A6F-491F-BEED-2958F09C6CAE}, MSI Product version: ] AppEnforce 2015-08-28 13:40:52 4492 (0x118C)++++++ App enforcement completed (2 seconds) for App DT "Adobe Flash Player 15 ActiveX - Windows Installer (*.msi file)" [ScopeId_820E306E-1C82-4336-9B5F-F80476438278/DeploymentType_c675afa9-3c25-43e2-9e49-b577ee320e6b], Revision: 1, User SID: ] ++++++ AppEnforce 2015-08-28 13:40:52 4492 (0x118C)+++ Starting Install enforcement for App DT "Adobe Flash Player 18 ActiveX - Windows Installer (*.msi file)" ApplicationDeliveryType - ScopeId_820E306E-1C82-4336-9B5F-F80476438278/DeploymentType_839e7bea-c471-4cae-ae64-867b3027b06d, Revision - 2, ContentPath - C:\WINDOWS\ccmcache\c, Execution Context - System AppEnforce 2015-08-28 13:40:53 4492 (0x118C) A user is logged on to the system. AppEnforce 2015-08-28 13:40:53 4492 (0x118C) Performing detection of app deployment type Adobe Flash Player 18 ActiveX - Windows Installer (*.msi file)(ScopeId_820E306E-1C82-4336-9B5F-F80476438278/DeploymentType_839e7bea-c471-4cae-ae64-867b3027b06d, revision 2) for system. AppEnforce 2015-08-28 13:40:53 4492 (0x118C)+++ Application not discovered. [AppDT Id: ScopeId_820E306E-1C82-4336-9B5F-F80476438278/DeploymentType_839e7bea-c471-4cae-ae64-867b3027b06d, Revision: 2] AppEnforce 2015-08-28 13:40:53 4492 (0x118C) App enforcement environment: Context: Machine Command line: msiexec /i "install_flash_player_18_active_x.msi" TRANSFORMS=install_flash_player_18.mst /q Allow user interaction: No UI mode: 0 User token: null Session Id: 4294967295 Content path: C:\WINDOWS\ccmcache\c Working directory: AppEnforce 2015-08-28 13:40:53 4492 (0x118C) Prepared working directory: C:\WINDOWS\ccmcache\c AppEnforce 2015-08-28 13:40:53 4492 (0x118C) Found executable file msiexec with complete path C:\WINDOWS\system32\msiexec.exe AppEnforce 2015-08-28 13:40:53 4492 (0x118C) Prepared command line: "C:\WINDOWS\system32\msiexec.exe" /i "install_flash_player_18_active_x.msi" TRANSFORMS=install_flash_player_18.mst /q /qn AppEnforce 2015-08-28 13:40:53 4492 (0x118C) Valid MSI Package path = C:\WINDOWS\ccmcache\c\install_flash_player_18_active_x.msi AppEnforce 2015-08-28 13:40:53 4492 (0x118C) Advertising MSI package [C:\WINDOWS\ccmcache\c\install_flash_player_18_active_x.msi] to the system. AppEnforce 2015-08-28 13:40:53 4492 (0x118C) Executing Command line: "C:\WINDOWS\system32\msiexec.exe" /i "install_flash_player_18_active_x.msi" TRANSFORMS=install_flash_player_18.mst /q /qn with system context AppEnforce 2015-08-28 13:40:54 4492 (0x118C) Working directory C:\WINDOWS\ccmcache\c AppEnforce 2015-08-28 13:40:54 4492 (0x118C) Post install behavior is NoAction AppEnforce 2015-08-28 13:40:54 4492 (0x118C) Waiting for process 3200 to finish. Timeout = 120 minutes. AppEnforce 2015-08-28 13:40:54 4492 (0x118C) Process 3200 terminated with exitcode: 0 AppEnforce 2015-08-28 13:41:03 4492 (0x118C) Looking for exit code 0 in exit codes table... AppEnforce 2015-08-28 13:41:03 4492 (0x118C) No action needed after successful enforcement AppEnforce 2015-08-28 13:41:03 4492 (0x118C) Performing detection of app deployment type Adobe Flash Player 18 ActiveX - Windows Installer (*.msi file)(ScopeId_820E306E-1C82-4336-9B5F-F80476438278/DeploymentType_839e7bea-c471-4cae-ae64-867b3027b06d, revision 2) for system. AppEnforce 2015-08-28 13:41:03 4492 (0x118C)+++ Discovered application [AppDT Id: ScopeId_820E306E-1C82-4336-9B5F-F80476438278/DeploymentType_839e7bea-c471-4cae-ae64-867b3027b06d, Revision: 2] AppEnforce 2015-08-28 13:41:03 4492 (0x118C)++++++ App enforcement completed (9 seconds) for App DT "Adobe Flash Player 18 ActiveX - Windows Installer (*.msi file)" [ScopeId_820E306E-1C82-4336-9B5F-F80476438278/DeploymentType_839e7bea-c471-4cae-ae64-867b3027b06d], Revision: 2, User SID: ] ++++++ AppEnforce 2015-08-28 13:41:03 4492 (0x118C)
So you can see in the beginning "Starting Uninstall enforcement", Is this what supersedence is for? At the next "Application Deployment Evaluation Cycle" it will automatically upgrade? I need to go back to scripting if I want to start upgrades at a certain time ?
Thanks for your help!