We have problems supporting IIS7 in our installer. After some investigation I think that I have found several bugs in IIS7 support...
Test system information:
- InstallAware 9.09
- Windows 2008 R2 with IIS 7.5 (causing problems)
- Windows 2003 with IIS 6 - where the installer works fine
- Basis for the tests - "Creating IIS Websites and Virtual Folders" sample project
1. Possible BUG no 1: Cannot create a Virtual Directory in the root of a Web Site if the Web Site contains some applications.
Example command:
Code: Select all
Create Virtual Folder "TestFolder" in IIS Site #1, pointing to physical location c:\temp
where:
- 1 - is the proper identifier of the "Default Web Site"
- c:\temp folder exists and has all the necessary rights.
Example IIS structure configuration 1:
- Default Web Site
- Default Web Site
- TestFolder
Example IIS structure configuration 2:
- Default Web Site
- Application1
- Application2
- Default Web Site
- Application1
- Application2
- TestFolder
I consider this as a bug. Few things that I've noticed:
- I can still create Virtual Directories in the root of the Web Site using the IIS management console
- This doesn't happen when creating applications, only Virtual Directories are acting like this
- Always the last Application is chosen to be a parent of the newly created Virtual Directory
2. Possible BUG no 2: Virtual Directory cannot be deleted during uninstallation.
If the bug no 1 occurs, the Virtual Directory that was just created is never deleted during the uninstallation.
3. Possible BUG no 3: Setting the default document doesn't work.
If the bug no 1 occurs, the default documents section defined in "Create Virtual Directory" command is ignored.
4. Possible BUG no 4: Reading IIS Properties doesn't work even if the IIS6 Metabase Compatibility is installed
I'm using the IIS Metabase to get the root folder of a given Web Site. It works perfectly fine on IIS6. I know that in IIS7 the Metabase is gone, but after installing the IIS6 Metabase Compatibility Role Service everything should work fine. It's not.
Example command:
Code: Select all
Get IIS Site Property "AppRoot" into variable WEBSITE_ROOT_PATH from site #1/
Result: some strange characters, like "^%^". Tested on ENG and DE version of the operating system with similar results.
Am I doing something wrong here? Or I have just found 4 bugs? This is really a blocking point for my company since we cannot deliver our product to our customers using Windows 2008 (R2).
Best regards,
adi