Robert Wigley
Robert Wigley

Reputation: 1957

Inno Setup CreateInputQueryPage insert text between input boxes

I have created the following custom Input Query Page:

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);

Is it possible to modify the existing page to move the Installation ID from where it is currently above the Password input box and insert it above the Unlock Code input box or does this require a completely custom designed page? If so, what would be the best way to go about creating it?

Upvotes: 2

Views: 2148

Answers (1)

Robert Wigley
Robert Wigley

Reputation: 1957

Here is the code I decided to use in the end:

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);

Upvotes: 1

Related Questions