• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3754
  • Last Modified:

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.
0
natejacobs
Asked:
natejacobs
  • 3
  • 2
1 Solution
 
smickellCommented:
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).
0
 
natejacobsAuthor Commented:
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.
0
 
smickellCommented:
If user 1 uninstalled the program the above entries would still exist for user 2 because of where the entries are actually saved - I abbreviated it above as HKCU, but it means HKEY_CURRENT_USER, i.e. the registry hive of the current user :)  When you are logged in as that person, they become the current_user so although it looks like you are seeing the same registry node, it is in fact a node belonging to a different user of that machine.
0
 
natejacobsAuthor Commented:
Thanks.

That's exactly what I needed to know.
0
 
smickellCommented:
Ok, no problem. And thanks for the A grade.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now