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?
Sheldon LivingstonConsultantAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
For assistance, you'd have to post information about your installation process.

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...
DevAdminSystem Engineer | .NET Developer | Microsoft MVP | Technical SpeakerCommented:
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
Sheldon LivingstonConsultantAuthor Commented:
I think the issue is with the service running under the local system account.
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

Shaun VermaakTechnical SpecialistCommented:
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
DevAdminSystem Engineer | .NET Developer | Microsoft MVP | Technical SpeakerCommented:
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/windows/desktop/msi/installing-a-package-with-elevated-privileges-for-a-non-admin
https://docs.microsoft.com/en-us/windows/desktop/msi/alwaysinstallelevated
Sheldon LivingstonConsultantAuthor Commented:
I have resigned to utilizing a setup program that will install my service AND the other program I want installed.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.