Yathosho
22nd December 2008 16:39 UTC
push string to parent instance?
i'm using an nsis installer that calls another (nsis) installer as a child instance. however, the user can abort the child - i'd like it to send a string to the parent instance in the case the child was aborted. preferably, i don't want to use the registry or an ini-file in order to do so. any suggestions maybe?
Animaether
22nd December 2008 18:25 UTC
if you are using execwait to run the child installer, then get the result errorlevel. You can set the errorlevel in the child installer, it has 3 it uses by default.. just search for setErrorLevel and "Error Levels" in the help file
LoRd_MuldeR
23rd December 2008 01:49 UTC
Yes, I'd do it with the Exit Code too.
But if you really need to exchange a string between two installers, the easiest way would be using an INI file or the registry.