File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1110,9 +1110,11 @@ endif()
11101110if (CPACK_GENERATOR MATCHES "WIX" )
11111111 set (CPACK_WIX_UPGRADE_GUID cb6825fd-37e6-4596-a55d-6d490d4fe178)
11121112 configure_file (LICENSE "${CMAKE_CURRENT_BINARY_DIR} /LICENSE.txt" )
1113+ configure_file (${CMAKE_SOURCE_DIR} /cpack/wix/WIX.template.in.cmakein
1114+ ${CMAKE_CURRENT_BINARY_DIR} /WIX.template.in)
11131115 # Specify LICENSE file that has .txt extension
11141116 set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_BINARY_DIR} /LICENSE.txt" )
1115- set (CPACK_WIX_TEMPLATE ${CMAKE_SOURCE_DIR} /cpack/wix /WIX.template.in)
1117+ set (CPACK_WIX_TEMPLATE ${CMAKE_CURRENT_BINARY_DIR} /WIX.template.in)
11161118 set (CPACK_WIX_LIGHT_EXTENSIONS "WixUtilExtension" )
11171119endif ()
11181120
Original file line number Diff line number Diff line change 7878 <?include " product_fragment.wxi" ?>
7979
8080 <Property Id =" CreateFluentBitWinSvc" Value =" " />
81- <CustomAction Id =" SetCreateFluentBitWinSvcCommand" Property =" CreateFluentBitWinSvc" Value =" " sc.exe" create $(var.CPACK_PACKAGE_NAME) binpath= " \" [INSTALL_ROOT]bin\fluent-bit .exe\" -c \" [INSTALL_ROOT]conf\fluent-bit .conf\"" start= delayed-auto" Execute =" immediate" />
81+ <CustomAction Id =" SetCreateFluentBitWinSvcCommand" Property =" CreateFluentBitWinSvc" Value =" " sc.exe" create @FLB_OUT_NAME@ binpath= " \" [INSTALL_ROOT]bin\@FLB_OUT_NAME@ .exe\" -c \" [INSTALL_ROOT]conf\@FLB_OUT_NAME@ .conf\"" start= delayed-auto" Execute =" immediate" />
8282 <CustomAction Id =" CreateFluentBitWinSvc" BinaryKey =" WixCA" DllEntry =" CAQuietExec" Execute =" deferred" Return =" check" Impersonate =" no" />
8383
8484 <Property Id =" LaunchFluentBitWinSvc" Value =" " />
85- <CustomAction Id =" SetLaunchFluentBitWinSvcCommand" Property =" LaunchFluentBitWinSvc" Value =" " sc.exe" start $(var.CPACK_PACKAGE_NAME) " Execute =" immediate" />
85+ <CustomAction Id =" SetLaunchFluentBitWinSvcCommand" Property =" LaunchFluentBitWinSvc" Value =" " sc.exe" start @FLB_OUT_NAME@ " Execute =" immediate" />
8686 <CustomAction Id =" LaunchFluentBitWinSvc" BinaryKey =" WixCA" DllEntry =" CAQuietExec" Execute =" deferred" Return =" check" Impersonate =" no" />
8787
8888 <Property Id =" StopFluentBitWinSvc" Value =" " />
89- <CustomAction Id =" SetStopFluentBitWinSvcCommand" Property =" StopFluentBitWinSvc" Value =" " sc.exe" stop $(var.CPACK_PACKAGE_NAME) " Execute =" immediate" />
89+ <CustomAction Id =" SetStopFluentBitWinSvcCommand" Property =" StopFluentBitWinSvc" Value =" " sc.exe" stop @FLB_OUT_NAME@ " Execute =" immediate" />
9090 <CustomAction Id =" StopFluentBitWinSvc" BinaryKey =" WixCA" DllEntry =" CAQuietExec" Execute =" deferred" Return =" ignore" Impersonate =" no" />
9191
9292 <Property Id =" DeleteFluentBitWinSvc" Value =" " />
93- <CustomAction Id =" SetDeleteFluentBitWinSvcCommand" Property =" DeleteFluentBitWinSvc" Value =" " sc.exe" delete $(var.CPACK_PACKAGE_NAME) " Execute =" immediate" />
93+ <CustomAction Id =" SetDeleteFluentBitWinSvcCommand" Property =" DeleteFluentBitWinSvc" Value =" " sc.exe" delete @FLB_OUT_NAME@ " Execute =" immediate" />
9494 <CustomAction Id =" DeleteFluentBitWinSvc" BinaryKey =" WixCA" DllEntry =" CAQuietExec" Execute =" deferred" Return =" check" Impersonate =" no" />
9595
9696 <InstallExecuteSequence >
You can’t perform that action at this time.
0 commit comments