By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,406 Members | 2,660 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,406 IT Pros & Developers. It's quick & easy.

IsolatedStorageFile Question

P: n/a
Dear All,

I would like to store the registration info of a user of my software. Every
time my program start, I will check form the IsolatedStorageFile whether the
software is registered. If not, the software can just work for 30 trial days
and become unusable.

However, I found that my program will read different IsolatedStorageFile
when the .exe program is placed in different folder. Therefore, when the
software is expired, the user can copy the .exe to another folder and a new
trial period starts.

Is it possible to let my program to read the same IsolatedStorageFile no
matter where the .exe is placed and who is logged in?

Below is the way I create and read my IsolatedStorageFile:

Dim isoStore As IsolatedStorageFile
isoStore = IsolatedStorageFile.GetStore(IsolatedStorageScope. Assembly Or
IsolatedStorageScope.User, Nothing, Nothing)

'read the IsolatedStorageFile
Dim reader As StreamReader
reader = New StreamReader(New IsolatedStorageFileStream("reg_info.secret",
FileMode.Open, isoStore))

Do you have any hints for me on this?

Thanks,
Jason
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

Why dont you take a look at licensing.
http://windowsforms.net/articles/Licensing.aspx

Ken
------------------
"Jason Ho" <fa*******@sinaman.com> wrote in message
news:O5****************@TK2MSFTNGP15.phx.gbl...
Dear All,

I would like to store the registration info of a user of my software. Every
time my program start, I will check form the IsolatedStorageFile whether the
software is registered. If not, the software can just work for 30 trial days
and become unusable.

However, I found that my program will read different IsolatedStorageFile
when the .exe program is placed in different folder. Therefore, when the
software is expired, the user can copy the .exe to another folder and a new
trial period starts.

Is it possible to let my program to read the same IsolatedStorageFile no
matter where the .exe is placed and who is logged in?

Below is the way I create and read my IsolatedStorageFile:

Dim isoStore As IsolatedStorageFile
isoStore = IsolatedStorageFile.GetStore(IsolatedStorageScope. Assembly Or
IsolatedStorageScope.User, Nothing, Nothing)

'read the IsolatedStorageFile
Dim reader As StreamReader
reader = New StreamReader(New IsolatedStorageFileStream("reg_info.secret",
FileMode.Open, isoStore))

Do you have any hints for me on this?

Thanks,
Jason

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.