Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inno Setup Directory Exists

I am trying to check in inno setup if a directory exists and i would like to do so manually respectively programmatically. The Setup I am creating in Inno setup is an update. Here comes the tricky part, the initial setup uses a C# application to install all the files on the disc because the setup is different for every customer. I want to check now which directories are installed, because by that i know what i have to update. My question is: How do i determine in Inno setup if a directory exists or how do i determine which subdirectorys a directory has

And as always Thanks in advance.

like image 354
Bongo Avatar asked Sep 09 '13 07:09

Bongo


1 Answers

What about DirExists function?

You can use it as Check or other kind of function - whatever you need.

Example in code:

if DirExists(ExpandConstant('{userdocs}\Games\My Game')) then 
//action, Result := True, etc...
like image 87
RobeN Avatar answered Sep 28 '22 06:09

RobeN