In the Registration panel, I would like to specify a path (like user documents) in the "Single File" field, so my licenses are expected to be located there. Is that possible?

<< Click to Display Table of Contents >>

Navigation:  WinLicense > FAQ > Registration > Common >

In the Registration panel, I would like to specify a path (like user documents) in the "Single File" field, so my licenses are expected to be located there. Is that possible?

Yes, in the "File License" field (in the Registration panel), you can specify one of the defined WinLicense directory constants to place your licenses in different Windows common folders, like:

 

%USER_DOCS% (or %userdocs%) : Specifies the current user documents folder (!My Documents).  

 

%USER_APP_DATA% (or %userappdata%) : Specifies the current user application data folder (!{user name}\Application Data)  

%COMMON_APP_DATA% (or %commonappdata%) : Specifies the common application data for all users (!All Users\Application Data)  

 

%LOCAL_APP_DATA% (or %localappdata%) : Specifies the local application data for the current user (!{user name}\Local Settings\Application Data (non roaming))  

 

%WIN_FOLDER% (or %windir%): Specifies the Windows folder

 

%TEMP_FOLDER% (or %tempfolder%): Specifies the user temporal folder

 

%PUBLIC_DOCS% (or %publicdocs%): Specifies the public documents folder

 

Notice that the above constants are case sensitive. You can specify sub-directories with any of the above constants. Example:

 

%USER_DOCS%\MyApplication\Licences\license.dat  

 

If you are installing a file license from a SmartKey (via WLRegSmartKeyInstallToFile) or from a Text key (WLRegNormalKeyInstallToFile) the generated file will be placed in the expected path that you put in the "File License" field (in the Registration Panel)