我如何为此序列表设置序列号(Inno Setup) [英] How can i set the serial for this serial form (Inno Setup)
本文介绍了我如何为此序列表设置序列号(Inno Setup)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找一个串行脚本,在这里找到了一个脚本:
I was looking for a serial script and I found one here:
但是我该如何设置序列,因为所有序列现在都有效.
But how can I set the serial because all serials are valid now.
谢谢您的回答!
推荐答案
从我的 previous post
扩展代码,如果要将序列号与常量值进行比较,则可以通过这种方式修改脚本.允许用户继续使用的唯一有效序列号是62FFU-GA4N8-T8N6W-WLQJW-N6WLQ-AJKD6
:
procedure OnSerialEditChange(Sender: TObject);
var
CanContinue: Boolean;
begin
// the GetSerialNumber defined there returns you the serial number string
// built from each edit box delimited by the char passed as a parameter
CanContinue := GetSerialNumber('-') = '62FFU-GA4N8-T8N6W-WLQJW-N6WLQ-AJKD6';
WizardForm.NextButton.Enabled := CanContinue;
end;
但是请注意,根本不将序列号存储为常量不是一个好习惯.您应该考虑使用另一种方式来验证您的产品.
But note, it's not a good practice to store serial numbers as constants at all. You should consider to use another way to validate your product.
这篇关于我如何为此序列表设置序列号(Inno Setup)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文