good point. Yes, SHGetFolderPath is deprecated. Unfortunately, for backwards compatibility, CSIDL is the only mechanism that can be used to power installs from pre-Vista up to Server 2022.

I have added a new "Get KnownFolder Path..." script function to SetupBuilder 2022 to support KNOWNFOLDERID values.

Thank you for your suggestion !!!