I've written an installer for windows using NSIS. If the program is run from a console i want to write some information to this console.
My code looks like the one in this question...
NSIS - printing to prompt during command line install
System::Call 'kernel32::GetStdHandle(i -11)i.r0'
System::Call 'kernel32::AttachConsole(i -1)i.r1'
FileWrite $0 "hello"
There is no problem with the installer. But if i run the uninstaller there is no output and $1 == 0.
Is there a difference between installer and uninstaller for this case?