I was recently working with NullSoft Installer System (NSIS), and I came across a peculiar issue. I was using the below code to run an prerequisite installer.

ExecWait "msiexec /i runtime.msi" $0

However upon printing out the value of $0 immediately after the ExecWait command, it read 1619. Under successful conditions, it would return 0. I did some googling, and came across the following post.
In it, they explain that it is most likely a permissions or access issue. However in my case, the file didn’t exist due to a previous error in my install script.

This lead to misdirection and a great deal of frustration. This may seem obvious, but install scripts have a special way of getting your head turned around.

I am sharing this to prevent others from getting burned by the same ambiguous error code.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s