Announcement

Collapse
No announcement yet.

Windows 10 Detection

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Windows 10 Detection

    I am getting an error here and I am not too sure why as my other OS logics are identical and it seems to work.

    PHP Code:
    ${If} ${IsWin10}
       
    MessageBox MB_OK|MB_ICONEXCLAMATION "You are using an elite version of Windows 10 bro" IDOK
    ${EndIf} 
    Received error:
    code:
    !insertmacro: macro "_If" requires 4 parameter(s), passed 2!
    As this works:

    PHP Code:
    ${If} ${IsWin8}
    ${
    OrIf} ${IsWin8.1}
      
    MessageBox MB_YESNO|MB_ICONEXCLAMATION|MB_TOPMOST|MB_DEFBUTTON2 \
      
    "This Foobar, Inc software package is being tested on, but is not fully supported on Windows 8.$\r$\n$\r$\nFoobar Inc. cannot \
      provide technical support for this installation.$\r$\n$\r$\nDo you still want to continue with the installation?" 
    \
      
    IDYES further IDNO done
    ${EndIf} 

  • #2
    NSIS version?
    IntOp $PostCount $PostCount + 1

    Comment


    • #3
      Originally Posted by Anders View Post
      NSIS version?
      3.0b1

      Comment


      • #4
        Originally Posted by jweinraub View Post
        3.0b1
        Windows 10 RTM was after b1, update to b2...

        If you for some reason want to stick with b1 you can manually set ManifestSupportedOS with the Win10 GUID and update WinVer.nsh from the NSIS source code, or use a plugin to detect the version. There is some more information in the other Win10 threads here on the forum...
        IntOp $PostCount $PostCount + 1

        Comment


        • #5
          Oh didn't realise that mate thanks it actually compiles now! I was going mad thinking there was an issue with my code.

          Comment

          Working...
          X