开发者

System::Call to external .dll during NSIS uninstall

开发者 https://www.devze.com 2023-01-20 12:02 出处:网络
During the installation of my application I install a library used to expor开发者_如何学Ct various functions to $INSTDIR. During uninstallation I want to call a function in this library to perform a t

During the installation of my application I install a library used to expor开发者_如何学Ct various functions to $INSTDIR. During uninstallation I want to call a function in this library to perform a task and return. Based on what I've tried so far it seems that the call to the function fails and I always get back 'error' as $0.

This is what I'm running in my uninstallation script:

  SetPluginUnload  alwaysoff
  SetOutPath $INSTDIR
  System::Call "myutils::uninstalling() i.r0"
  DetailPrint 'RETURN CODE: "$0"'
  SetPluginUnload manual

The few examples I've found copied the .dll to a temp directory and then ran System:Call but the library is already in $INSTDIR. Thoughts?


Wasn't an issue with the NSIS code, the function needed to be exported in the .def file so NSIS could resolve it sans decoration.

0

精彩评论

暂无评论...
验证码 换一张
取 消