Archive: Windows version header file


Windows version header file
I have created a header file that checks the windows version and gets the command line parameters. Info in the header file I have attached.

Enjoy. :cool:

attachment deleted, see latest below


You can't mix runtime and compile time like that. Your version macro won't work. All of the !define commands will always be executed, no matter what label you jump to.


Ok, I will fix it soon. I didn't realize it at the time of writing.


Ok, here it is, as promised. I have included an example script and it's exe.

attachment deleted, see latest below


Doh! The last one had errors as well. Here is the fixed file attached.

kichik: can you delete all previous attachments on this thread please.
ps: I just added an avatar. Do you like it?


I have finally got round to making a wiki page. This is the page where I will put my scripts and downloads. GetWinver.nsh is now General.nsh. If anyone asks why, I was bored. I decided to take all the example scripts in the scripting reference and put them in a header.