InstallUtil | Port of InstallUtil.exe to dotnet core
kandi X-RAY | InstallUtil Summary
kandi X-RAY | InstallUtil Summary
InstallUtil (global tool) (version for DotNetCore. Based on Core.System.Configuration.Install (
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of InstallUtil
InstallUtil Key Features
InstallUtil Examples and Code Snippets
Community Discussions
Trending Discussions on InstallUtil
QUESTION
I am running docker build with following Dockerfile, with main idea to use feature repo as described https://github.com/WASdev/ci.docker#installing-liberty-features-from-local-repository-19008:
...ANSWER
Answered 2021-May-07 at 12:30Using different image (ibmcom/websphere-liberty:some21.0.0.3version) and pointing FEATURE_REPO_URL to place where 21.0.0.3 repo is hosted works.
So whoever prepared 19.0.0.3 image for me and said which feature repo to use, pointed me to some incompatible artefacts.
What is interesting, when I combined different versions of image vs repo, configure.sh was nicely verbose (it explained there is incompatibility), but this error CWWKF1259E: Unable to obtain the following assets
is really unhelpful.
QUESTION
I am trying to automate installing windows service using Azure DevOps pipeline. I installed Windows Service Manager from here: https://marketplace.visualstudio.com/items?itemName=MDSolutions.WindowsServiceManagerWindowsServiceManager and added it to the pipeline as a task. The windows service should be installed on the virtual machine where the pipeline is, so I provided "LocalSystem" as Run As Username, and nothing for password. The service was not installed with the following error: Service ' (MyServiceName)' cannot be created due to the following error: The account name is invalid or does not exist, or the password is invalid for the account name specified
I tried also the credentials I use to get to the virtual machine, but it gave the same error. How can this be solved? Added: The service can be installed without problems using installutil.
...ANSWER
Answered 2021-Apr-22 at 05:29Azure Devops: installing a Windows Service
You could try to use deployment groups to test, if you are using the private agent:
As the document state:
Service Name - The name of the Windows Service installed on the Deployment Group Target.
You could also refer to the similar thread for some more details.
QUESTION
I am trying to create a Windows service following this tutorial:
I am using batch code to install the service:
...ANSWER
Answered 2021-Mar-20 at 19:06I changed the DOTNET path to
%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319
and made sure to run as administrator every time. This seemed to do the trick.
QUESTION
I am trying to deploy jenkins to IBM Cloud Kubernetes Service using persistent volume. Jenkins container stucks at Beginning extraction from war file
.
I have tried without persistence and it is deployed as expected.
...ANSWER
Answered 2020-Dec-08 at 09:46The solution was installing the IBM Cloud Block Storage plug-in.
On IBM Cloud Kubernetes Service, I think, Jenkins cannot be installed on file-storage
QUESTION
I install Jenkins via Helm charts on my Kubernetes Cluster. I follow the rules described in: https://www.jenkins.io/doc/book/installing/kubernetes/
When I look at the pods, I get the following error:
...ANSWER
Answered 2020-Nov-06 at 08:26If you use the default settings from the documentation, ensure that the PVC are correctly set and ensure that all objects are in the same namespace.
The solution to my problem was:
- getting everything under the same namespace
- reverting to standard values
- when using an ingress resource, set the corresponding path in the helm config (jenkinsUriPrefix: "/yourpath") and not the jenkinsOpts: "--prefix=/yourpath"
QUESTION
I have a windows service installed.
I have tried to delete by using sc delete or by InstallUtil.exe /u "C:\Dev\myservice.exe"
But these are command line . I was trying to do it using c# But is there a command i can use to delete it via the "Path to executable" ?
The reason is i want to write a dll which can be used to do this, as the service name is saved in a config file and the dll wont have any access to the file to get the name , but the path to executable will be the same, or maybe i can delete by just the .exe file ?
Can this be done ?
...ANSWER
Answered 2020-Aug-13 at 08:39There are a few complications here
- You can't retrieve the service start executable via a C# API
- Multiple service instances can be started from a single executable
But fear not! You can get all that you need (with a bit of effort)
Step 1 - get the list of services
QUESTION
I've created a windows service project. In the post build event, I am copying the output to outside one common directory along with one more project. I am generating a MSI using heat
task to copy both directories inside MSI. I'm trying to start service after installation.
Both projects use serilog.configuration
to load json file which has logger configuration.
If I install service with the help of installutil
, service is installed successfully and starts afterwards perfectly. but when I try to install using MSI, I get below error and installation never finishes.
ANSWER
Answered 2020-Jul-14 at 13:00In your csproj
file add:
QUESTION
UPDATE.
When writing this question I was assuming wrongly that InstallUtil stores its status in the %ERRORLEVEL%
variable rather than the internal value ERRORLEVEL
, due to its unexpected behavior. I rephrased the title since it could be misleading. See This answer and my comment below it for more details.
(As a side note, Microsoft doesn't document the exit status codes, nor does it specify if there is more than one error status.)
I'm writing installation and uninstallation scripts for a Windows Service. I use InstallUtil
provided with the .NET Framework.
In a SO answer, I noticed this piece of code:
...ANSWER
Answered 2020-Jun-30 at 01:07Since you've stated that installutil
returns -1 if it fails, if errorlevel 1 goto error
will never get picked up because if errorlevel 1
means "if %errorlevel% is 1 or higher," and -1 is less than 1.
if not '%errorlevel%'=='0'
works because -1 is not 0.
QUESTION
I'm developing a new windows service and I follow the steps provided in this instruction.
In the service class, I do pretty much the same things as the article
...ANSWER
Answered 2020-Jun-12 at 06:26It seems the service does create an event log by default. I should probably set AutoLog
property of Service to false
before generate the Installer
.
Find the EventLogInstaller
insides the ServiceInstaller
and modify the log and source fixed my problem(also remember to remove the eventlog entry creation in service ctor
).
QUESTION
I have implemented windows service
using .Net Core
worker service
. When installing service from command prompt, getting error
ANSWER
Answered 2020-Jun-04 at 11:30To install service need to follow below steps
open cmd
as admin and switch to output/publish dir of project. Then type
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install InstallUtil
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page