Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

ClickOnce - Add/Remove Programs - Registry Entries

Posted on 2006-05-15
5
Medium Priority
?
3,646 Views
Last Modified: 2012-09-18
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
Comment
Question by:natejacobs
  • 3
  • 2
5 Comments
 

Expert Comment

by:smickell
ID: 16686253
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
 
LVL 3

Author Comment

by:natejacobs
ID: 16689854
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
 

Accepted Solution

by:
smickell earned 1000 total points
ID: 16690379
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
 
LVL 3

Author Comment

by:natejacobs
ID: 16690410
Thanks.

That's exactly what I needed to know.
0
 

Expert Comment

by:smickell
ID: 16690959
Ok, no problem. And thanks for the A grade.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question