Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Msiexec :auto-install as a Service


1 reply to this topic

rachidkhan

rachidkhan
  • Members
  • 1 posts

Posted 15 September 2005 - 16:46

Hai,

I read that is possible to Install a MSI, which is a Windows Service, and automaticly fill in the username & password.

The example that was given, doesnot work. Googling and technet weren't helpfull.

Which guru can be helpfull???

example:
msiexec /qb! /i "\Sanna.msi" ALLUSERS=1 %SERVICE_DOMAINUSERNAME=ComputerName%\%UserName% SERVICE_PASSWORD=%Password% sad.gif

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 17 September 2005 - 06:46

Windows services are normally run using the LocalSystem account. If you do need to use a user name and password you specify these in the ServiceInstall table. You should be able to use public properties in this table, and these properties could then be set from the command line. I have never tried this but it should work:

ServiceInstall
Name
DisplayName
ServiceType
StartType
ErrorControl
LoadOrderGroup
Dependencies
StartName [SERVICEUSERNAME]
Password [SERVICEPASSWORD]
Arguments
Component_
Description

Regards
-Stein Åsmul