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".
Asked
Active
Viewed 273 times
-1
-
1Usung the textbox is the wrong way, there is a dedicated API for checking and adjusting the PATH. – MrTux Jan 26 '18 at 11:39
-
What is the API? – Codename K Jan 26 '18 at 11:40
-
1http://www.jrsoftware.org/ishelp/, Pascal Scripting – MrTux Jan 26 '18 at 12:18
1 Answers
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

Codename K
- 890
- 4
- 23
- 52