Ramzi
Ramzi

Reputation: 29

Directory confirmation dialog window in Inno Setup

I wanna know how to add that directory confirmation dialog window, where it's showing the main path but the user can still change it and apply it to this code:

[Setup]
AppName=Test
AppVersion=1.0.0
DefaultGroupName=Test
OutputBaseFilename=Test
DisableWelcomePage=no
 
[Components]
Name: "Format1";     Description: "Format1";      
Name: "Format2";     Description: "Format2";     
 
[Files]
Source: "I:\Format1.dll";  DestDir: "{app}\Test\Format1"; Flags:; Components: Format1
Source: "I:\Format2.dll";  DestDir: "{app}\Test\Format2"; Flags:; Components: Format2

Upvotes: 2

Views: 235

Answers (1)

Slappy
Slappy

Reputation: 5472

By directory confirmation dialog window you mean the Inno's standard Directory page? Use:

[Setup]
DisableDirPage=no

Default value is auto so force this value to no to always show the page, see the doc:

[Setup]: DisableDirPage Valid values: auto, yes, or no Default value: auto Description: If this is set to yes, Setup will not show the Select Destination Location wizard page. If this is set to auto, at startup Setup will look in the registry to see if the same application is already installed, and if so, it will not show the Select Destination Location wizard page. Also see AlwaysShowDirOnReadyPage.

More details in online Inno help

Directory page

Upvotes: 3

Related Questions