cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Amazone
Level 2

The files of a specific component are not uninstalled during setup removal

The files of a component are not removed during uninstallation. I suspect that it is because the directory property OPENCASCADE1 is resolved with a different value on uninstall than on install.
What can be the cause for this?

The component has the name "OpenCascade_Test", the directory property which points to the installation directory of this component is the property OPENCASCADE1

Snippets from the Install-Log:
The Directory Property is resolved:
MSI (c) (BC:50) [09:55:43:979]: PROPERTY CHANGE: Adding OPENCASCADE1 property. Its value is 'C:\Program Files (x86)\Procad\IntegrationHub\Modules\Operations\OpenCascade\'.

Component is marked for installation:
MSI (s) (14:94) [09:55:48:244]: Component: OpenCascade_Test; Installed: Absent; Request: Local; Action: Local

Snippets from the Remove Log:
First the path is resolved correctly:
MSI (c) (08:50) [09:57:25:166]: Dir (source): Key: OPENCASCADE1 , Object: C:\Install_Test\IntegrationHub\program files\Procad\IntegrationHub\Modules\Operations\OpenCascade\ , LongSubPath: program files\Procad\IntegrationHub\Modules\Operations\OpenCascade\ , ShortSubPath: PROGRA~1\Procad\INTEGR~1\Modules\\\

But after the CostFinalize action, the value of the proerty is changed:
MSI (c) (08:50) [09:57:25:229]: PROPERTY CHANGE: Adding OPENCASCADE1 property. Its value is 'C:\Program Files (x86)\Procad\IntegrationHub\Modules\Operations'

MSI (s) (14:88) [09:57:29:010]: Component: OpenCascade_Test; Installed: Local; Request: Absent; Action: Absent
The files of this component are not removed from the system.

I added the two logfiles. Has someone a hint whats happening here?

Labels (1)
0 Kudos
(2) Replies
Revenera_Ian
Revenera Moderator Revenera Moderator
Revenera Moderator

Hi @Amazone,

Thank you for your post.

I found the following problematic entries in the ProfileNext_IntegrationHub_remove.log provided:

Line 1766: MSI (s) (14:88) [09:58:02:166]: Executing op: ComponentUnregister(ComponentId={5888EC0E-00CF-44A7-A618-89B026A27140},,BinaryType=0,PreviouslyPinned=1)
Line 1772: MSI (s) (14:88) [09:58:02:166]: Executing op: ComponentUnregister(ComponentId={9431159B-384C-4DB0-A2C6-95909D402BE3},,BinaryType=0,PreviouslyPinned=1)
Line 1775: MSI (s) (14:88) [09:58:02:166]: Executing op: ComponentUnregister(ComponentId={19C432F6-F453-46D8-AC72-0A1158BF2D07},,BinaryType=0,PreviouslyPinned=1)
Line 1781: MSI (s) (14:88) [09:58:02:182]: Executing op: ComponentUnregister(ComponentId={8089C922-9554-4BE5-8848-3D79656504D7},,BinaryType=0,PreviouslyPinned=1)
Line 1784: MSI (s) (14:88) [09:58:02:182]: Executing op: ComponentUnregister(ComponentId={C72EA5B1-781B-4396-A604-F3E295F20C27},,BinaryType=0,PreviouslyPinned=1)

Line 652: MSI (c) (08:08) [09:57:28:557]: Disallowing uninstallation of component: {C72EA5B1-781B-4396-A604-F3E295F20C27} since another client exists
Line 653: MSI (c) (08:08) [09:57:28:557]: Disallowing uninstallation of component: {8089C922-9554-4BE5-8848-3D79656504D7} since another client exists
Line 654: MSI (c) (08:08) [09:57:28:557]: Disallowing uninstallation of component: {19C432F6-F453-46D8-AC72-0A1158BF2D07} since another client exists
Line 655: MSI (c) (08:08) [09:57:28:557]: Disallowing uninstallation of component: {9431159B-384C-4DB0-A2C6-95909D402BE3} since another client exists
Line 656: MSI (c) (08:08) [09:57:28:573]: Disallowing uninstallation of component: {5888EC0E-00CF-44A7-A618-89B026A27140} since another client exists
Line 1086: MSI (s) (14:88) [09:57:28:965]: Disallowing uninstallation of component: {C72EA5B1-781B-4396-A604-F3E295F20C27} since another client exists
Line 1087: MSI (s) (14:88) [09:57:28:965]: Disallowing uninstallation of component: {8089C922-9554-4BE5-8848-3D79656504D7} since another client exists
Line 1088: MSI (s) (14:88) [09:57:28:965]: Disallowing uninstallation of component: {19C432F6-F453-46D8-AC72-0A1158BF2D07} since another client exists
Line 1089: MSI (s) (14:88) [09:57:28:965]: Disallowing uninstallation of component: {9431159B-384C-4DB0-A2C6-95909D402BE3} since another client exists
Line 1090: MSI (s) (14:88) [09:57:28:965]: Disallowing uninstallation of component: {5888EC0E-00CF-44A7-A618-89B026A27140} since another client exists

These types of verbose MSI log entries typically indicate that the components have Permanent set to Yes and/or Shared set to Yes. Could you please check whether this is the case for the components with the component IDs indicated (for example, {5888EC0E-00CF-44A7-A618-89B026A27140})? Let us know whether either or both of those attributes is/are set to Yes.

Also, are the affected components shared with any other products as far as you know?

Lastly, is this issue occurring on a test machine? Or on a production machine?

Please let us know if you have any questions or concerns. Thanks!

0 Kudos
Amazone
Level 2

Hello Ian,
thank you very much for your message.
Yes, it is true that the setup contains shared components that are not uninstalled. However, these are components that contain files that are installed into the GlobalAssemblyCache and are shared between different setups.
The name of the component whose files are not uninstalled is OpenCascade and it has GUID {51280536-4FCD-47CB-88F3-4F2C7BFC8AFF}.
In the log file you can see the following entry for this component:

MSI (s) (14:88) [09:58:02:291]: Executing op: UnregisterSharedComponentProvider(Component={51280536-4FCD-47CB-88F3-4F2C7BFC8AFF},ProductCode={EAE4313E-14D2-44C1-82C8-C85A35C7D7FB})
MSI (s) (14:88) [09:58:02:291]: Executing op: ComponentUnregister(ComponentId={51280536-4FCD-47CB-88F3-4F2C7BFC8AFF},,BinaryType=0,)

And here the part of the logfile where files are removed:

MSI (s) (14:88) [09:58:04:635]: Executing op: SetTargetFolder(Folder=C:\Program Files (x86)\Procad\IntegrationHub\Modules\Operations\)
MSI (s) (14:88) [09:58:04:635]: Executing op: FileRemove(,FileName=avcodec-57.dll,,ComponentId={51280536-4FCD-47CB-88F3-4F2C7BFC8AFF})
RemoveFiles: File: avcodec-57.dll, Directory: C:\Program Files (x86)\Procad\IntegrationHub\Modules\Operations\
MSI (s) (14:88) [09:58:04:635]: Note: 1: 2318 2:

Here you can see that the directory is not set correctly: It is set by the installer to the value C:\Program Files (x86)\Procad\IntegrationHub\Modules\Operations\ but should have the value C:\Program Files (x86)\Procad\IntegrationHub\Modules\Operations\OpenCascade.
For this reason, the files are probably not removed.
See also my first post: The directory variable OPENCASCADE1 has a different value during installation than during uninstallation.

Best regards

Barbara

0 Kudos