开发者

Get the path to My Documents with Inno Setup

开发者 https://www.devze.com 2023-01-22 17:47 出处:网络
Is it possible to retrieve the path to My Documents folder with Inno setup? I tried to retrieve the path via registry

Is it possible to retrieve the path to My Documents folder with Inno setup?

I tried to retrieve the path via registry

RegQueryStringValue(HKCU, 'SOFT开发者_如何学JAVAWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders', 'Personal', path);

But it returned: %USERPROFILE%\Mina dokument. When I tried to use it as install path it didn't work.


Inno Setup supports the Shell Folder Constants {userdocs} and {commondocs} for this job.

0

精彩评论

暂无评论...
验证码 换一张
取 消