I want my setup program to copy some files into the Windows ProgramData
directory, I see that most Windows directories have pre-defined constants already defined in the Inno Setup documentation, however I can't see one for ProgramData
.
Therefore I am planning to use something like:
{sd}\ProgramData\MyCompany\MyApp
Is this the correct/best way to deploy to this directory using Inno Setup? It just seems odd to me that there is no constant for the ProgramData
directory.
It's the {commonappdata}
constant.
It's named so, because historically (Windows XP) the path used to be C:\Documents and Settings\All Users\Application Data
(now that's a symbolic link to the C:\ProgramData
).
And for the same reason, using the {sd}\ProgramData
is not the correct way.
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