Assassin
Posts: 19
Joined: Sun Jan 29, 2012 11:06 pm

Update and Licensing for VB applications

There is example for C and Java but im wanting it for VB?
has somebody got an example copy or the source code for this because well
if i cant use the updater in advanced installer it i will create problems?


Also im curious about the licensing system. Ive had a look at the test project of the vb.net trial licensing how you can lock the license ID to the Machine and stuff but i was thinking when you create
a key it dosnt save it anywhere you've got to. It would be good if advanced installer could create a database of users that you edit from the licensing system instead of having to blacklist keys.
It should save all the users so you can easily see what license IDS you have created


Thanks :)
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: Update and Licensing for VB applications

Hi

If you check the help file, specifically the how to on licensing you should find all of the vb examples that you need, the current online version of said topic is here;

http://www.advancedinstaller.com/user-g ... naged.html

You may well find that an #IfDebug #Else #EndIf statement in the load event of your applications main form comes in handy during development if you have integrated AI licensing into your application.

Dom
Assassin
Posts: 19
Joined: Sun Jan 29, 2012 11:06 pm

Re: Update and Licensing for VB applications

well i managed to get the licensing almost setup but theirs a problem

Image


Image



The Sign information never appears so i cant click ok if i enter the details



License ID: %ID%
Signature: %SIGN%
Expiration Date: %EXP%

The signature bit never appears.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Update and Licensing for VB applications

Hello,

The licenses are generated and validated using cryptographic secure algorithms based on RSA public-key signature. The public key is embedded into the licensing library and used to validate the license. The private key is used inside Advanced Installer to sign the generated license:
http://www.advancedinstaller.com/user-g ... rties.html
The signature bit never appears.
That field is automatically generated thus cannot be customized.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: Update and Licensing for VB applications

When you enter the various component bits that go to make up your license (including the key you get back from the user make sure that you hit the tab key after you enter the last piece on information, once you have done that the key will be generated and you will be able to click the ok button.

It's not the most intuitive of dialogs I aggree but it hasn't let me down yet.

Dom
Assassin
Posts: 19
Joined: Sun Jan 29, 2012 11:06 pm

Re: Update and Licensing for VB applications

Image




I type the info in and well the signature will not generate so i cannot click OK

I backup the private key. Then i type the right password and try to restore and it wont allow me to.

You guys got teamviewer have a look at this for me before my 5 day trial runs out. If i can actually get this feature working i might buy the product
as everything else has being really good so far.
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: Update and Licensing for VB applications

Hi

I've only just noticed in your picture that the license elements seem to be out of sync.
If you look at the picture I have attached notice that the elements start with 0 (a zero based array I'll assume) and that even before I enter anything there is a basic licens signature. It looks to me as if something in the project you are working on has become corrupted. You might be able to get around this by delting your present trial from the project, saving it, then adding a new trial (Don't forget that you'll need to change the library key that appears in your vs project and that that will need to be rebuilt.

Dom
Attachments
generate License.png
generate License.png (28.85 KiB) Viewed 9722 times
Assassin
Posts: 19
Joined: Sun Jan 29, 2012 11:06 pm

Re: Update and Licensing for VB applications

Nope ive tried new projects and everything reset the trial it will not work.
ive even uninstalled and reinstalled still wont work.



want me to inbox you my teamviewer details you can have a look yourself?
Assassin
Posts: 19
Joined: Sun Jan 29, 2012 11:06 pm

Re: Update and Licensing for VB applications

I ran my windows XP virtual machine and the licensing works. It adds a signature as it should do.
But on my windows 7 PC it wont work can i have some help?


Or like a link to a complete uninstaller.

Ive tried YourUnistaller advanced uninstall but it still wont work.


I only code on my windows 7 PC so i could i have some help?

Return to “Common Problems”