Re: [WiX-users] CreateFolder not finding SID for NetworkService

2006-10-07 Thread Amol

Thanks! 


Bob Arnson-3 wrote:
> 
> Amol wrote:
>> I have the following CreateFolder element under my Component Element for
>> a
>> service that needs to run as NetworkService.  
>> The install fails with an error message about not being able to find the
>> SID
>> for "NT AUTHORITY\NetworkService". Since the service does install fine
>> without this element, i find that hard to believe.
>>   
> 
> SecureObj translates several names into well-known SIDs. It doesn't use 
> the NT AUTHORITY "domain" so just leave that part off. Here's the code 
> for NetworkService:
> 
> else if (!*pwzDomain && 0 == lstrcmpW(pwzUser, L"NetworkService"))
> {
> hr = AclGetWellKnownSid(WinNetworkServiceSid, &psid);
> }
> 
> 
> -- 
> sig://boB
> http://bobs.org
> 
> 
> 
> -
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/CreateFolder-not-finding-SID-for-NetworkService-tf2398565.html#a6698086
Sent from the wix-users mailing list archive at Nabble.com.


-
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


Re: [WiX-users] CreateFolder not finding SID for NetworkService

2006-10-06 Thread Bob Arnson
Amol wrote:
> I have the following CreateFolder element under my Component Element for a
> service that needs to run as NetworkService.  
> The install fails with an error message about not being able to find the SID
> for "NT AUTHORITY\NetworkService". Since the service does install fine
> without this element, i find that hard to believe.
>   

SecureObj translates several names into well-known SIDs. It doesn't use 
the NT AUTHORITY "domain" so just leave that part off. Here's the code 
for NetworkService:

else if (!*pwzDomain && 0 == lstrcmpW(pwzUser, L"NetworkService"))
{
hr = AclGetWellKnownSid(WinNetworkServiceSid, &psid);
}


-- 
sig://boB
http://bobs.org



-
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


[WiX-users] CreateFolder not finding SID for NetworkService

2006-10-06 Thread Amol

I have the following CreateFolder element under my Component Element for a
service that needs to run as NetworkService.  
The install fails with an error message about not being able to find the SID
for "NT AUTHORITY\NetworkService". Since the service does install fine
without this element, i find that hard to believe.

what else am I doing wrong otherwise ? I'm trying to set the permissions for
the folder in which the service is installed so that it can create
directories etc. when it starts up.
thanks,
-amol



-- 
View this message in context: 
http://www.nabble.com/CreateFolder-not-finding-SID-for-NetworkService-tf2398565.html#a6688667
Sent from the wix-users mailing list archive at Nabble.com.


-
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