Skip to content

Commit

Permalink
- Include Windows 8 to installer to copy stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
caschulz88 committed Oct 22, 2014
1 parent ebebb71 commit 585d7e1
Showing 1 changed file with 17 additions and 23 deletions.
40 changes: 17 additions & 23 deletions dokan_install/install.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -280,17 +280,15 @@ FunctionEnd

Section "Dokan Library x86" section_x86
${GetWindowsVersion} $R0
/*
${If} $R0 == '2012R2'
!insertmacro X86Files "win8"
!insertmacro X86Files "win7"
${ElseIf} $R0 == '8.1'
!insertmacro X86Files "win8"
!insertmacro X86Files "win7"
${ElseIf} $R0 == '2012'
!insertmacro X86Files "win8"
!insertmacro X86Files "win7"
${ElseIf} $R0 == '8'
!insertmacro X86Files "win8"
*/
${If} $R0 == '7'
!insertmacro X86Files "win7"
${ElseIf} $R0 == '7'
!insertmacro X86Files "win7"
${ElseIf} $R0 == '2008R2'
!insertmacro X86Files "win7"
Expand All @@ -307,17 +305,15 @@ SectionEnd

Section "Dokan Driver x86" section_x86_driver
${GetWindowsVersion} $R0
/*
${If} $R0 == '2012R2'
!insertmacro X86Driver "win8"
!insertmacro X86Driver "win7"
${ElseIf} $R0 == '8.1'
!insertmacro X86Driver "win8"
!insertmacro X86Driver "win7"
${ElseIf} $R0 == '2012'
!insertmacro X86Driver "win8"
!insertmacro X86Driver "win7"
${ElseIf} $R0 == '8'
!insertmacro X86Driver "win8"
*/
${If} $R0 == '7'
!insertmacro X86Driver "win7"
${ElseIf} $R0 == '7'
!insertmacro X86Driver "win7"
${ElseIf} $R0 == '2008R2'
!insertmacro X86Driver "win7"
Expand All @@ -335,17 +331,15 @@ SectionEnd

Section "Dokan Driver x64" section_x64_driver
${GetWindowsVersion} $R0
/*
${If} $R0 == '2012R2'
!insertmacro X64Driver "win8"
!insertmacro X64Driver "win7"
${ElseIf} $R0 == '8.1'
!insertmacro X64Driver "win8"
!insertmacro X64Driver "win7"
${ElseIf} $R0 == '2012'
!insertmacro X64Driver "win8"
!insertmacro X64Driver "win7"
${ElseIf} $R0 == '8'
!insertmacro X64Driver "win8"
*/
${If} $R0 == '7'
!insertmacro X64Driver "win7"
${ElseIf} $R0 == '7'
!insertmacro X64Driver "win7"
${ElseIf} $R0 == '2008R2'
!insertmacro X64Driver "win7"
Expand Down Expand Up @@ -453,14 +447,14 @@ Function .onInit
IfFileExists $SYSDIR\drivers\dokan.sys HasPreviousVersionX64 NoPreviousVersionX64
; To make EnableX64FSRedirection called in both cases, needs duplicated MessageBox code. How can I avoid this?
HasPreviousVersionX64:
MessageBox MB_OK "Please unstall the previous version and restart your computer before running this installer."
MessageBox MB_OK "Please uninstall the previous version and restart your computer before running this installer."
Abort
NoPreviousVersionX64:
${EnableX64FSRedirection}
${Else}
IfFileExists $SYSDIR\drivers\dokan.sys HasPreviousVersion NoPreviousVersion
HasPreviousVersion:
MessageBox MB_OK "Please unstall the previous version and restart your computer before running this installer."
MessageBox MB_OK "Please uninstall the previous version and restart your computer before running this installer."
Abort
NoPreviousVersion:
${EndIf}
Expand Down

0 comments on commit 585d7e1

Please sign in to comment.