MentorEmbedded/p2-installer — pull request #5 by nedtwigg (2014-10-22 11:15:40+00:00)
Title: instmon is now called with "-file" rather than "-tempfile".

At present, the "instmon" binaries provided in the `com.codesourcery.installer.win32.x86` and `x86_64` fragments don't work with the `-tempfile` argument. Looking at the sourcecode for `instmon`, I don't see why they wouldn't work, but it's easy to see that they don't.

Steps to reproduce (on Windows 8.1, 64-bit)
1) Run some instmon command from the commandline (works)
2) Put that command into a text file and run it as "instmon -file " (works)
3) Put that command into a text file and run it as "instmon -tempfile " (doesn't work)

As a result, all of the instmon-enabled goodness (namely shortcuts) were broken. The simple change below fixes it, at the cost of polluting the user's temp directory with small files.

I'm submitting this as a PR in case someone else is looking for a workaround. The "right answer" would probably be to fix the binaries.