|
|
|
|
#1 |
|
Senior Member
|
Windows 8.1 being detected as 8.0
Sorry for posting this the other day and deleting it. My enduser told me about this issue and now I am seeing it happening for him and thought it was something else.
Anyway, I got this if statement that its supposed to do something if it is XP or Windows 8.0 to do one thing and if it is Windows Vista, 7, or 8.1 to do something else. If I run this code on a Windows 8.1 machine, it will do the XP part of the if instead. Any ideas as to why? PHP Code:
|
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Feb 2007
Location: Rijeka, Croatia
Posts: 225
|
PostEnd: |
|
|
|
|
|
#3 |
|
Senior Member
|
These seem relevant for NSIS v2. I am using 3.0b1.
|
|
|
|
|
|
#4 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
Do you have RequestExecutionLevel in your script? Or add "ManifestSupportedOS Win7 Win8 Win8.1 {8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#5 |
|
Senior Member
|
No. How do I those options? Like where in the code does it go?
|
|
|
|
|
|
#6 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
You should always use RequestExecutionLevel in your scripts, just put it near the top along with OutFile etc
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#7 |
|
Senior Member
|
Something like:
PHP Code:
PHP Code:
|
|
|
|
|
|
#8 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
sysnative only exists when a 32-bit program runs on a 64-bit version of Windows. Use x64.nsh to detect and fall back to $sysdir.
The default makensis verbosity has changed in v3.0. IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#9 |
|
Senior Member
|
Thank you. that did the trick. any idea how i can change the verbosity? if i use makensisw from the program files folder it seems to show me more info.
|
|
|
|
|
|
#10 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
Makensisw starts makensis with /v4. If you cannot change the commandline in your IDE you can use "!verbose 4" in your script.
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#11 |
|
Senior Member
Join Date: Oct 2007
Location: Shanghai, China
Posts: 207
|
code: Contact me: 137729898@qq.com |
|
|
|
|
|
#12 |
|
Forum King
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
|
|
|
|
|
|
|
#13 | |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
Quote:
It's Firefox all over again; version numbers don't matter to "normal" people so let's bump our number fast so we catch up with the competition (OSX 10.*, Chrome 3?.*). IntOp $PostCount $PostCount + 1 |
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|