开发者

What is the environment variable for AppData in NSIS installer script?

开发者 https://www.devze.com 2023-03-12 05:41 出处:网络
I am looking for the env开发者_开发知识库ironment variable for AppData in NSIS. I need to copy fils to the AppData directory in my installation.It can\'t be easier than this $APPDATA, you can do somet

I am looking for the env开发者_开发知识库ironment variable for AppData in NSIS. I need to copy fils to the AppData directory in my installation.


It can't be easier than this $APPDATA, you can do something like this:

SetShellVarContext all
!define INSTDIR_DATA "$APPDATA\MyApp" ; call "SetShellVarContext all" before!


$APPDATA is already defined as constant in NSIS.

The application data directory. Detection of the current user path requires Internet Explorer 4 and above. Detection of the all users path requires Internet Explorer 5 and above. The context of this constant (All Users or Current user) depends on the SetShellVarContext setting. The default is the current user.

0

精彩评论

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