i'm facing a problem.
i have a nsis plugin i made, each time i use the function from this plugin, installer crash when installer exit from this plugin function.
i have a section for license check:
Section -licensemacro is :
push $R1
!insertmacro LICENSECHECK SIMU
pop $R1
MessageBox MB_ICONSTOP|MB_OK "license return $R1"
SectionEnd
!macro LICENSECHECK _TYPEDo you have any clue how can i find what is the problem ?
; set install for all users
SetShellVarContext all
SetOverwrite try
push $R1
;install VC (9) 2008 MSVCRT dll
!insertmacro ALL_INSTALLVCREDIST
pop $R1
SetOutPath $TEMP
File "${SRC_COMMON_DIR}\Bin\<dependencies>1.dll"
...
File "${SRC_COMMON_DIR}\Bin\<dependencies>N.dll"
SetOutPath "$TEMP\Data\Lang"
File /r "${SRC_COMMON_DIR}\Data\Lang\*"
SetOutPath $TEMP
; backup current R2 value
push $R2
; push on the stask, product code id (this is poped in the plugin)
push ${PRODUCT_SHORT_VERSION}
push ${${_TYPE}_LICENSE_ID}
push ${STRING_VALIDATOR}
LicenseValidatorPlugin::validateLicense
; get license result
pop $R2
--> this message box is not display and installer crash
MessageBox MB_ICONSTOP|MB_OK "license return "
; if module cannot be loaded return 1
StrCmp $R2 ${STRING_VALIDATOR} 0 lbl_LICENSECHECK_endFct
StrCpy $R2 1
lbl_LICENSECHECK_endFct:
; delete
Delete "$TEMP\<dependencies>N.dll"
RMDIR /r "$TEMP\Data\Lang"
;restore
Exch $R2
!macroend
I have displayed a messagebox at the end of my plugin function and it's displayed, but not the nsis messagebox after the plugin function, installer crash instead.
Thank you for your help.
Guillaume