Valid Serial Later Shows Invalid Serial - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Lee
Posts: 3
Joined: Fri Sep 03, 2010 4:31 pm

Valid Serial Later Shows Invalid Serial

Hi All, got a bit of an issue here.

I am running the trial version of the Professional Addition and I am using server side validation.

I can enter a valid serial number and the install continues to the installing screen but I then get a popup box saying Invalid Serial Number.

Image
Image
Image

There is only one request made to the web server which is made at stage 1

Is this because it is the trial version or a bug?

Thanks Lee
rehook
Posts: 8
Joined: Thu Sep 02, 2010 5:21 am

Re: Valid Serial Later Shows Invalid Serial

I'm having this same problem, and I'm pretty sure it is becuase of the custom action > InstallExecuteSequence > ValidateProductID

I am not able to delete it either.
rehook
Posts: 8
Joined: Thu Sep 02, 2010 5:21 am

Re: Valid Serial Later Shows Invalid Serial

Ok, I got mine working fine now.
I'm not sure if you are using the same setup, but I'll post my changes (I had the same error)

Version: Professional

I'm using server side validation, if the serial is valid, install proceeds and I store the serial in a registry value called "LicenseID"
When installing over the previous version I wanted to have the serial automatically populated in the serial key box
(you can find the forum threads with my questions on that topic)

I used 2 entries in [Custom Behavior > Search] (named PIDKEY_PROPERTY & PRODUCTID_PROPERTY) and added a "new search" to each, with "add location > registry" for both
Added the info needed to get the "LicenseID" value from the registry

Then under [Custom Behavior > Custom Actions]
InstallUISequence
> FindRelatedProducts
and
InstallExecuteSequence
> FindRelatedProducts

Created 2 new "New Custom Action > Property set with formatted" and named then SET_PIDKEY and SET_PRODUCTID
(so i had a total of 4, 2 under each)

Under SET_PIDKEY
General Properties
-------------------------------------
Property Name: PIDKEY
Formatted Text: [PIDKEY_PROPERTY]

Execute Condition
--------------------------------------
Expression: PIDKEY_PROPERTY <> ""


Under SET_PRODUCTID
General Properties
-------------------------------------
Property Name: ProductID
Formatted Text: [PRODUCTID_PROPERTY]

Execute Condition
--------------------------------------
Expression: PRODUCTID_PROPERTY <> ""

Then ran an initial install (serial number field blank) :D
Then ran an upgrade install (serial number filled in with value from the registry) :D

I did set up one more thing under the [Deployment > Resources] tab
I took my Registy_LicenseID > LicenseID and set it to "permanent" so when the installer un-installs the previous version before installing the update, the key persists.

Hope this helps

I'm happy it worked for me and that I'm understanding this program a little better.
Lee
Posts: 3
Joined: Fri Sep 03, 2010 4:31 pm

Re: Valid Serial Later Shows Invalid Serial

Glad you have got it working, but unfortunately this doesn't fix my problem. I get the serial error even if i create a new installer and only enable the online validation with all other setting as default.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Valid Serial Later Shows Invalid Serial

Hi Lee,

A discussion on this forum already treated this subject. Here you can read more.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Lee
Posts: 3
Joined: Fri Sep 03, 2010 4:31 pm

Re: Valid Serial Later Shows Invalid Serial

Thanks for the link, tho I don't think its the same issue. I only get 1 call to my web server not 2.

If this is the same issue is there any way of fixing it in the professional version and not the enterprise version and that's the only version with the dialog editor?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Valid Serial Later Shows Invalid Serial

Hi Lee,
I only get 1 call to my web server not 2.
Please note that when you press the [Next] button on "UserRegistrationDlg" dialog the first validation should occur, and during the InstallExecuteSequence
the second one should be executed.

Is the validation executed only during the InstallExecuteSequence in your project?
If this is the same issue is there any way of fixing it in the professional version and not the enterprise version and that's the only version with the dialog editor?
You could try the same solution explained above by Rehook, but instead of retrieving the value of the pidkey from the registry you can save it in a new public property at the end of the InstallUISequence
(on "ExecuteAction" standard action) and put it back in PIDKEY during InstallExecuteSequence using the predefined custom action "Property Set with Formatted".

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”