Tamir Gefen
Tamir Gefen

Reputation: 1126

How to determin if folder already exists in innosetup

Can you give me instructions how to check if folder already exists (right after the user selected a folder), and if so - prompt him with a similar message to the attached one?

Thank you

enter image description here

Upvotes: 2

Views: 2517

Answers (1)

TLama
TLama

Reputation: 76683

To force this warning to always popup (even when the application was already installed and you're going to install the new version of it into the same folder), you can set the DirExistsWarning to yes:

[Setup]
...
DirExistsWarning=yes

Upvotes: 2

Related Questions