Search code examples
inno-setuppascalscript

How to delete or disable Organization box from UserInfoPage?


Well, as the question says, is there any way to delete or disable organization box?

Here a screenshot:

Organization box


Solution

  • You can hide both Label and Edit box with CurPageChanged procedure in [Code] section.

    [Code]
    procedure CurPageChanged(CurPageID: Integer);
    begin  
      if CurPageID = wpUserInfo then begin  
        WizardForm.UserInfoOrgLabel.Hide();
        WizardForm.UserInfoOrgEdit.Hide();
      end;
    end;