add disable repalce notepad

This commit is contained in:
Mario Fetka 2014-04-10 01:38:37 +02:00
parent 7d319d3e05
commit 48b986e416
2 changed files with 20 additions and 5 deletions

View File

@ -28,6 +28,9 @@ DefVar $OLD_RELEASE$
Set $INST_SystemType$ = GetSystemType
set $INST_architecture$ = GetProductProperty("install_architecture","system specific")
DefVar $ReplaceNotepad$
Set $ReplaceNotepad$ = GetProductProperty("notepadpp_replace_notepad", "true")
Set $LogDir$ = "%SystemDrive%\tmp"
; The token BUILDER_VARIABLES will be replaced by opsi-builder.sh
@ -75,8 +78,10 @@ else
ChangeDirectory "%SCRIPTPATH%"
Winbatch_install_32
Sub_check_exitcode
comment "Replace Notepad with npp"
Dosbatch_replace_32
if ($ReplaceNotepad$ = "true")
comment "Replace Notepad with npp"
Dosbatch_replace_32
endif
comment "Copy files"
Files_install_32 /32Bit
comment "Patch Registry"
@ -91,9 +96,11 @@ else
ChangeDirectory "%SCRIPTPATH%"
Winbatch_install_64
Sub_check_exitcode
comment "Replace Notepad with npp"
Dosbatch_replace_32
Dosbatch_replace_64
if ($ReplaceNotepad$ = "true")
comment "Replace Notepad with npp"
Dosbatch_replace_32
Dosbatch_replace_64
endif
comment "Copy files"
Files_install_64 /64Bit
comment "Patch Registry"

View File

@ -39,3 +39,11 @@ requiredProduct: kliu.vcopy
requiredStatus: installed
requirementType: before
[ProductProperty]
type: unicode
name: notepadpp_replace_notepad
multivalue: False
editable: False
description: Replace Notepad with Notepad++
values: ["false", "true"]
default: ["true"]