Inno Setup用户主路径
问题描述:
我希望我的安装程序将一些文件放入用户的主路径(Windows%USERPROFILE%环境变量指向的路径,以及Qt的
I would like my installer to put some files into a users home path, (the path that the Windows %USERPROFILE% environment variable points to, and the path Qt's QDir::homePath() returns).
我查看了 Inno设置常量页,但是可以找不到我要寻找的道路.
I have looked at the Inno Setup Constants page, but can't find the path I am looking for.
答
对于特定于用户的应用程序数据,应使用指向应用程序数据文件夹的常量{userappdata}
.在此位置,您可以为应用程序创建一个文件夹,用于在其中存储用户特定的文件.
For user specific application data you should use the constant {userappdata}
which points to the application data folder. In this location you can create a folder for your application to store user specific files in.