Installer aufgefrischt

git-svn-id: https://svn.neo-layout.org@2392 b9310e46-f624-0410-8ea1-cfbb3a30dc96
This commit is contained in:
florian 2011-05-18 20:40:34 +00:00
parent f4963b2d7d
commit 65aa6dc303
2 changed files with 29 additions and 12 deletions

View file

@ -35,7 +35,7 @@
;Name und Name der Datei ;Name und Name der Datei
!define /date ZEIT "%y%m%d.%H" !define /date ZEIT "%y%m%d.%H"
Name "Neo2.0 - Das ergonomische Tastaturlayout" Name "Neo 2.0 - Das ergonomische Tastaturlayout"
OutFile "Neo2.0_setup.exe" OutFile "Neo2.0_setup.exe"
;Standardordner (für AHK) ;Standardordner (für AHK)
@ -68,7 +68,7 @@
!define MUI_WELCOMEPAGE_TITLE_3LINES ;3 Zeilen für den Titel !define MUI_WELCOMEPAGE_TITLE_3LINES ;3 Zeilen für den Titel
!insertmacro MUI_PAGE_WELCOME !insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "lizenz.txt" ;!insertmacro MUI_PAGE_LICENSE "lizenz.txt"
!define MUI_PAGE_CUSTOMFUNCTION_PRE preComp !define MUI_PAGE_CUSTOMFUNCTION_PRE preComp
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE leaveComp !define MUI_PAGE_CUSTOMFUNCTION_LEAVE leaveComp
@ -120,8 +120,16 @@
WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Custom Language Name" "German (Germany)" WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Custom Language Name" "German (Germany)"
WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Custom Language Display Name" "@%SystemRoot%\system32\kbdneo2.dll,-1100" WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Custom Language Display Name" "@%SystemRoot%\system32\kbdneo2.dll,-1100"
SetRegView 32 SetRegView 32
WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Layout Text" "Deutsch (Neo 2.0 ergonomisch)"
WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Layout File" "kbdneo2.dll"
WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Layout Id" "00c0"
WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Layout Display Name" "@%SystemRoot%\system32\kbdneo2.dll,-1000"
WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Custom Language Name" "German (Germany)"
WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Custom Language Display Name" "@%SystemRoot%\system32\kbdneo2.dll,-1100"
${DisableX64FSRedirection} ${DisableX64FSRedirection}
file kbdneo2\Treiber\64bit_Windows\kbdneo2.dll file kbdneo2\Treiber\64bit_Windows\System32\kbdneo2.dll
${EnableX64FSRedirection}
file kbdneo2\Treiber\64bit_Windows\SysWOW64\kbdneo2.dll
${Else} ${Else}
SetRegView 32 SetRegView 32
WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Layout Text" "Deutsch (Neo 2.0 ergonomisch)" WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Layout Text" "Deutsch (Neo 2.0 ergonomisch)"
@ -134,7 +142,7 @@
file kbdneo2\Treiber\32bit_Windows\kbdneo2.dll file kbdneo2\Treiber\32bit_Windows\kbdneo2.dll
${EndIf} ${EndIf}
!insertmacro UAC_AsUser_Call Function makeKBDactive ${UAC_SYNCREGISTERS} ;!insertmacro UAC_AsUser_Call Function makeKBDactive ${UAC_SYNCREGISTERS}
SectionEnd SectionEnd
@ -151,7 +159,7 @@
SetOutPath "$SYSDIR" SetOutPath "$SYSDIR"
${If} ${RunningX64} ${If} ${RunningX64}
SetRegView 64 SetRegView 64
WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Layout Text" "Deutsch (Neo 2.0 ergonomisch)" WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Layout Text" "Deutsch (Neo 2.0 ergonomisch)"
WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Layout File" "kbdneo2.dll" WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Layout File" "kbdneo2.dll"
WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Layout Id" "00c0" WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Layout Id" "00c0"
@ -159,8 +167,16 @@
WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Custom Language Name" "German (Germany)" WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Custom Language Name" "German (Germany)"
WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Custom Language Display Name" "@%SystemRoot%\system32\kbdneo2.dll,-1100" WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Custom Language Display Name" "@%SystemRoot%\system32\kbdneo2.dll,-1100"
SetRegView 32 SetRegView 32
WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Layout Text" "Deutsch (Neo 2.0 ergonomisch)"
WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Layout File" "kbdneo2.dll"
WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Layout Id" "00c0"
WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Layout Display Name" "@%SystemRoot%\system32\kbdneo2.dll,-1000"
WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Custom Language Name" "German (Germany)"
WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Custom Language Display Name" "@%SystemRoot%\system32\kbdneo2.dll,-1100"
${DisableX64FSRedirection} ${DisableX64FSRedirection}
file kbdneo2\Treiber\64bit_Windows\kbdneo2.dll file kbdneo2\Treiber\64bit_Windows\System32\kbdneo2.dll
${EnableX64FSRedirection}
file kbdneo2\Treiber\64bit_Windows\SysWOW64\kbdneo2.dll
${Else} ${Else}
SetRegView 32 SetRegView 32
WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Layout Text" "Deutsch (Neo 2.0 ergonomisch)" WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Layout Text" "Deutsch (Neo 2.0 ergonomisch)"
@ -171,9 +187,10 @@
WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Custom Language Display Name" "@%SystemRoot%\system32\kbdneo2.dll,-1100" WriteRegStr HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\b0000407" "Custom Language Display Name" "@%SystemRoot%\system32\kbdneo2.dll,-1100"
${EnableX64FSRedirection} ${EnableX64FSRedirection}
file kbdneo2\Treiber\32bit_Windows\kbdneo2.dll file kbdneo2\Treiber\32bit_Windows\kbdneo2.dll
${EndIf} ${EndIf}
; !insertmacro UAC_AsUser_Call Function makeKBDactive ${UAC_SYNCREGISTERS} ;!insertmacro UAC_AsUser_Call Function makeKBDactive ${UAC_SYNCREGISTERS}
SectionEnd SectionEnd
@ -241,11 +258,11 @@
pop $R0 pop $R0
strCmp $R0 "Admin" +5 ;falls Admin hüpf 5 Commandozeilen weiter strCmp $R0 "Admin" +5 ;falls Admin hüpf 5 Commandozeilen weiter
;wenn kein Admin wird das hier angezeigt: ;wenn kein Admin wird das hier angezeigt:
messageBox MB_OK "Wir sind kein Admin, sondern $R0" messageBox MB_OK "$R0, Optionen mit Admin-Rechten werden deaktiviert."
SectionSetFlags ${installiereKbdneoPlusAHK} ${SF_RO} ;Installationsarten mit Adminrechten werden gesperrt SectionSetFlags ${installiereKbdneoPlusAHK} ${SF_RO} ;Installationsarten mit Adminrechten werden gesperrt
SectionSetFlags ${installiereKbdneoOhneAHK} ${SF_RO} ;Installationsarten mit Adminrechten werden gesperrt SectionSetFlags ${installiereKbdneoOhneAHK} ${SF_RO} ;Installationsarten mit Adminrechten werden gesperrt
return return
messageBox MB_OK "Wir sind Admin" ;messageBox MB_OK "Wir sind Admin"
FunctionEnd FunctionEnd
@ -273,9 +290,9 @@
;Layout beim User Aktivieren (hoffentlich ;) ;Layout beim User Aktivieren (hoffentlich ;)
Function makeKBDactive ; Function makeKBDactive
System::Call "user32::LoadKeyboardLayout(t "b0000407",${KLF_ACTIVATE})" ; System::Call "user32::LoadKeyboardLayout(t "b0000407",${KLF_ACTIVATE})"
FunctionEnd ; FunctionEnd
;Datei beim User schreiben, obwohl als Admin eingeloggt ;Datei beim User schreiben, obwohl als Admin eingeloggt

Binary file not shown.