Thank you very much.
I guess I did not explain the second question correctly. I DID NOT mean
the mappings between the extension ".srf" and the DLL. I meant the "MIME
Types". Right Click "Local Computer" Node on the IIS Manager screen,
choose the "properties" menu to bring up the "properties" windows. Click
on the "MIME Types" button, then you would see "MIME Types" window. I
would like the setup application to add a extension for me there.
For question 1 and 3, the solutions sound like complex. Are there any
easier ways to accomplish them?
Thanks.
Charles Zhang
> Hi Charles,
>
[quoted text clipped - 96 lines]
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
Steven Cheng[MSFT] - 27 Mar 2007 07:03 GMT
Thanks for your reply Charles,
If the "MIME TYPE" means the global "MIME mapping" of the webserver, I'm
afraid we have to use some external code (like ADSI script) to configure
it. This is because such settings are global setting which is not specific
to a certain application or virtual directory, therefore, the Visual Studio
websetup project doesn't have built-in interfaces to set these settings.
There are many existing script reference about configuring server MIME MAP
collection(change or add or delete):
#How can I add an entry to the MIMEMAP?
http://www.iisfaq.com/Default.aspx?tabid=2779
#IIsMimeMap (ADSI)
http://msdn2.microsoft.com/en-us/library/ms525635.aspx
#C# - How to display MimeMap entries to the console from an instance of IIS
http://blog.crowe.co.nz/archive/2006/06/02/647.aspx
For the access permission (ACL) setting, it does be a bit complex because
normally, it will requirer the server administrator to interactively
configure them. And for programmatic approach, using script to call some
ACL component is the expected one. Here is a kb article demonstrate on
using VBscript to call the "adssecurity.dll" component which has
encapsulated some underlying DACL API calls:
#How to use ADsSecurity.dll to add an access control entry to an NTFS folder
http://support.microsoft.com/kb/279682/en-us
Hope this also helps some.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
Steven Cheng[MSFT] - 27 Mar 2007 07:03 GMT
Thanks for your reply Charles,
If the "MIME TYPE" means the global "MIME mapping" of the webserver, I'm
afraid we have to use some external code (like ADSI script) to configure
it. This is because such settings are global setting which is not specific
to a certain application or virtual directory, therefore, the Visual Studio
websetup project doesn't have built-in interfaces to set these settings.
There are many existing script reference about configuring server MIME MAP
collection(change or add or delete):
#How can I add an entry to the MIMEMAP?
http://www.iisfaq.com/Default.aspx?tabid=2779
#IIsMimeMap (ADSI)
http://msdn2.microsoft.com/en-us/library/ms525635.aspx
#C# - How to display MimeMap entries to the console from an instance of IIS
http://blog.crowe.co.nz/archive/2006/06/02/647.aspx
For the access permission (ACL) setting, it does be a bit complex because
normally, it will requirer the server administrator to interactively
configure them. And for programmatic approach, using script to call some
ACL component is the expected one. Here is a kb article demonstrate on
using VBscript to call the "adssecurity.dll" component which has
encapsulated some underlying DACL API calls:
#How to use ADsSecurity.dll to add an access control entry to an NTFS folder
http://support.microsoft.com/kb/279682/en-us
Hope this also helps some.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
Charles Zhang - 27 Mar 2007 19:20 GMT
Thank you very much for your help.
I think I know what to do.
Charles Zhang
> Thanks for your reply Charles,
>
[quoted text clipped - 36 lines]
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
Steven Cheng[MSFT] - 28 Mar 2007 02:46 GMT
Thanks for your reply Charles,
If you meet any further problems on this or anything else we can help,
please don't hesitate to post here.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
Steven Cheng[MSFT] - 27 Mar 2007 07:03 GMT
Thanks for your reply Charles,
If the "MIME TYPE" means the global "MIME mapping" of the webserver, I'm
afraid we have to use some external code (like ADSI script) to configure
it. This is because such settings are global setting which is not specific
to a certain application or virtual directory, therefore, the Visual Studio
websetup project doesn't have built-in interfaces to set these settings.
There are many existing script reference about configuring server MIME MAP
collection(change or add or delete):
#How can I add an entry to the MIMEMAP?
http://www.iisfaq.com/Default.aspx?tabid=2779
#IIsMimeMap (ADSI)
http://msdn2.microsoft.com/en-us/library/ms525635.aspx
#C# - How to display MimeMap entries to the console from an instance of IIS
http://blog.crowe.co.nz/archive/2006/06/02/647.aspx
For the access permission (ACL) setting, it does be a bit complex because
normally, it will requirer the server administrator to interactively
configure them. And for programmatic approach, using script to call some
ACL component is the expected one. Here is a kb article demonstrate on
using VBscript to call the "adssecurity.dll" component which has
encapsulated some underlying DACL API calls:
#How to use ADsSecurity.dll to add an access control entry to an NTFS folder
http://support.microsoft.com/kb/279682/en-us
Hope this also helps some.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.