0
我試圖創建和設置與NSIS目錄和accessControl plugin像下面這樣:NSIS AccessControl的:: GrantOnFile允許失敗
CreateDirectory "$APPDATA\${productName}"
; create fileResources directory
CreateDirectory "$APPDATA\${productName}\fileResources"
AccessControl::GrantOnFile "$APPDATA\${productName}\fileResources" "Everyone" "FullAccess"
Pop $0 ; get "Marker" or error msg
StrCmp $0 "Marker" Continue
MessageBox MB_OK|MB_ICONSTOP "Error setting access control for $APPDATA\${productName}\fileResources: $0"
Pop $0 ; pop "Marker"
Continue:
Pop $0
我想打一個文件夾中安裝的程序
你使用正確的插件嗎?檢查Ansi或Unicode - 如果使用不正確的響應字符集是錯誤的(如中文)。 – Slappy