Skip to content

Commit

Permalink
Fixing but in Windows version recognition, adding proper handling of …
Browse files Browse the repository at this point in the history
…spaces in the TEMP path
  • Loading branch information
Tomasz Wolniewicz committed Oct 13, 2019
1 parent 95e5a7d commit 76f94e8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions devices/ms/Files/common.inc
Original file line number Diff line number Diff line change
Expand Up @@ -545,13 +545,13 @@ Function wVersionCheck
Pop $WindowsName
Pop $WindowsVer
${WinVerGetBuild} $WindowsBuild
!insertmacro debug_cat 3 "Detected $WindowsName:$WindowsVer"
!insertmacro debug_cat 3 "Detected $WindowsName:$WindowsVer:$WindowsBuild"
Push 1
Pop $NoFCupdate
${If} ${AtLeastWin10}
!if "${NSIS_PACKEDVERSION}" > 0x3003000
${If} ${AtMostWaaS} "Fall Creators Update"
Push 1
${If} ${AtLeastWaaS} "Fall Creators Update"
Push 0
Pop $NoFCupdate
${EndIf}
!endif
Expand Down Expand Up @@ -868,7 +868,7 @@ Function CreateLanProfile
!insertmacro debug_cat 3 "execute: $Netsh lan add profile $TEMP\lan_prof.xml"
nsArray::Set Commands "netsh lan add profile $TEMP\lan_prof.xml"
nsArray::Set Commands "del $TEMP\lan_prof.xml"
nsExec::Exec '"$Netsh" lan add profile $TEMP\lan_prof.xml'
nsExec::Exec '"$Netsh" lan add profile "$TEMP\lan_prof.xml"'
Pop $0
!insertmacro debug_cat 4 "netsh returned $0"
!insertmacro debug_cat 1 "Wired profile created"
Expand Down Expand Up @@ -937,7 +937,7 @@ Function InstallProfile
!insertmacro debug_cat 3 "Execute: $Netsh wlan add profile $TEMP\wlan_prof-$R0.xml"
nsArray::Set Commands "netsh wlan add profile $TEMP\wlan_prof-$R0.xml"
nsArray::Set Commands "del $TEMP\wlan_prof-$R0.xml"
nsExec::Exec '"$Netsh" wlan add profile $TEMP\wlan_prof-$R0.xml'
nsExec::Exec '"$Netsh" wlan add profile "$TEMP\wlan_prof-$R0.xml"'
Pop $0
!insertmacro debug_cat 4 "netsh returned $0"
${If} $0 <> 0
Expand Down Expand Up @@ -1100,8 +1100,8 @@ Function InstallWirelessCred
!ifdef PEAP
Call writePeapUserProfle
!endif
!insertmacro debug_cat 3 "Execute: $TEMP\WLANSetEAPUserData$Platform.exe $\"$R1$\" 0 $TEMP\user_cred.xml"
nsExec::Exec "$TEMP\WLANSetEAPUserData$Platform.exe $\"$R1$\" 0 $TEMP\user_cred.xml"
!insertmacro debug_cat 3 'Execute: "$TEMP\WLANSetEAPUserData$Platform.exe" "$R1" 0 "$TEMP\user_cred.xml"'
nsExec::Exec '"$TEMP\WLANSetEAPUserData$Platform.exe" "$R1" 0 "$TEMP\user_cred.xml"'
Pop $0
${If} $Debug_cat == 0
Delete "$TEMP\user_cred.xml"
Expand Down

0 comments on commit 76f94e8

Please sign in to comment.