Talk:Get the Special Folders Directories (System plugin): Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
(need usage example) |
(response to Goldend) |
||
Line 1: | Line 1: | ||
A usage example would make this script more useful. | A usage example would make this script more useful. | ||
I just would like to get the value of the COMMONAPPDATA - so I can create my application data directory there. | I just would like to get the value of the COMMONAPPDATA - so I can create my application data directory there. [[User:Goldend|Goldend]] ([[User_talk:Goldend|talk]]) 13:28, 2 January 2016 (UTC) | ||
: This article is an example in itself, just copy paste it in your script and change <code>${CSIDL_HISTORY}</code> to <code>${CSIDL_COMMONAPPDATA}</code> at the line beginning by <code>System::Call</code>. | |||
: To be more explicit: paste the <code>!define</code> lines at the beginning of your script, and call <code><nowiki>System::Call 'shell32::SHGetSpecialFolderPath(i $HWNDPARENT, t .r1, i ${CSIDL_COMMONAPPDATA}, i0)i.r0'</nowiki></code> inside your section, you will then use the <code>$1</code> var as you want.<br> | |||
: PS: Please sign your messages by adding <nowiki>~~~~</nowiki> at the end. Thanks. | |||
: -- [[User:Bugmenot|Bugmenot]] ([[User talk:Bugmenot|talk]]) 16:40, 8 January 2016 (UTC) |
Latest revision as of 16:40, 8 January 2016
A usage example would make this script more useful.
I just would like to get the value of the COMMONAPPDATA - so I can create my application data directory there. Goldend (talk) 13:28, 2 January 2016 (UTC)
- This article is an example in itself, just copy paste it in your script and change
${CSIDL_HISTORY}
to${CSIDL_COMMONAPPDATA}
at the line beginning bySystem::Call
.
- To be more explicit: paste the
!define
lines at the beginning of your script, and callSystem::Call 'shell32::SHGetSpecialFolderPath(i $HWNDPARENT, t .r1, i ${CSIDL_COMMONAPPDATA}, i0)i.r0'
inside your section, you will then use the$1
var as you want. - PS: Please sign your messages by adding ~~~~ at the end. Thanks.
- -- Bugmenot (talk) 16:40, 8 January 2016 (UTC)