15

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.

1 Answer 1

25

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.