This vary in each program, Sometimes I installed and activate the application in virtual machine then copy the key from the registry and use it in WPI, other way is to get all files from the folder %allusersprofile%\appdata, or one more way is to install the app, activate it, then take backup of the appdir, %appdata% and all regkeys then make an installer with winrar self-extract.