NSIS INI파일 연동
As a developer/C/C++ 2012. 9. 14. 20:24
http://forums.winamp.com/showthread.php?t=346431&highlight=script
Function .onInit
ReadINIStr $v_major "\AA\my.ini" "Versiuni" "major"
ReadINIStr $v_minor "\AA\my.ini" "Versiuni" "minor"
ReadINIStr $v_build "\AA\my.ini" "Versiuni" "build"
ReadINIStr $v_revis "\AA\my.ini" "Versiuni" "revision"
FileOpen $R0 "version.nsh" w
FileWrite $R0 "!define v_major '$v_major'"
FileWrite $R0 "$\r$\n"
FileWrite $R0 "!define v_minor '$v_minor'"
FileWrite $R0 "$\r$\n"
FileWrite $R0 "!define v_build '$v_build'"
FileWrite $R0 "$\r$\n"
FileWrite $R0 "!define v_revis '$v_revis'"
FileClose $R0
FunctionEnd