anand
anand

Reputation: 643

Inno Setup: wpselectDir not displaying make new folder

when browse button is clicked on the wpselectdir wizard, the pop-up window is not displaying "make new folder". In the help, they say if the DefaultDirName is set to no, it causes a Make New Folder button to appear on the dialog. I tried to set as no in the [setup] section, which didnt work. Please help.

Note: I created a wizard page from CreateInputDirPage, where in i have the option to make it display, which is working fine.

Upvotes: 1

Views: 1562

Answers (1)

TLama
TLama

Reputation: 76663

The Browse For Folder dialog's Make New Folder button visibility has a special rule to be there. You must have AppendDefaultDirName directive explicitly set to no since by default is yes. As a consequence, it will disable automatic adding a path to the selected folder but there's no other way to get Make New Folder button visible (checked in InnoSetup source):

[Setup]
AppendDefaultDirName=no

Upvotes: 6

Related Questions