Old 27th April 2008, 07:34   #1
Junior Member
Join Date: Apr 2008
Posts: 17
Question how to know IIS AnonymousUser?

Dear all,

how to know the IIS AnonymousUser?

i try many ways but i failed.

is there any hint or any thing may help?!

I want to set this folder permissions full control

I found this macro but i dont know how to use it:

!macro "GetIISAnonymousUser" User
nsExec::ExecToStack /TIMEOUT=20000 '"$SYSDIR\cscript.exe" //NoLogo "$TEMP\adsutil.vbs" GET W3SVC/AnonymousUserName'
Pop $1
Pop $1
Push $1
Call GetInQuotes
Pop ${User}
Attached Images
File Type: gif may_this_help.gif (10.4 KB, 181 views)
MHK is offline   Reply With Quote
Old 27th April 2008, 10:47   #2
Junior Member
Join Date: Apr 2008
Posts: 17

Section "Permissions"

System::Call kernel32::GetComputerName(t.r0,*i${NSIS_MAX_STRLEN})
StrCpy $0 IUSR_$0
DetailPrint $0

AccessControl::GrantOnFile "$INSTDIR/yourFileName" $0 "FullAccess"
pop $0
DetailPrint "-IISAnonymousUser - $0 - DONE"

MHK is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump