Inno Setup-'ProgramData'目录的常量吗? [英] Inno Setup - Constant for 'ProgramData' directory?

查看:308
本文介绍了Inno Setup-'ProgramData'目录的常量吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望我的安装程序将一些文件复制到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.

推荐答案

它是之所以这样命名,是因为从历史上看(Windows XP)路径曾经是C:\Documents and Settings\All Users\Application Data(现在是C:\ProgramData的符号链接).

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆