Embed file version info in the resource file so that right-clicking the
executable shows the application version.
Unfortunately the version field must be formatted in a particular way so
we can't reuse the NSSM_VERSION #define from nssm.h but instead must
create a new #define and remember to update it when making a release.
Thanks fREW Schmidt.
\r
#define NSSM "nssm"\r
#define NSSM_VERSION "2.16"\r
+#define NSSM_VERSIONINFO 2,16,0,0\r
#define NSSM_DATE "2012-12-01"\r
\r
/*\r
// Microsoft Visual C++ generated resource script.\r
//\r
+#include "nssm.h"\r
#include "resource.h"\r
\r
#define APSTUDIO_READONLY_SYMBOLS\r
END\r
#endif // APSTUDIO_INVOKED\r
\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// Version\r
+//\r
+\r
+VS_VERSION_INFO VERSIONINFO\r
+ FILEVERSION NSSM_VERSIONINFO\r
+ PRODUCTVERSION NSSM_VERSIONINFO\r
+ FILEFLAGSMASK 0x17L\r
+#ifdef _DEBUG\r
+ FILEFLAGS 0x1L\r
+#else\r
+ FILEFLAGS 0x0L\r
+#endif\r
+ FILEOS 0x4L\r
+ FILETYPE 0x1L\r
+ FILESUBTYPE 0x0L\r
+BEGIN\r
+ BLOCK "StringFileInfo"\r
+ BEGIN\r
+ END\r
+ BLOCK "VarFileInfo"\r
+ BEGIN\r
+ END\r
+END\r
+\r
#endif // English (U.K.) resources\r
/////////////////////////////////////////////////////////////////////////////\r
\r