From ec006bddd1c3b50ccce18e086e34fad982b747f1 Mon Sep 17 00:00:00 2001 From: Kentaro Hayashi Date: Wed, 13 Sep 2023 10:53:21 +0900 Subject: [PATCH] msi: support path which contains space When installing fluent-package to c:\Program Files, it must be escaped correctly. ^" is treated as ^", so it intended to execute: "cmd" /c "fsutil ... "c:\Program Files .." "c:\Program Files..."" Signed-off-by: Kentaro Hayashi --- fluent-package/msi/source.wxs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fluent-package/msi/source.wxs b/fluent-package/msi/source.wxs index 7bd982642..faeb7f1b7 100644 --- a/fluent-package/msi/source.wxs +++ b/fluent-package/msi/source.wxs @@ -185,7 +185,7 @@ + Value=""[FLUENTPROJECTLOCATION]fluentd.bat" --reg-winsvc i --reg-winsvc-delay-start --reg-winsvc-fluentdopt "-c '[FLUENTPROJECTLOCATION]etc\fluent\fluentd.conf' -o '[FLUENTPROJECTLOCATION]fluentd.log'""/> + Value=""cmd" /c "fsutil hardlink create ^"[FLUENTPROJECTLOCATION]bin\td-agent.bat^" ^"[FLUENTPROJECTLOCATION]fluentd.bat^"""/> + Value=""cmd" /c "fsutil hardlink create ^"[FLUENTPROJECTLOCATION]bin\td-agent-gem.bat^" ^"[FLUENTPROJECTLOCATION]fluent-gem.bat^"""/> + Value=""cmd" /c "del ^"[FLUENTPROJECTLOCATION]bin\td-agent.bat^"""/> + Value=""cmd" /c "del ^"[FLUENTPROJECTLOCATION]bin\td-agent-gem.bat^"""/>