简体   繁体   中英

Do we have any constant to get the Current User path in NSIS

I am new to NSIS scripting. I need to delete a folder from C:\\Users\\{USER NAME} . Is there any constant to get this path. My application is present in user folder. $DOCUMENTS , $DESKTOP are not helpful for me

For Windows 2000 (and later), NSIS provides the $PROFILE constant (see documentation ). As far as I know, any Windows environmental variable should work as well (eg %UserProfile% ), but I'd stick to the NSIS provided constants where available.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM