Closed Schroedingers-Cat closed 1 year ago
So it seems that %CommonFilesFolder% is for MSI installer: https://learn.microsoft.com/en-us/windows/win32/msi/commonfilesfolder
Windows accepts both /
and \
as directory separator isn't it?
PR looks good to me! Windows does seem to accept both directory separators, but it's still using \ pretty much everywhere throughout its interface.
Could it be that we provide both the MSI installer variables and environment variable in the documentation? Or would it be misleading?
Not everyone would be writing a MSI installer (there's InnoSetup, InstallShield, NSIS...) so I think it's better to use the system envvar here, it's super clear then and developers can consult their installer's documentation for additional clarification (if they already don't know these things by heart).
Then we're good to go I believe.
Windows accepts both
/
and\
as directory separator isn't it?
Pretty much everywhere except for inside of the GUI file open dialog. So for actual cross-platform code it can be a good idea to just use forward slashes everywhere to reduce the amount of platform-specific bits mixed in with the rest of the code.
This PR improves two things in the
entry.h
file's comment section:C:\Program Files\Common Files\CLAP
, which is stored in the environment variable%COMMONPROGRAMFILES%
. However, the comment section inentry.h
specifies a wrong (non-existing) environment variable to be used.\
but the comment section uses the *nix directory separator/
for Windows paths.