View previous topic :: View next topic |
Author |
Message |
Sputnik
Joined: 23 Apr 2007 Posts: 80
|
Posted: Sat Jun 09, 2007 9:16 pm Post subject: license key file question |
|
|
right now - in a module, I have:
Public StoreFolder As String = application.StartupPath & "\Users\MyAppName.lic"
Public LICENSE_FILE As String = StoreFolder
However when I try to change the path in the InstallLicense function, I get a message saying I didn't have permissions to do that
I also previously go the same message when trying to save it to the system directory
Is there a way to encrypt it, and to save the file in a separate location from the root of the application, or at least somewhere hidden? |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Jun 11, 2007 1:22 am Post subject: |
|
|
If the customer installing your license may not have admin permissions then you should not store the license in the application directory. Instead you should use the common data directory. The sample licensed app project in the latest release of ILS demonstrates how to do this:
Code: | Shared _dataDir As String = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)
Shared _licenseFile As String = _dataDir + "\LicensedApp\LicensedApp.lic" |
Note that there were also some changes in this release to support the automatic creation of subdirectories if required. So you should ensure that you have downloaded and installed this version and downloaded the latest source code (using the link and password emailed to you on purchase). _________________ Infralution Support |
|
Back to top |
|
|
|