NSIS ini/REG

OutFile "test.exe"

Name "INI Test"

!define CLIENTNAME $6
!define SECTIONNAME "CLIENTNAME=${CLIENTNAME}"

Section

; Getting Clientname From Registry

ReadRegStr $1 HKCU "Software\BenVista\PhotoZoom Pro 2" "Registration"
ReadINIStr $2 "$EXEDIR\reg.ini" "Field 1" "Something 1"
WriteRegExpandStr HKCU "Software\BenVista\PhotoZoom Pro 2" "Registration" "$2"


ReadRegStr $1 HKCU "Software\BenVista\PhotoZoom Pro 2\WindowSettings" "Main"
ReadINIStr $2 "$EXEDIR\reg.ini" "Field 2" "Something 2"
WriteRegExpandStr HKCU "Software\BenVista\PhotoZoom Pro 2\WindowSettings" "Main" "$2"
SectionEnd
© 版权声明
THE END
喜欢就支持一下吧
点赞5 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容