It sounds like your web service / server supports Negotiate, NTLM or Kerberos, ie. you can "just call the service" when you're logged in as some user. So now you're installing as that user and need to call the service.
I think all you need is Impersonate="true" for your <CustomAction ...>. --- http://wix.sourceforge.net/manual-wix2/wix_xsd_customaction.htm Impersonate: This attribute specifies whether the Windows Installer, which executes as LocalSystem, should impersonate the user context of the installing user when executing this custom action. Typically the value should be 'yes', except when the custom action needs elevated privileges to apply changes to the machine. --- Someone should confirm whether this is supported in managed CAs. dB. @ dblock.org Moscow|Geneva|Seattle|New York -----Original Message----- From: Sagar1111 [mailto:sagarkavitak...@gmail.com] Sent: Monday, March 29, 2010 10:27 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Get Current User's Credentials in custom action Hi, I have a managed C# custom action which access a webservice hosted on a machine over a network. Now in this managed custom action i am getting unauthorized access error because anonymous access is disabled on iis of that machine. What i want is to pass the current users credentials to this c# custom action. Now how do i achieve this ? Do i need to ask the user to enter his credentials in UI and then use it in my C# custom action. Or is there any other way to get the current users credentials (domain, username, password). Thanks in advance Sagar -- View this message in context: http://n2.nabble.com/Get-Current-User-s-Credentials-in-custom-action-tp4818201p4818201.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users