Server-Side Serial Validation Not Returning Status Msg. - 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!

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

Server-Side Serial Validation Not Returning Status Msg.

Hi,

I've managed to get the Server-Side Serial Validating 1/2 way working.

During install, at the serial number entry screen everything works fine Valid keys allow the user to proceed and invalid keys do not allow the user to proceed BUT......

No status message is returned when a key is determined to be invalid

Here are both responses.
<%IF VALID_KEY THEN%>
<%Response.Write "601\nThe serial number is valid."%>
<%ELSE%>
<%Response.Write "602\nThe serial number is invalid."%>
<%END IF%>

In other words.. I'm assuming that if the 602 is returned after the users clicks the "next" button, a dialog or msgbox would appear to alert the user that the code entered is not valid. (I hope I'm assuming correctly, otherwise it appears that nothing has happend)

The installer picks up either the 601 & 602 from the above code (and does what it should), but the description text is nowhere to be found.

I'm using ASP for the Server-Side Validation


Please help,
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Server-Side Serial Validation Not Returning Status Msg.

Hello,

The issue stems from the fact asp does not interpret the \n correctly. Try using "vbCrLf" or "vbNewLine" instead.
A response would look something like

Code: Select all

<%Response.Write "602"%>
<%Response.Write vbCrLf%>
<%Response.Write "The serial number is invalid."%>
Let me know if it helped.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
rehook
Posts: 8
Joined: Thu Sep 02, 2010 5:21 am

Re: Server-Side Serial Validation Not Returning Status Msg.

Works perfectly

Thanks!!!

Return to “Common Problems”