I been using NSIS for simple installers. I am now at a point where i need to install files to a user's specific location. For example, in my case, the palette directory where i need to put the new palettes is C:\Users\Russ\Documents\My Palettes.

How can i determine, automatically, the current user (Russ) when the installer executes. (Or is this something i have to prompt the user for?)

I've looked at other NSIS constants, but couldn't find something particular for this.

有帮助吗?

解决方案

My documents is listed in the constants list.

MessageBox mb_ok "$Documents\My Palettes"
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top