473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Suggestions of writng product license key in Win Vista

Hello,

We would like to write the license key in a file and write it in System32 of
Windows Vista, but the permission is denied. What directory do you suggest
to write the file in without any security protection?
--
Mike
Aug 2 '07 #1
5 1578

"Mike9900" <Mi******@discussions.microsoft.comwrote in message
news:E1**********************************@microsof t.com...
Hello,

We would like to write the license key in a file and write it in System32
of
Windows Vista, but the permission is denied. What directory do you
suggest
to write the file in without any security protection?
Once again, you need to post to a Vista NG so that you can get help in those
NG(s).

Even with me being Admin on this Vista computer, if I wanted to use Notepad
to create a file and save the file in System32, then Notepad has to be
started using Run As Administrator to escalate NotePad's privileges to write
the file to the System32 directory.

Again, the Vista UAC Manifest might have to come into play for you.
Aug 2 '07 #2

"Mike9900" <Mi******@discussions.microsoft.comwrote in message
news:E1**********************************@microsof t.com...
Hello,

We would like to write the license key in a file and write it in System32
of
Windows Vista, but the permission is denied. What directory do you
suggest
to write the file in without any security protection?
The same directory you install your executables to. The onus is then on the
user to give you a writable directory to install into.
--
Mike

Aug 2 '07 #3
That would not help, because the user would uninstall the software and
deletes the file with the directory. So the app can run again for another 30
times. I want the app to get expired after 30 uses.
--
Mike
"Ben Voigt [C++ MVP]" wrote:
>
"Mike9900" <Mi******@discussions.microsoft.comwrote in message
news:E1**********************************@microsof t.com...
Hello,

We would like to write the license key in a file and write it in System32
of
Windows Vista, but the permission is denied. What directory do you
suggest
to write the file in without any security protection?

The same directory you install your executables to. The onus is then on the
user to give you a writable directory to install into.
--
Mike


Aug 2 '07 #4
On Aug 3, 7:03 am, Peter Duniho <NpOeStPe...@NnOwSlPiAnMk.comwrote:
Mike9900 wrote:
That would not help, because the user would uninstall the software and
deletes the file with the directory. So the app can run again for another 30
times. I want the app to get expired after 30 uses.

The first thing you need to understand is that there is _no_ way for you
to absolutely prevent a user from running your application more than 30
times. The real question is how much effort do you want to put into it,
and how annoyed do you want your legitimate users to be?
Peter is right - there is no 100% foolproof way of doing this. It
can take quite a lot of work to do a reasonable job. Whatever method
you use it is generally better to impose some other restrictions
during as a trial period that will encourage users to purchase even if
they do discover how to get around your trial period. Ideally these
limitations should still enable the user to fully evaluate your
product. A common method for applications that product printed or
other graphic output is to watermark the output if there is no
license.

If you are open to a reasonable priced commercial solution then
Infralution's Licensing System allows you to do evaluations using
either of the two approaches Peter suggested. You can use the
EvaluationMonitor class to store the information in an obscure (and
semi-random) location in the registry or you can issue license keys
which have the evaluation end date embedded in them. You can get
more information and download a trial version from:

www.infralution.com/licensing.html

Regards
Grant Frisken
Infralution

Aug 3 '07 #5
"Mike9900" <Mi******@discussions.microsoft.comwrote in message
news:E1**********************************@microsof t.com...
Hello,

We would like to write the license key in a file and write it in System32
of
Windows Vista, but the permission is denied. What directory do you
suggest
to write the file in without any security protection?
Use machine scoped isolated storage. See System.IO.IsolatedStorage.
Aug 3 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Phil Powell | last post by:
Where can I find an online PHP form validator script library to use? I have tried hacking the one here at work for weeks now and it's getting more and more impossible to customize, especially now...
8
by: pw | last post by:
Hi, I'd like to have each client record have a picture of themselves. Any ideas on what the best way to do this in my Access 97 application? Thanks, -pw
3
by: undwie | last post by:
Hello, i need the odbc driver to connect to a remote db2 databse. I have installed the IBM "run time client 8.2" which i have downloaded from the ibm site. I install it and add a new Datasource...
1
by: =?Utf-8?B?cmJiZW5zb24=?= | last post by:
To begin,, the network infactructure- Servers - Server00 - Windows Server 2003/Installed Server01 - Windows Server 2003/plan to install Server10 - Linux RedHat Workstation/Installed ...
1
by: sbettadpur | last post by:
hello, Is anybody knows how to put license file for our product, which is developed using PHP,Mysql,Javascript etc.... My requirement is like this i have developed one product i want...
5
by: db2admin | last post by:
hello, I am wondering if i can install db2 connect product on a AIX server which already has db2 ese installed on it ? regards,
14
by: Trent Mick | last post by:
I'm happy to announce that ActivePython 2.6.0.0 is now available for download from: http://www.activestate.com/Products/activepython/ ActivePython 2.6.0.0 is based on Python 2.6.0. What is...
4
by: techtonator | last post by:
Hi All, I have Vista Home Premium 64 bit installed on my HP dv6000 laptop. The laptop has a recovery drive from which I created the recovery disks. Since this drive was provided, MS didn't provide...
1
by: techtonator | last post by:
Hi, I have a laptop with Vista Home Premium 64 bit installed. It also has a recovery partition. Now since this can be used to restore the system back to its factory state, HP/Microsoft didn't...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.