diff --git a/conemu.json b/conemu.json index b6e24d065d2db3..609c427ceab719 100644 --- a/conemu.json +++ b/conemu.json @@ -9,17 +9,18 @@ "ConEmu64.exe" ], "pre_install": [ - "$sample = \"$dir\\ConEmu\\ConEmu_Sample.xml\"", "$xml = \"$dir\\ConEmu\\ConEmu.xml\"", + "if(!(Test-Path \"$xml\")) {", " # Disable AutoUpdates", - "$cont = Get-Content $sample -Raw", - "$keys = @('Update.CheckOnStartup', 'Update.CheckHourly')", - "foreach($key in $keys) {", - " $find = \"\"", - " $replace = \"\"", - " $cont = $cont -replace $find, $replace", - "}", - "Set-Content $xml $cont -Encoding Ascii -Force" + " $cont = Get-Content \"$dir\\ConEmu\\ConEmu_Sample.xml\" -Raw", + " $keys = @('Update.CheckOnStartup', 'Update.CheckHourly')", + " foreach($key in $keys) {", + " $find = \"\"", + " $replace = \"\"", + " $cont = $cont -replace $find, $replace", + " }", + " Set-Content $xml $cont -Encoding Ascii -Force", + "}" ], "shortcuts": [ [