RE: changing permissions on folders in web setup project created in VS
From: Felix Wang (v-felwa_at_online.microsoft.com)
Date: 08/12/04
- Next message: Marc Scheuner [MVP ADSI]: "Re: VS2005 Release Date?"
- Previous message: Damon: "Re: Macro Problem - HTML Editor Switching"
- In reply to: gzinger: "changing permissions on folders in web setup project created in VS"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 12 Aug 2004 02:44:56 GMT
Hello,
Thanks for posting. Let me try to answer the questions one by one:
1. Is there better approach altogether to complete our task? Perhaps use
wmi? We need some direction here and samples if possible.
As far as I know, ADSI can also be used to set NTFS permissions. The
following KB article is for your reference:
HOW TO: Programmatically Set NTFS File System Folder Permissions by Using
Microsoft Visual Basic .NET
http://support.microsoft.com/?id=818362
On the other hand, we can automate the modification of the MSI to some
extent, by using VBScripts.
Windows Installer Automation Interface
http://msdn.microsoft.com/library/?url=/library/en-us/msi/setup/automation_i
nterface.asp?frame=true
2. How to find out which account is running the ASP.NET application (web
site or virtual root) that we just installed, so that we could give right
to that account only.
One option to achieve this is to use XPath to parse the machine.config
manually and read out the "processModel" settings. However, the
processModel setting only works for IIS 5. If the target platform also
includes Windows 2003 with IIS 6, we may need to do some additional work. I
would suggest that you post a question under IIS' newsgroup on how to
programatically retrieve application pool identity in IIS 6.
3. How can we get original permissions of a folder and than revert to them
as some later point?
I am not sure why we need to do this. During the uninstallation, the folder
should be removed at all. If you really need to achieve this, I think ADSI
will help.
4. Perhaps new Visual Studio 2005 (Whidbey) could help? Would it support
application that is built using .NET 1.1?
>From Whidbey Beta 1 preview, there are not much improvements in Setup
project. It *SHOULD* have backward compatibility with previous versions.
However, it is a little bit earlier to say so, since the product has not
yet been released. You may take a preview on Whidbey at the following site:
http://lab.msdn.microsoft.com/vs2005/get/default.aspx
I hope the information is useful to you.
Regards,
Felix Wang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
- Next message: Marc Scheuner [MVP ADSI]: "Re: VS2005 Release Date?"
- Previous message: Damon: "Re: Macro Problem - HTML Editor Switching"
- In reply to: gzinger: "changing permissions on folders in web setup project created in VS"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|