最新消息:

NSIS ini/REG

nsis 永恒心锁 949浏览 0评论
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
永恒心锁,版权所有丨如未注明,均为转载丨本网站采用BY-NC-SA协议进行授权

转载请注明:永恒心锁-分享互联网 » NSIS ini/REG

您必须 登录 才能发表评论!