NSIS - deactivation during uninstallation

I've tried to add license deactivation during uninstallation, but nothing happend. I am using code from example (https://wyday.com/limelm/help/using-turboactivate-with-nsis/) and NSIS from this page https://sourceforge.net/projects/nsis/I've added message box to check for value in $2. It says: "Result = error". Is something wrong with the code?

Section "Uninstall"

; Set the output path to the installation directory so we can call TurboActivateSetOutPath $INSTDIR; check if activatedSystem::Call "TurboActivate::IsActivated(w'xxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxx') i.r2 ? cu"

; deactivate if activated MessageBox MB_OK "Result = $2" ${If} $2 == 0 System::Call "TurboActivate::Deactivate(i1) i.r2 ? cu" ${EndIf}

SetOutPath $EXEDIR

SectionEnd

If the activation has already been deactivated then it won't try it again -- IsActivated() will return non-zero if the customer is not activated. We don't have a problem with out script.