Sheldon Livingston
asked on
Install a program from vb.net service
I have written a vb.net service. I would like to silently install a program using the service.
The program is silently installable... I can do it via the command prompt.
The service, however, doesn't install and I think the issue maybe the space in which the service runs.
Thoughts?
The program is silently installable... I can do it via the command prompt.
The service, however, doesn't install and I think the issue maybe the space in which the service runs.
Thoughts?
what are the privileges to which the service run?
in order to install a program you need to have local administrator privileges on the system
in order to install a program you need to have local administrator privileges on the system
ASKER
I think the issue is with the service running under the local system account.
I would use TopShelf to create the service instead of the VS template
This is my (albeit C#) Visual Studio Windows Service template
https://www.experts-exchange.com/articles/33372/NET-Windows-Service-Template-using-Timer-Topshelf-and-Log4Net.html
This is my (albeit C#) Visual Studio Windows Service template
https://www.experts-exchange.com/articles/33372/NET-Windows-Service-Template-using-Timer-Topshelf-and-Log4Net.html
I suggest you to create a specif user for your service and configure the AlwaysInstallElevated policy for this user
ttps://docs.microsoft.com/ en-us/wind ows/deskto p/msi/inst alling-a-p ackage-wit h-elevated -privilege s-for-a-no n-admin
https://docs.microsoft.com/en-us/windows/desktop/msi/alwaysinstallelevated
ttps://docs.microsoft.com/
https://docs.microsoft.com/en-us/windows/desktop/msi/alwaysinstallelevated
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Also, your installer should capture + report all errors encountered during installation.
The reported errors are essential to debugging this.
And, if your disk space is 99.99% used, then you're likely correct... free up some disk space + see if this fixes your install problem...