-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run tauri project as a windows service #11520
Comments
I believe you can just use a custom template which would solve your problem.
This we can do |
Hi! I’m currently using a custom template, and the
It seems that the WixUtilExtension might not be included in the compilation process, even though the namespace is referenced. Any guidance on ensuring that WixUtilExtension is fully recognized and compiled with the project would be greatly appreciated! |
so apparently I was wrong, In your case, the url is wrong, it should be |
Do you have any ideas for a workaround to ensure that WixUtilExtension.dll is linked during the candle.exe compilation? Alternatively, is there another approach you’d recommend for running the Tauri project as a Windows service? If no workaround is available, are there plans to support one of the features mentioned above in the near future? Any guidance or recommendations would be greatly appreciated! |
yes, just include
I haven't implemented such a use-case with tauri unfortunately so I don't have any recommendation or articles to link to unfortunately.
I already opened a PR to run the fragments through Handlebars in #11521 which will make The other request is covered by the automatic detection of extension we already have, you just need to correctly specify the url as I explained earlier. |
As mentioned in my initial problem description, I did try adding xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" in the fragment. However, this approach introduces limitations:
Thank you so much for your quick response and for implementing the feature that can help solve my problem! Do you anticipate this PR being merged in the near future? |
This is was not your question though, you asked
should be included in the next release, but I have not ETA atm. |
Is there a way to use the changes before they’re merged and released? I tried specifying the commit hash directly in my
But I still encounter the following error:
|
the relevant changes is actually in the CLI, so you need to install the CLI using
|
I tried installing as you suggested, |
Describe the problem
I aim to run my Tauri project as a Windows service. To achieve this, I need to use the WiX Util extension, which includes the ServiceInstall element necessary for setting up Windows services.
Here’s the code I am trying to use:
The problem
The current Tauri template does not support adding the WiX Util extension in the main template, so I am attempting to use a custom fragment to include it. However, this workaround has significant limitations:
1. Installing the Full Component via Custom Fragment:
The
.exe
file cannot be installed directly through the custom fragment because there is no way to reference theapp_exe_source
variable within the fragment. The custom fragment does not support accessing bundler variables like{{app_exe_source}}
, which limits its usability.2. Installing the Service Without the File Element:
If I attempt to install the service without specifying the file element, there is no way to link the service to the executable file. As a result, the service configuration cannot specify which file to execute when starting the service.
Describe the solution you'd like
Ideally, there would be two potential solutions, both of which seem to be quite simple to implement::
{{app_exe_source}}
, enabling the fragment to correctly reference the.exe
file and establish a link between the service and the executable.Alternatives considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: