What is the registry entry option in deployment project for?
What is the registry entry option in deployment project for?
What is the registry entry option in deployment project for?
What is the registry entry option in deployment project for?
What is the registry entry option in deployment project for?
What is the registry entry option in deployment project for? What is the registry entry option in deployment project for? What is the registry entry option in deployment project for? What is the registry entry option in deployment project for? What is the registry entry option in deployment project for? What is the registry entry option in deployment project for? What is the registry entry option in deployment project for? What is the registry entry option in deployment project for?
What is the registry entry option in deployment project for? What is the registry entry option in deployment project for?
What is the registry entry option in deployment project for?
Go Back  Xtreme Visual Basic Talk > > > What is the registry entry option in deployment project for?


Reply
 
Thread Tools Display Modes
  #1  
Old 04-30-2007, 08:29 AM
IndraG IndraG is offline
Junior Contributor
 
Join Date: Feb 2006
Posts: 204
Default What is the registry entry option in deployment project for?


OK, all that I read from my .NET books on how wonderful the ClickOnce is, is probably not correct, especially for a traditional software deployment. I find it really inflexible. Anyway, so, I have a look at the deployment project, and it does not seem to be painful. Anyway, I found in the MSDN, there is a section in the deployment project which starts as:

Adding a Registry Entry
This step adds a registry key and value to the registry. You can reference this registry key from your application's code to retrieve user-specific information at run time….

OK, is this mean to be there for any piracy protection? If it is, Hurray. However, how am I suppose to use it? If not, what is it for?
Sorry if this sound dumb. I really have no idea. I am more used to VB6 and usually just use the standard deployment wizard with no problem at all.
Reply With Quote
  #2  
Old 04-30-2007, 10:33 AM
MKoslof's Avatar
MKoslofWhat is the registry entry option in deployment project for? MKoslof is offline
Cum Grano Salis

Retired Moderator
* Guru *
 
Join Date: Jul 2002
Location: Baltimore, Maryland
Posts: 14,636
Default

What exactly are you trying to do?

1) Write a registry key?
2) Check a registry key value as a launch condition?
__________________
"Artificial Intelligence is no match for natural stupidity." ~unknown
Reply With Quote
  #3  
Old 04-30-2007, 05:05 PM
IndraG IndraG is offline
Junior Contributor
 
Join Date: Feb 2006
Posts: 204
Default

Well, that is exactly my question.
1. What is the registry key?
2. What is it usually used for?

I think, if I do not wrongly understand MSDN, it is there for protection against piracy. Am I to understand that correctly? If it is, how does it work? And is it reliable?
Reply With Quote
  #4  
Old 04-30-2007, 05:18 PM
MKoslof's Avatar
MKoslofWhat is the registry entry option in deployment project for? MKoslof is offline
Cum Grano Salis

Retired Moderator
* Guru *
 
Join Date: Jul 2002
Location: Baltimore, Maryland
Posts: 14,636
Default

Huh? What are YOU trying to do in relation to YOUR application? Does YOUR application need to access the registry or write to the registry at installation time? Forget what .Net does by default, what specific needs does your application have?
__________________
"Artificial Intelligence is no match for natural stupidity." ~unknown
Reply With Quote
  #5  
Old 05-01-2007, 07:56 AM
IndraG IndraG is offline
Junior Contributor
 
Join Date: Feb 2006
Posts: 204
Default

Sorry, MKoslof, I think I might have confused you. I have already learnt enough for the need of my application right now regarding the deployment software. And, no, my application has no need of doing anything with registry at the moment. My point is that, while searching MSDN, I bump into something regarding registry key. I know nothing about it (I am actually totally blind regarding registry). I am curious if there is a way to use it to protect against piracy of my application, such as make a key on the computer and refer it as a condition for launching. And, how "safe" is it? That's all.
Reply With Quote
  #6  
Old 05-03-2007, 12:58 PM
MKoslof's Avatar
MKoslofWhat is the registry entry option in deployment project for? MKoslof is offline
Cum Grano Salis

Retired Moderator
* Guru *
 
Join Date: Jul 2002
Location: Baltimore, Maryland
Posts: 14,636
Default

The registry is only as safe as each company's user policy. At many companies local users are not administrators on their machines. Therefore they can not edit or even sometimes read from HKLM or other registry hives. HKCU is typically the most "free" registry hive or the current user registry settings.

Regarding security of your application, you can store hashes or security keys in the registry for various purposes...but in the .Net world that really isn't the best way and remember a lot of companies won't allow access to the registry.

If you are worried about security, look into the Encryption possibilities of .Net such as DPAPI and RSA Key encryption. Look into code access security and isolation levels for compiled code, user rights, etc.
__________________
"Artificial Intelligence is no match for natural stupidity." ~unknown
Reply With Quote
  #7  
Old 05-11-2007, 05:27 AM
IndraG IndraG is offline
Junior Contributor
 
Join Date: Feb 2006
Posts: 204
Default

Sorry for late reply, MKoslof, I was out of town. Your answer is way above my ability on this. I will read some more before asking more. Thanks....
Reply With Quote
  #8  
Old 05-22-2007, 06:59 AM
A_Surtees A_Surtees is offline
Newcomer
 
Join Date: Mar 2007
Posts: 9
Default

Indra,
The registry is a database of machine and user variables used by various applications, drivers, etc... Each registry key can hold multiple keys and values. Think of a registry key as a folder, and a value as a file.

I use the registry to hold basic application data that usually never changes, but might. For example, If you have a file on a network share that might move, (it changes folders, drives, etc...) you can store the filename and path in the registry and access it via code. If the file changes, your code can change the value in the registry to reflect the change, preventing the need for recoding the application to reflect said change.

During deployment you can set the required registry keys and values to initial values. Thus giving your application a starting point.

Try reading this article, it helped me immensely -
http://www.codeguru.com/vb/gen/vb_sy...le.php/c12067/
Reply With Quote
  #9  
Old 05-24-2007, 08:22 AM
IndraG IndraG is offline
Junior Contributor
 
Join Date: Feb 2006
Posts: 204
Default

Thanks Surtees, I'll check it out. Much appreciated....
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
What is the registry entry option in deployment project for?
What is the registry entry option in deployment project for?
What is the registry entry option in deployment project for? What is the registry entry option in deployment project for?
What is the registry entry option in deployment project for?
What is the registry entry option in deployment project for?
What is the registry entry option in deployment project for? What is the registry entry option in deployment project for? What is the registry entry option in deployment project for? What is the registry entry option in deployment project for? What is the registry entry option in deployment project for? What is the registry entry option in deployment project for? What is the registry entry option in deployment project for?
What is the registry entry option in deployment project for?
What is the registry entry option in deployment project for?
 
What is the registry entry option in deployment project for?
What is the registry entry option in deployment project for?
 
-->