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.
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...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With