Changing the MANIFEST version, not the Application version

Add-in Express™ Support Service
That's what is more important than anything else

Changing the MANIFEST version, not the Application version
Repairing a customer installation 
Paul Varcoe


Guest


Hi

I have a customer who has my ClickOnce deployed addin. He upgraded to Win 10 recently, and he says he un-installed the addin prior to this (I am not sure that he did). The addin is no longer in the Programs list.

When he tries to install it he gets this:

+ Unable to install this application because an application with the same identity is already installed. To install this application, either modify the manifest version for this application or uninstall the preexisting application.

He cannot uninstall the preexisting application, as it is not in the list.

I know how to modify the APPLICATION version, but that does not change the MANIFEST version, so installation still fails.

How do I change the MANIFEST version please?

BTW I know I could go there and clear the ClickOnce cache, or talk him through that but that is less professional so I want to change the Manifest version...

Thanks for any assistance.
Posted 18 Nov, 2015 04:30:56 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Paul,

Do you see the add-in registered in the key below:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\<add-in id>

The add-in id is a hash string, e.g. f25f310c7b5b2058

To manually uninstall the add-in you need to execute the following command line:
<local app data>\My ClickOnce Applications\<app name>.exe "<app name>" "<company>" "rundll32.exe dfshim.dll,ShArpMaintain <app name>, Culture=neutral, PublicKeyToken=<public key token>, processorArchitecture=x86"

e.g.
C:\Users\sergey.sergeywin8x64\AppData\Local\My ClickOnce Applications\MyAddin225.exe "MyAddin225" "Default Company" "rundll32.exe dfshim.dll,ShArpMaintain MyAddin225, Culture=neutral, PublicKeyToken=da56d4dccec3a437, processorArchitecture=x86"
Posted 18 Nov, 2015 07:33:16 Top
Paul Varcoe


Guest


Hi and thank you for replying.

I do not want to manually un-install the add-in on the client's machine. I could do this but it is not a professional approach as I cannot visit clients that are 100s of miles away, so I would like to do the alternative and change the Manifest version in ClickOnce, so do you know how to do that?
Posted 18 Nov, 2015 07:50:59 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Paul,

The manifest version should be set to 1.0. We can't change it.
https://msdn.microsoft.com/en-us/library/h4beacah.aspx

You can change the version of the product only. Then you need to use the CheckForUpdates method of the addinmodule to install the latest version of the add-in automatically.
Posted 18 Nov, 2015 08:58:08 Top
Paul Varcoe


Guest


Thank you.

Ok so it looks like I have to create a new Addin with the same functionality. Will this be identified by the user's computer as a different application?
Posted 18 Nov, 2015 09:07:12 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Paul,

Yes, it will be another application.
Posted 18 Nov, 2015 11:48:23 Top