开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜