/build/static/layout/Breadcrumb_cap_w.png

Providing Username and Password to an MSI installing a service

Hi all,

I have an MSI which installs a service. During the installation it prompts for a Username and Password.
I am installing this msi remotely as part of a daily build for a project. The command im using is as follows:

msiexec.exe /i %PATHNAME% /qn SETUPTYPE='Service' ALLUSERS=1 LAUNCHPROGRAM=1 SERVICE_DOMAINUSERNAME='%ComputerName%\%UserName%' SERVICE_PASSWORD='%Password%' SERVICE_GRANTEXECUTIONRIGHT=1

The installation process starts but it seems to stall at the point where it asks for the credentials.

Does anyone know what I should be doing to fix this? Its driving me crazy! [:(]

Any help would be much appreciated!

Thanks in advance,
--paulo

0 Comments   [ + ] Show comments

Answers (1)

Posted by: baldeagle 19 years ago
Senior Yellow Belt
0
Hi,

Call this commandline in a vb script and compile it to an exe using adminscripteditor. With this software you can add runas command including username and password. All services started from this exe will be run with the provided account. I suggest using an admin account. I already created lots of scripts using this and it really helps me installing software on all my clients without giving users additional rights.

Hope this solves you problem.
BaldEagle
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ