I think you'd also need to check to see if the authenticated user has at minimum "log on as a service" privilege. It might not. The service could still fail to start due to other ACL problems, so all in all, it is a pretty difficult thing to get 100%.
A custom action that does LogonUser would at least validate the credentials though. Perhaps that could be added as a feature request for the service control CA stuff? Add a "ValidateCredentials" attribute or something... The privilege thing reminds me that it would be cool to have local security policy changes to handle things like user rights assignment as a CA in WiX (log on as service, act as part of the operating system, etc.). Another feature request. :) Joe K. ----- Original Message ----- From: Rob Mensching To: Matthew Janulewicz ; wix-users@lists.sourceforge.net Sent: Friday, December 15, 2006 12:13 PM Subject: Re: [WiX-users] Verify user? You'd need a CustomAction to try to logon that user (or something to verify it is a valid user/password). There isn't anything in the WiX toolset for that today, but it'd be cool if there was. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthew Janulewicz Sent: Friday, December 15, 2006 09:48 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Verify user? We're using Wix 3. One of our installers installs a service, but it may run under different users in different environments. The installer will prompt the user for the domain, username and password to apply during the ServiceInstall step. However, if they enter in an invalid user or password the installer just sort of uninstalls itself and stops. Is there a way to verify a domain/user/password is valid before ServiceInstall fires off? ---------- Matthew Janulewicz SCM Engineer Green Dot Corporation [EMAIL PROTECTED] (626) 775-3857 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users