Inno Setup Carrega padrões para configurações de instalação personalizadas de um arquivo (.inf) para instalação silenciosa

Eu tenho um script de instalação que permite ao usuário especificar onde eles gostariam de instalar meu aplicativo. É na forma de um script Pascal dentro do[Code] quadra.

var
  SelectUsersPage: TInputOptionWizardPage;
  IsUpgrade : Boolean;
  UpgradePage: TOutputMsgWizardPage;

procedure InitializeWizard();
var
  AlreadyInstalledPath: String;
begin
  { Determine if it is an upgrade... }
  { Read from registry to know if this is a fresh install or an upgrade }
  if RegQueryStringValue(HKLM, 'Software\Microsoft\Windows\CurrentVersion\Uninstall\{#MyAppId}_is1', 'Inno Setup: App Path', AlreadyInstalledPath) then
    begin
      { So, this is an upgrade set target directory as installed before }
      WizardForm.DirEdit.Text := AlreadyInstalledPath;
      { and skip SelectUsersPage }
      IsUpgrade := True;

      { Create a page to be viewed instead of Ready To Install }
      UpgradePage := CreateOutputMsgPage(wpReady,
        'Ready To Upgrade', 'Setup is now ready to upgrade {#MyAppName} on your computer.',
        'Click Upgrade to continue, or click Back if you want to review or change any settings.');
    end
  else
    begin
      IsUpgrade:= False;
    end;

  { Create a page to select between "Just Me" or "All Users" }
  SelectUsersPage := CreateInputOptionPage(wpLicense,
    'Select Users', 'For which users do you want to install the application?',
    'Select whether you want to install the library for yourself or for all users of this computer. Click next to continue.',
    True, False);

  { Add items }
  SelectUsersPage.Add('All users');
  SelectUsersPage.Add('Just me');

  { Set initial values (optional) }
  SelectUsersPage.Values[0] := False;
  SelectUsersPage.Values[1] := True;
end;

Portanto, a pergunta é como eu poderia suportar uma instalação silenciosa? Quando um usuário chama/SILENT ou/VERYSILENT o instalador assume como padrãoSelectUsersPage.Values[1], que é paraJust Me. Quero ajudar o usuário que deseja alterar o diretório de instalação a fornecer um arquivo de resposta.

Não desenvolvi todo esse código e sou novato no Pascal.

Obrigado.

questionAnswers(1)

yourAnswerToTheQuestion