Skip to content

Commit

Permalink
Switch to official WinVer.nsh. Fixes #31.
Browse files Browse the repository at this point in the history
  • Loading branch information
Darrin C Roenfanz committed Nov 27, 2011
1 parent edd5292 commit ff7c1c0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
9 changes: 4 additions & 5 deletions PageHowLS.nsh
@@ -1,7 +1,7 @@
; How to install LS (for all users, or just for the current user) ; How to install LS (for all users, or just for the current user)
!ifndef PAGE_HOW_LS !ifndef PAGE_HOW_LS
!define PAGE_HOW_LS !define PAGE_HOW_LS
!include GetWindowsVersion.nsh !include WinVer.nsh


Page custom ioHowLS Page custom ioHowLS


Expand All @@ -10,10 +10,9 @@


; This option should not be visible on 9x based systems ; This option should not be visible on 9x based systems
; Check weather we're installing on a 9x or NT based system ; Check weather we're installing on a 9x or NT based system
Call GetWindowsVersion ${IfNot} ${IsNT}
Pop $R0 Abort

${EndIf}
StrCmp $R0 "9x" end


;If we get to this point we're not installing on a 9x based machine ;If we get to this point we're not installing on a 9x based machine
!insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE_HOWLS)" "$(TEXT_IO_HOWLS)" !insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE_HOWLS)" "$(TEXT_IO_HOWLS)"
Expand Down
7 changes: 2 additions & 5 deletions SectionCore.nsh
Expand Up @@ -6,7 +6,7 @@
!include BackupPersonal.nsh !include BackupPersonal.nsh
!include Shell9x.nsh !include Shell9x.nsh
!include ShellNT.nsh !include ShellNT.nsh
!include GetWindowsVersion.nsh !include WinVer.nsh
!include SectionsInclude.nsh !include SectionsInclude.nsh
!include EnumLoginUsers.nsh !include EnumLoginUsers.nsh


Expand Down Expand Up @@ -193,10 +193,7 @@
ReadINIStr $R0 "$PLUGINSDIR\ioHowLS.ini" "Field 4" "State" ;Field 4 is Don't set shell ReadINIStr $R0 "$PLUGINSDIR\ioHowLS.ini" "Field 4" "State" ;Field 4 is Don't set shell
${If} $R0 != 1 ${If} $R0 != 1
; Check whether we're installing on a 9x or NT based system ; Check whether we're installing on a 9x or NT based system
Call GetWindowsVersion ${IfNot} ${IsNT}
Pop $R0

${If} $R0 == "9x"
Call setShell9x Call setShell9x
${Else} ${Else}
Call setShellNT Call setShellNT
Expand Down
7 changes: 2 additions & 5 deletions Uninstaller.nsh
@@ -1,7 +1,7 @@
!ifndef WRITE_UNINSTALLER !ifndef WRITE_UNINSTALLER
!define WRITE_UNINSTALLER !define WRITE_UNINSTALLER
!include uninstShell9x.nsh !include uninstShell9x.nsh
!include GetWindowsVersion.nsh !include WinVer.nsh
!include unStartExplorer.nsh !include unStartExplorer.nsh
!include IndexOf.nsh !include IndexOf.nsh


Expand All @@ -25,10 +25,7 @@
SectionEnd SectionEnd


Section Uninstall Section Uninstall
Call un.GetWindowsVersion ${IfNot} ${IsNT}
Pop $R0

${If} $R0 == "9x"
Call un.Shell9x Call un.Shell9x
${Else} ${Else}
;; Restore all the original values ;; ;; Restore all the original values ;;
Expand Down

0 comments on commit ff7c1c0

Please sign in to comment.