Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > .NET Framework 2.0
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 26th, 2007, 04:34 AM
Registered User
 
Join Date: Mar 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to selorm
Default Writing trial programs

I would like my program to write values to a computer registry when it is installed so that the program can run for only a certain number of days. How can i do this? If there is any other way to do write a program so that it works as a trial version, I wouldn't mind using that one as well, provided it works well.
Reply With Quote
  #2 (permalink)  
Old May 4th, 2007, 06:43 AM
Authorized User
 
Join Date: Dec 2004
Location: Swindon, Wilts, United Kingdom.
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to DZukiewicz
Default

You can access the registry through the Registry class.

There is
Registry.LocalMachine (shared)
Registry.CurrentUser (current user)

Then you use the .OpenSubKey( keyname ) and eventually .GetValue() to get the data, which needs casting to the appropriate type.

Regards,

Dominic
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
install VS 2008 Trial errors mikealdrich Visual Web Developer 2008 1 December 23rd, 2008 12:03 PM
CREATE TRIAL BASE Vision G Access VBA 2 April 16th, 2008 09:38 AM
Free jsp chart component(not trial) jetbrains JSP Basics 0 March 24th, 2006 01:09 AM
Help me run my programs Huma Naqvi General .NET 8 September 6th, 2004 01:32 AM
EXE Programs zhenwe1 Servlets 1 December 1st, 2003 10:29 AM



All times are GMT -4. The time now is 06:23 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.