I would like to allow users install application per-machine and per-user. MSI registers some common registry keys "Current user / Local machine", COM components and also overrides application name in Add-Remove Panel.
If I install first version of MSI to Current User and second to Local Machine, and then try to uninstall both of them there are several errors in logs:
To solve that problem:Disallowing uninstallation of component: {<GUID>} since another client exists
- I have separated registry keys, so each value presents in Local Machine and Current User. And their components respectively have conditions ALLUSERS=1 or ALLUSERS <>1.
- same for COM components.
- removed ARP name customization.
Question: How can I create two AI_CustomARPName components for Current User and Local Machine installations?
My test project is attached which reproduce deinstallation failure(1.zip):
- Install 1st version for current user
- Increment ProductVersion and install 2nd version to local machine
- Uninstall 1st version
- Uninstall 2nd version
=> still have dummy record of my program in AddRemovePrograms Panel.
Thanks
Andrey
FOLLOW US
Get the latest news in Application Packaging