Add Custom not working?
Hi, I am making an enhancement to our installer to change the horrible "MCI-Command Handling Window" holding open an activex control to be a more sensible message but I can't get the AddCustom work.
I have tried using the example LockedListCustom.nsi and this builds but when I say 'Yes' to the question is myapp running it never show sin the lockedlist window. I get the same behaviour in my own installer.
Details:
lockedlist V2.0
OS: XP SP3
NSIS: 2.46
Function Isocxlocked
LockedList::IsFileLocked $INSTDIR\axagp.ocx
Pop $R1
${If} $R1 == true
MessageBox MB_OK|MB_ICONINFORMATION `$INSTDIR\axagp.ocx IS locked!!??`
${Else}
MessageBox MB_OK|MB_ICONINFORMATION `$INSTDIR\axagp.ocx is not locked.`
${EndIf}
Push true
FunctionEnd
Function MyAppCallback
Pop $R0
; Message box instead of actual logical test...
${If} ${Cmd} `MessageBox MB_YESNO|MB_ICONQUESTION 'Is $R0 running?' IDYES`
Push true
${Else}
Push false
${EndIf}
FunctionEnd
Function LockedListShow
!insertmacro MUI_HEADER_TEXT `List of open Browsers with myapp in Use` ``
GetFunctionAddress $R1 Isocxlocked
LockedList::AddCustom /icon $INSTDIR\antixgpb.exe 'Internet Explorer' iexplore.exe $R1
GetFunctionAddress $R0 MyAppCallback
LockedList::AddCustom /icon $PLUGINSDIR\myapp.ico `My App v1.0` myapp.exe $R0
LockedList:😁ialog /searching "Searching for Browsers in use" /noprograms "No Browsers have Game Player in use" /autoclose
FunctionEnd
I have this running twice in the code above, once detecting if the file is in use (and currently forcing a true return) and once is extracted straight from the demo app.
Any help with how to get this working appreciated.
Thanks
Mark Jones