Re: [WiX-users] Get Current User's Credentials in custom action

2010-04-07 Thread dB .
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: Sagar [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#174; 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#174; 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


Re: [WiX-users] Get Current User's Credentials in custom action

2010-04-07 Thread dB .
I generally think it's a bad idea. Why would a local installation affect an 
existing web server? Why not do it on application startup?

dB. @ dblock.org 
Moscow|Geneva|Seattle|New York



-Original Message-
From: Sagar [mailto:sagarkavitak...@gmail.com] 
Sent: Wednesday, March 31, 2010 1:37 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Get Current User's Credentials in custom action


The reason behind calling web-service from msi is that i need to install a
file on the webserver rather than just calling copying it on target machine.
And the webserver exposes a web-service to do this.

Sagar

-- 
View this message in context: 
http://n2.nabble.com/Get-Current-User-s-Credentials-in-custom-action-tp4818201p4829184.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Download Intel#174; 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#174; 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


Re: [WiX-users] Get Current User's Credentials in custom action

2010-03-30 Thread Wilson, Phil
Here's the scenario: A limited user called Fred installs the product. It 
requires admin privilege to install, so an elevation dialog pops up and an 
administrator enters his credentials so that the install can proceed. 

Later on in a custom action you ask for the current user's credentials. There 
are a number of ways you could do that, such as the USERNAME property, or maybe 
in your custom action code you use some API that returns current user's 
credentials. What credentials are you going to get? The administrator's or 
Fred's?  Apart from that, there's also the question of whether your custom 
action needs elevation (so it must run with the local system account).  If your 
managed custom action is DTF, I don't know how that behaves in this 
environment. 

All this is the kind of thing that happens when installs try to do too much. 
Why does the install need to call a web service, and is there some reason why 
the app can't do it in a normal interactive user environment after the install? 

Phil Wilson 



-Original Message-
From: Sagar [mailto:sagarkavitak...@gmail.com] 
Sent: Monday, March 29, 2010 10:20 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Get Current User's Credentials in custom action


Phil Wilson, i couldn't get your point. can you explain it in detail.

Thanks
Sagar Kavitake
-- 
View this message in context: 
http://n2.nabble.com/Get-Current-User-s-Credentials-in-custom-action-tp4818201p4822819.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Download Intel#174; 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


*** 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 Portland House, Bressenden Place, London, 
SW1E 5BF (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=77nav_id=80prev_id=77. 
You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail 
inet.hqhelpd...@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).



--
Download Intel#174; 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


Re: [WiX-users] Get Current User's Credentials in custom action

2010-03-30 Thread Sagar1111

The reason behind calling web-service from msi is that i need to install a
file on the webserver rather than just calling copying it on target machine.
And the webserver exposes a web-service to do this.

Sagar

-- 
View this message in context: 
http://n2.nabble.com/Get-Current-User-s-Credentials-in-custom-action-tp4818201p4829184.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Download Intel#174; 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


Re: [WiX-users] Get Current User's Credentials in custom action

2010-03-29 Thread Pally Sandher
For username you could try passing the USERNAME or LogonUser property to
your custom action
(http://msdn.microsoft.com/en-us/library/aa372385.aspx 
http://msdn.microsoft.com/en-us/library/aa369780.aspx). That may also
give you the domain but as the MSDN pages don't tell you what the format
of those Properties are you might need to do some debugging to check it
first.
Password you'll need to prompt for, no other way around it.

Since you're writing a C# custom action things like domain  username
should be quite easy to pull in .NET using
System.Security.Principal.WindowsIdentity.GetCurrent() rather than
having to pass properties from Windows Installer but that's beyond the
scope of this discussion list.
 
Palbinder Sandher 
Software Deployment  IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the Virtual Environment**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer

-Original Message-
From: Sagar [mailto:sagarkavitak...@gmail.com] 
Sent: 29 March 2010 15:27
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-tp4
818201p4818201.html
Sent from the wix-users mailing list archive at Nabble.com.


--
Download Intel#174; 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#174; 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


Re: [WiX-users] Get Current User's Credentials in custom action

2010-03-29 Thread Wilson, Phil
There are some edge cases too which may not work. If you're on a UAC system and 
a non-privileged user starts the install and an administrator enters some over 
the shoulder administrator credentials I'm not sure what you'd see in a C# 
custom action with WindowsIdentity. 

Phil Wilson 

-Original Message-
From: Pally Sandher [mailto:pally.sand...@iesve.com] 
Sent: Monday, March 29, 2010 8:24 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Get Current User's Credentials in custom action

For username you could try passing the USERNAME or LogonUser property to
your custom action
(http://msdn.microsoft.com/en-us/library/aa372385.aspx 
http://msdn.microsoft.com/en-us/library/aa369780.aspx). That may also
give you the domain but as the MSDN pages don't tell you what the format
of those Properties are you might need to do some debugging to check it
first.
Password you'll need to prompt for, no other way around it.

Since you're writing a C# custom action things like domain  username
should be quite easy to pull in .NET using
System.Security.Principal.WindowsIdentity.GetCurrent() rather than
having to pass properties from Windows Installer but that's beyond the
scope of this discussion list.
 
Palbinder Sandher 
Software Deployment  IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the Virtual Environment**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer

-Original Message-
From: Sagar [mailto:sagarkavitak...@gmail.com] 
Sent: 29 March 2010 15:27
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-tp4
818201p4818201.html
Sent from the wix-users mailing list archive at Nabble.com.


--
Download Intel#174; 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#174; 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


*** 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 Portland House, Bressenden Place, London, 
SW1E 5BF (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=77nav_id=80prev_id=77. 
You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail 
inet.hqhelpd...@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).



--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively

Re: [WiX-users] Get Current User's Credentials in custom action

2010-03-29 Thread Sagar1111

Phil Wilson, i couldn't get your point. can you explain it in detail.

Thanks
Sagar Kavitake
-- 
View this message in context: 
http://n2.nabble.com/Get-Current-User-s-Credentials-in-custom-action-tp4818201p4822819.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Download Intel#174; 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