Scott Bieker
Posts: 4
Joined: 2005-03-22
|
I use XHEO|Licensing to create serial keys for my applications. I have added a license manager to my new Excel Add-in and currently have the "check for license" in the mybase.addininitialize event.
it looks like this...
If Me.StartMode = AddinExpress.MSO.ADXStartMode.smNormal Then
Dim lic As New LicenseComponent
End If
I was wondering if there is a "better way." This allows the user to be prompted for a serial number when the STARTMODE becomes "NORMAL." However, they get a chance to use the application with "FIRSTSTART" without being prompted for a license key. If I also add the licensecomponent when startmode = firststart, then the user is prompted in the middle of the install with my .msi file.
Maybe there is a different event to place this check on? I really just want to check for the license key when the user opens up Excel, not on install or uninstall.
Maybe another "startmode" could be created == "INSTALLED"
Thanks for your help.
scott |
|
Dmitry Kostochko
Add-in Express team
Posts: 2887
Joined: 2004-04-05
|
|