Creating a Data Struct
I trying to convert an old InstallShield installer over to NSIS and I'm running into a problem creating the copydatastruct using the system plugin.
Here is the original InstallShield portion:
typedef COPYDATASTRUCTNow here is what I've done with NSIS (thats obviously not working):
begin
NUMBER dwData;
NUMBER cbData;
NUMBER lpData;
end;
copyData.dwData = _FORCECLOSE;
copyData.cbData = 0;
copyData.lpData = 0;
SendMessage( hWnd, WM_COPYDATA, NULL, ©Data );
System::Call "*(t, i, i)i.s"Obviously I am doing something wrong, however, I'm sure not seeing it. Any ideas? Thanks guys!
Pop $0
System::Call "*$0(t '_FORCECLOSE', i 0, i 0)"
FindWindow $1 "TMPV_Frm_Main" ""
SendMessage $1 ${WM_COPYDATA} 0 $0