mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 07:44:24 +02:00
parent
b3110cdccf
commit
4972dcf4b3
@ -283,6 +283,11 @@ FunctionEnd
|
||||
|
||||
|
||||
Section -"Notepad++" mainSection
|
||||
${If} $showDetailsChecked == ${BST_CHECKED}
|
||||
SetDetailsView show
|
||||
SetAutoClose false
|
||||
${endIf}
|
||||
|
||||
${If} $diffArchDir2Remove != ""
|
||||
!insertmacro uninstallRegKey
|
||||
!insertmacro uninstallDir $diffArchDir2Remove
|
||||
|
@ -72,9 +72,11 @@ FunctionEnd
|
||||
Var Dialog
|
||||
Var NoUserDataCheckboxHandle
|
||||
Var ShortcutCheckboxHandle
|
||||
Var ShowDetailsCheckboxHandle
|
||||
Var WinVer
|
||||
Var noUserDataChecked
|
||||
Var createShortcutChecked
|
||||
Var showDetailsChecked
|
||||
|
||||
; The definition of "OnChange" event for checkbox
|
||||
Function OnChange_NoUserDataCheckBox
|
||||
@ -85,6 +87,10 @@ Function OnChange_ShortcutCheckBox
|
||||
${NSD_GetState} $ShortcutCheckboxHandle $createShortcutChecked
|
||||
FunctionEnd
|
||||
|
||||
Function OnChange_ShowDetailsCheckbox
|
||||
${NSD_GetState} $ShowDetailsCheckboxHandle $showDetailsChecked
|
||||
FunctionEnd
|
||||
|
||||
Function ExtraOptions
|
||||
nsDialogs::Create 1018
|
||||
Pop $Dialog
|
||||
@ -98,8 +104,8 @@ Function ExtraOptions
|
||||
StrCmp $WinVer "8" 0 +2
|
||||
${NSD_Check} $ShortcutCheckboxHandle
|
||||
${NSD_OnClick} $ShortcutCheckboxHandle OnChange_ShortcutCheckBox
|
||||
|
||||
${NSD_CreateCheckbox} 0 120 100% 30u "Don't use %APPDATA%$\nEnable this option to make Notepad++ load/write the configuration files from/to its install directory. Check it if you use Notepad++ in a USB device."
|
||||
|
||||
${NSD_CreateCheckbox} 0 80 100% 30u "Don't use %APPDATA%$\nEnable this option to make Notepad++ load/write the configuration files from/to its install directory. Check it if you use Notepad++ in a USB device."
|
||||
Pop $NoUserDataCheckboxHandle
|
||||
IfFileExists $INSTDIR\doLocalConf.xml doLocalConfExists doLocalConfDoesNotExists
|
||||
doLocalConfExists:
|
||||
@ -108,7 +114,11 @@ Function ExtraOptions
|
||||
StrCpy $noUserDataChecked ${BST_CHECKED}
|
||||
doLocalConfDoesNotExists:
|
||||
${NSD_OnClick} $NoUserDataCheckboxHandle OnChange_NoUserDataCheckBox
|
||||
|
||||
|
||||
${NSD_CreateCheckbox} 0 160 100% 30u "Show installation details"
|
||||
Pop $ShowDetailsCheckboxHandle
|
||||
${NSD_OnClick} $ShowDetailsCheckboxHandle OnChange_ShowDetailsCheckbox
|
||||
|
||||
StrLen $0 $PROGRAMFILES
|
||||
StrCpy $1 $InstDir $0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user