NSIS는 총 4 개의 XML 플러그 인 중에서 선택할 수 있습니다. (Wizou에 의해) NsisXML를 사용 NsisXML (by Wizou), XML plug-in, NsisXML (by Joel) 및 NsXML
:
Old value: Did not exist
Saved new value: 709289703
Completed
을하고 두 번째 실행에 내가 가지고 : 첫 번째 실행에
Outfile "$%temp%\NSISTest.exe"
RequestExecutionLevel user
Installdir "$Temp"
Showinstdetails show
!include LogicLib.nsh
Page InstFiles
!define XMLFILE "$instdir\myxml.xml"
Section
StrCpy $9 "Did not exist"
nsisXML::create
nsisXML::load "${XMLFILE}"
${If} $0 = 0
;build a new basic XML file:
nsisXML::create
nsisXML::createProcessingInstruction "xml" 'version="1.0" encoding="UTF-8" standalone="yes"'
nsisXML::appendChild
nsisXML::release $2
${EndIf}
nsisXML::select '/choise'
${If} $2 = 0
StrCpy $1 $0
nsisXML::createElement "choise"
nsisXML::appendChild
${Else}
nsisXML::getText
StrCpy $9 $3
${EndIf}
DetailPrint "Old value: $9"
System::Call 'kernel32::GetTickCount()i.r5' ;Get some "random" value to save
nsisXML::setText "$5"
nsisXML::release $2
nsisXML::save "${XMLFILE}"
nsisXML::release $0
DetailPrint "Saved new value: $5"
SectionEnd
내가 얻을
Old value: 709289703
Saved new value: 709308687
Completed
위 설정 파일의 항목에 서식 문제가 있습니다. 그래서 그것에 대한 아래의 설명을 찾아보세요 - ABCD –
user1234
코드를 사용 U 매우 – CharlesB
감사를 포맷 XYZ choise1 –
user1234