foobar2000中国爱好者社区

首页 » 技术讨论区 » foobar2000及插件汉化技术讨论 » nsis编程测试:配置文件foobar2000.cfg无法写入
青衫一袭 - 2008-7-15 16:27:00
请看下面一段NSIS编程:
Section "配置文件" foocfg
SectionIn 1 2
SetOutPath "$AppData\Roaming\foobar2000"
ReadINIStr $0 "$PLUGINSDIR\io.ini" "Field 15" "State"
StrCmp $0 1 0 +2
File ".\include\foobar2000.cfg"
ReadINIStr $0 "$PLUGINSDIR\io.ini" "Field 16" "State"
StrCmp $0 1 0 +2
File ".\resource\cfg_columns\foobar2000.cfg"
WriteINIStr "$INSTDIR\installer.ini" foobar2000 cfg 1
SectionEnd
我使用的操作系统是windows vista, 测试显示配置文件foobar2000.cfg无法写入 "系统盘\当前用户\AppData\Roaming\foobar2000"。很可能是
                    SetOutPath "$AppData\Roaming\foobar2000"
    这条编程有误。

谁能帮我解决这个问题?
1
查看完整版本: nsis编程测试:配置文件foobar2000.cfg无法写入