cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Kovalenko
Level 6

ServiceAddService does not install service if invalid credentials supplied

Hi,

I have a problem with ServiceAddService function. Before invoking this function user name and password may be set to values specified by user. This data is set via SERVICE_IS_PARAMS structure. This works fine unless user name and/or password are invalid. In this case service is not installed at all.

Is there a way to make service installed in any way?
Labels (1)
0 Kudos
(3) Replies
rasky74
Level 6

In your case I would verify the credentials in a CA first. If they are bad just leave username/password blank so it will default to SYSTEM.
0 Kudos
Kovalenko
Level 6

This would be perfect, but how I can do this with InstallScript? InstallScript because this happens before Install Files action is performed...
0 Kudos
rasky74
Level 6

Sorry I misread...I am not familiar with installscript. Maybe use the IS dialog mentioned in http://community.macrovision.com/archive/index.php?t-177589.html to gather/verify login info.
0 Kudos