|
||
When you uninstall a product, you should unregister the DLL / COM exe and transfer the license.
If your application is installed using an installer application, the unregister process of the DLL / COM exe is done automatically by the installer. How to manually unregister see Unregister / DLL / COM exe
Typically users don't bother to transfer the license before they uninstall an application. A good idea is to do the license transfer automatically during the uninstall process. This requires only a few API commands.
Invoke your application with a command line like /uninstall. Then process the following API commands
•Only if the product is already activated, do a license transfer (GetWebActivation = 2)
•Disable screen messages using ShowWASStartPage, ShowWASProgressPage , ShowWASResultPage
•Retrieve main module ID using MainModuleID
•Retrieve the Serial Number using GetSerial. Only if the result string is not empty (a Serial Number is available) do the license transfer
•DeactivateModule - this deactivates the license and does the license transfer. Ensure that you transfer the complete license file (SendLicData = true)
•Quit your application
When the user installs the application on a new computer, you have to activate the license transfer functionality with SetRegisterLicTransfer using the exact same values (File Description,Encryption Code) you used in DeactivateModule. During product activation with PrepareAndCheck, the old license file will be automatically downloaded.
Do the license transfer only for a single user installation. A network license should be manually transferred by the admin using the workflow explained in Transfer a license from PC A to PC B