J
Jason Ho
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
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