Getting the msiexec return code
Hello everyone!
I have built an installer(using NSIS) which has couple of MSIs embedded inside it. I execute these constituent MSIs by invoking "msiexec" thru ExecWait.
(For example --> ExecWait 'msiexec.exe /qn /i embedded.msi TARGETDIR="$INSTDIR"' $0)
Can anyone tell me a way to get the error code for the above msiexec call in my nsi script?
Neither the System::Call "Kernel32::GetLastError() nor the ExecWait return value seems to do the trick!!!
Any help will be appreciated!
Thanks,
SB