我创建了以下自定义输入查询页面:
PasswordPage := CreateInputQueryPage(wpSelectComponents,
'Installation Validation', 'Please enter either the password or unlock code to continue?',
'This installation type is protected for licensing reasons. Please enter either the password or unlock code, then click Next.' + #13#10 + #13#10 + 'Installation ID: ' + FindVolumeSerial('C:\'));
PasswordPage.Add('Password:', True);
PasswordPage.Add('Unlock Code:', False);
是否可以修改现有页面以将安装ID从当前位于密码输入框上方的位置移动并将其插入解锁代码输入框上方,或者是否需要完全自定义设计的页面?如果是这样,创建它的最佳方法是什么?
答案 0 :(得分:1)
以下是我最终决定使用的代码:
PasswordPage := CreateInputQueryPage(wpSelectComponents,
'Installation Validation', 'Please enter either the password or unlock code to continue?',
'This installation type is protected for licensing reasons. Please enter either the password or unlock code, then click Next.'
PasswordPage.Add('Password:', True);
PasswordPage.Add('Or Installation ID ' + FindVolumeSerial('C:\') + ' and' + #13#10 + #13#10 + 'Unlock Code:', False);