add disable repalce notepad
This commit is contained in:
parent
7d319d3e05
commit
48b986e416
@ -28,6 +28,9 @@ DefVar $OLD_RELEASE$
|
|||||||
Set $INST_SystemType$ = GetSystemType
|
Set $INST_SystemType$ = GetSystemType
|
||||||
set $INST_architecture$ = GetProductProperty("install_architecture","system specific")
|
set $INST_architecture$ = GetProductProperty("install_architecture","system specific")
|
||||||
|
|
||||||
|
DefVar $ReplaceNotepad$
|
||||||
|
Set $ReplaceNotepad$ = GetProductProperty("notepadpp_replace_notepad", "true")
|
||||||
|
|
||||||
Set $LogDir$ = "%SystemDrive%\tmp"
|
Set $LogDir$ = "%SystemDrive%\tmp"
|
||||||
|
|
||||||
; The token BUILDER_VARIABLES will be replaced by opsi-builder.sh
|
; The token BUILDER_VARIABLES will be replaced by opsi-builder.sh
|
||||||
@ -75,8 +78,10 @@ else
|
|||||||
ChangeDirectory "%SCRIPTPATH%"
|
ChangeDirectory "%SCRIPTPATH%"
|
||||||
Winbatch_install_32
|
Winbatch_install_32
|
||||||
Sub_check_exitcode
|
Sub_check_exitcode
|
||||||
|
if ($ReplaceNotepad$ = "true")
|
||||||
comment "Replace Notepad with npp"
|
comment "Replace Notepad with npp"
|
||||||
Dosbatch_replace_32
|
Dosbatch_replace_32
|
||||||
|
endif
|
||||||
comment "Copy files"
|
comment "Copy files"
|
||||||
Files_install_32 /32Bit
|
Files_install_32 /32Bit
|
||||||
comment "Patch Registry"
|
comment "Patch Registry"
|
||||||
@ -91,9 +96,11 @@ else
|
|||||||
ChangeDirectory "%SCRIPTPATH%"
|
ChangeDirectory "%SCRIPTPATH%"
|
||||||
Winbatch_install_64
|
Winbatch_install_64
|
||||||
Sub_check_exitcode
|
Sub_check_exitcode
|
||||||
|
if ($ReplaceNotepad$ = "true")
|
||||||
comment "Replace Notepad with npp"
|
comment "Replace Notepad with npp"
|
||||||
Dosbatch_replace_32
|
Dosbatch_replace_32
|
||||||
Dosbatch_replace_64
|
Dosbatch_replace_64
|
||||||
|
endif
|
||||||
comment "Copy files"
|
comment "Copy files"
|
||||||
Files_install_64 /64Bit
|
Files_install_64 /64Bit
|
||||||
comment "Patch Registry"
|
comment "Patch Registry"
|
||||||
|
@ -39,3 +39,11 @@ requiredProduct: kliu.vcopy
|
|||||||
requiredStatus: installed
|
requiredStatus: installed
|
||||||
requirementType: before
|
requirementType: before
|
||||||
|
|
||||||
|
[ProductProperty]
|
||||||
|
type: unicode
|
||||||
|
name: notepadpp_replace_notepad
|
||||||
|
multivalue: False
|
||||||
|
editable: False
|
||||||
|
description: Replace Notepad with Notepad++
|
||||||
|
values: ["false", "true"]
|
||||||
|
default: ["true"]
|
||||||
|
Loading…
Reference in New Issue
Block a user