WriteUninstaller doesn't ever return error
Hi all,
I noticed that the WriteUninstaller is always returning success even if it fails.
Let's consider the following code uninstaller-generator.nsi (everything we have in the installer part is to just generate the uninstaller):
Section -Post
WriteUninstaller "$EXEDIR\uninst.exe"
SectionEnd
Samples of failures:
a) When running the exe generated when building the uninstaller-generator.nsi above, if I already have an uninst.exe in the $EXEDIR which is read-only, the WriteUninstaller fails, but still it returns success
b) If I change the code to:
Section -Post
WriteUninstaller "K:\uninst.exe"
SectionEnd
and K: doesn't exist on my system the WriteUninstaller fails, but actually again it returns success.
Is this is a bug? I mean for this kind of installer, I'll never be able to check if there was an error when running it right?
Thx,
Viv