-1

Can you modify the default folder selection dialog in InnoSetup? I mainly need to change the folder path textbox in this dialog. When the user clicks the Next button it needs to check if the folder path given is "C:\Data1". If this path is given then it needs to be changed to "C:\Data".

Codename K
  • 890
  • 4
  • 23
  • 52

1 Answers1

0

This solution worked,

[code]
function NextButtonClick(CurPageID: Integer): Boolean;
begin
  case CurPageID of
    wpSelectDir:
      begin
        if WizardForm.DirEdit.Text = 'C:\Data1' then 
          WizardForm.DirEdit.Text := 'C:\Data';
      end;
  end;
end;

Thanks to these links,

Get the path in the wpSelectDir before {app} is set Inno Setup

How to allow installation only to a specific folder?

Inno Setup with three destination folders

Codename K
  • 890
  • 4
  • 23
  • 52