Assuming that I can translate this to C#, what would be the WiX code that needs to be in place to call this function? I am fairly new to 3.x and I remember that with 2.0 there needed to be a fair amount of plumbing in place to call a C# (managed) custom action.
Kevin Burton Senior Software Engineer BUYSEASONS 262-901-2000 Office 262-901-2312 Fax kev...@buyseasons.com -----Original Message----- From: Wilson, Phil [mailto:phil.wil...@invensys.com] Sent: Wednesday, February 02, 2011 2:25 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] ServiceInstall failure? A usual way to validate credentials is to use the LogonUser() Win32 API, but that's a logon that can fail, which is what you don't want. The only other way I'm aware of is SSPLogonUser(), huge C++ example here: http://support.microsoft.com/kb/180548 Phil Wilson -----Original Message----- From: Kevin Burton [mailto:kev...@buyseasons.com] Sent: Wednesday, February 02, 2011 6:55 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] ServiceInstall failure? No impersonations myself. This started occurring when there was a problem with my Custom UI which among other things prompted for a password. The UI was not showing up and so the password was not valid. But the install continued. It got to <ServiceIntall> and <ServiceControl> and the <ServiceControl> task failed because of an invalid password but the account (my account) that the service was installed under was locked out. My administrator indicated that something or someone tried and failed too many times so the account was locked out. I hate to try it again because it takes I am guessing the Domain Admin to unlock the account again and I hate to continually asked the admin to unlock my account. Hence the question. If you have suggestions on how I might implement the custom action to validate the credentials I would be very appreciative. That may solve my problem. I have a WiX 2.0 script that works right now so I am reasonably sure that my account has the proper rights. I have subsequently successfully installed and started the service using that installation script. Kevin Burton Senior Software Engineer BUYSEASONS 262-901-2000 Office 262-901-2312 Fax kev...@buyseasons.com -----Original Message----- From: MikeR [mailto:michael.ru...@gmail.com] Sent: Tuesday, February 01, 2011 10:52 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] ServiceInstall failure? Are you explicitly doing any impersonation of the logon user in custom actions yourself? If you are obtaining logon credentials from the user (via dialog or command line) I would implement a custom action to validate those credentials before you make any system changes and prevent the install from proceeding until you have valid credentials. I would also recommend checking that the account has the ServiceLogonRight policy set so to ensure it can be used to run services. -Mike -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/ServiceInstall-failure-tp5967359p5981755.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users *** Confidentiality Notice: This e-mail, including any associated or attached files, is intended solely for the individual or entity to which it is addressed. This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify the sender immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person. This email comes from a division of the Invensys Group, owned by Invensys plc, which is a company registered in England and Wales with its registered office at 3rd Floor, 40 Grosvenor Place, London, SW1X 7AW (Registered number 166023). For a list of European legal entities within the Invensys Group, please go to http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77. You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail recept...@invensys.com. This e-mail and any attachments thereto may be subject to the terms of any agreements between Invensys (and/or its subsidiaries and affiliates) and the recipient (and/or its subsidiaries and affiliates). ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users