Skip to content
⌘ NSIS Forum Archive

Windows version header file

6 posts

JasonFriday13#

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. 😎

attachment deleted, see latest below
kichik#
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.
JasonFriday13#
Ok, here it is, as promised. I have included an example script and it's exe.

attachment deleted, see latest below
JasonFriday13#edited
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?
JasonFriday13#
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.