Inno Setup-'ProgramData'目录的常量吗? [英] Inno Setup - Constant for 'ProgramData' directory?
问题描述
我希望我的安装程序将一些文件复制到Windows ProgramData
目录中,我看到大多数Windows目录都具有Inno Setup文档中已定义的预定义常量,但是对于ProgramData
我看不到一个常量
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
这是使用Inno Setup部署到此目录的正确/最佳方法吗?在我看来,ProgramData
目录没有常量.
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 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
).
出于同样的原因,使用{sd}\ProgramData
不是正确的方法.
And for the same reason, using the {sd}\ProgramData
is not the correct way.
这篇关于Inno Setup-'ProgramData'目录的常量吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!