Link to home
Start Free TrialLog in
Avatar of natejacobs
natejacobs

asked on

ClickOnce - Add/Remove Programs - Registry Entries

I'm preparing for a meeting on using ClickOnce in our organization and have a question I know is going to be asked -

I've read in numerous places that a ClickOnce deployment doesn't write to the registry.
If that's the case, how does the application show up in Add/Remove Programs?  
Doesn't aa registry entry have to be made in order for an installed application to appear there.
Avatar of smickell
smickell
Flag of United Kingdom of Great Britain and Northern Ireland image

The ClickOnce deployment does not write any settings to the registry relating to the actual functioning of the program.
It does write entries to the registry for uninstallation though - in HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\*installerID*\ there are 10 entries made for the items related to it in the Add/Remove Programs list:
DisplayIcon
DisplayName
DisplayVersion
HelpLink
Publisher
ShortcutFileName
ShortcutFolderName
SupportShortcutFileName
UninstallString
UrlUpdateInfo

All are pretty much self-explanatory.  All are generated by the project settings you have specified in Visual Studio before publishing (except for UninstallString which is created automatically by the installer).
Avatar of natejacobs
natejacobs

ASKER

What happens when there are 2 users assigned to the same machine - if one of them uninstalls the program, you would think that uninstall would remove the entries for the other, but all the above are still visible.
ASKER CERTIFIED SOLUTION
Avatar of smickell
smickell
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks.

That's exactly what I needed to know.
Ok, no problem. And thanks for the A grade.