File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 77
77
<?include " properties.wxi" ?>
78
78
<?include " product_fragment.wxi" ?>
79
79
80
+ <Property Id =" LAUNCHSERVICE" Value =" 1" />
81
+ <SetProperty Id =" LAUNCHSERVICE" Value =" 0" After =" LaunchConditions" Sequence =" first" >
82
+ <![CDATA[ %NOT_FLB_SVC_LAUNCH <> ""]]>
83
+ </SetProperty >
84
+
80
85
<Property Id =" CreateFluentBitWinSvc" Value =" " />
81
86
<
CustomAction Id =
" SetCreateFluentBitWinSvcCommand" Property =
" CreateFluentBitWinSvc" Value =
" " sc.exe" create @FLB_OUT_NAME@ binpath= " \" [INSTALL_ROOT]bin\@[email protected] \" -c \" [INSTALL_ROOT]conf\@[email protected] \"" start= delayed-auto" Execute =
" immediate" />
82
87
<CustomAction Id =" CreateFluentBitWinSvc" BinaryKey =" WixCA" DllEntry =" CAQuietExec" Execute =" deferred" Return =" ignore" Impersonate =" no" />
91
96
92
97
<Property Id =" DeleteFluentBitWinSvc" Value =" " />
93
98
<CustomAction Id =" SetDeleteFluentBitWinSvcCommand" Property =" DeleteFluentBitWinSvc" Value =" " sc.exe" delete @FLB_OUT_NAME@" Execute =" immediate" />
94
- <CustomAction Id =" DeleteFluentBitWinSvc" BinaryKey =" WixCA" DllEntry =" CAQuietExec" Execute =" deferred" Return =" check " Impersonate =" no" />
99
+ <CustomAction Id =" DeleteFluentBitWinSvc" BinaryKey =" WixCA" DllEntry =" CAQuietExec" Execute =" deferred" Return =" ignore " Impersonate =" no" />
95
100
96
101
<InstallExecuteSequence >
97
102
<Custom Action =" SetCreateFluentBitWinSvcCommand" After =" InstallFiles" >NOT Installed</Custom >
98
103
<Custom Action =" CreateFluentBitWinSvc" After =" SetCreateFluentBitWinSvcCommand" >NOT Installed</Custom >
99
- <Custom Action =" SetLaunchFluentBitWinSvcCommand" After =" CreateFluentBitWinSvc" >NOT Installed</Custom >
100
- <Custom Action =" LaunchFluentBitWinSvc" After =" SetLaunchFluentBitWinSvcCommand" >NOT Installed</Custom >
104
+ <Custom Action =" SetLaunchFluentBitWinSvcCommand" After =" CreateFluentBitWinSvc" >LAUNCHSERVICE="1" AND NOT Installed</Custom >
105
+ <Custom Action =" LaunchFluentBitWinSvc" After =" SetLaunchFluentBitWinSvcCommand" >LAUNCHSERVICE="1" AND NOT Installed</Custom >
101
106
102
107
<Custom Action =" SetStopFluentBitWinSvcCommand" After =" InstallInitialize" >REMOVE="ALL" AND NOT UPGRADINGPRODUCTCODE</Custom >
103
108
<Custom Action =" StopFluentBitWinSvc" After =" SetStopFluentBitWinSvcCommand" >REMOVE="ALL" AND NOT UPGRADINGPRODUCTCODE</Custom >
You can’t perform that action at this time.
0 commit comments