About WriteRegStr
Hi all,
I use this code to write the date on registry.
WriteRegStr HKLM "SOFTWARE\Tst\Settings" "Date" ${MYDATE}
It's possible to write the date only if the string is not present on the registry.
Thanks a lot
HM
Archive: About WriteRegStr
About WriteRegStr
Hi all,
I use this code to write the date on registry.
WriteRegStr HKLM "SOFTWARE\Tst\Settings" "Date" ${MYDATE}
!include LogicLib.nsh
ClearErrors
ReadREGStr $R0 HKLM "SOFTWARE\Tst\Settings" "Date"
${If} ${Errors}
WriteRegStr HKLM "SOFTWARE\Tst\Settings" "Date" ${MYDATE}
${Else}
${IfThen} $R0 != ${MYDATE} ${|} WriteRegStr HKLM "SOFTWARE\Tst\Settings" "Date" ${MYDATE} ${|}
${EndIf}
Thanks a lot.
Work perfectly.
Bye