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
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)
Please log in to answer
Posted by:
baldeagle
19 years ago
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
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.
so that the conversation will remain readable.