emendelson
emendelson

Reputation: 545

Show install directory in Inno Setup, but do not allow change?

In in Inno Setup installer, I want to require the installation to be in a specific folder, but I want the user to see what the folder is. Is there a way to do this?

If I use DisableDirPage=no then the user can change the installation folder. If I use DisableDirPage=yes then the user cannot see where the installation will go.

Is it possible to show the folder without allowing it to be changed?

I am NOT asking how to force installation into a specific folder, as I already know that. I am ONLY asking how to show the installation folder to the user.

Upvotes: 0

Views: 110

Answers (1)

Martin Prikryl
Martin Prikryl

Reputation: 202534

If you combine DisableDirPage=yes with AlwaysShowDirOnReadyPage=yes, then the directory will show on the "Ready to install" page.

[Setup]
DisableDirPage=yes
AlwaysShowDirOnReadyPage=yes

Upvotes: 3

Related Questions