Problems with IIS7 support
Posted: Mon Jun 14, 2010 6:33 am
Hi,
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:
where:
Correct, folder created where it was intended.
Example IIS structure configuration 2:
Result:
[/list]
WRONG. Folder created under some already existing application! This can mess up the whole system!
I consider this as a bug. Few things that I've noticed:
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:
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
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
- 1 - is the proper identifier of the "Default Web Site"
- c:\temp folder exists and has all the necessary rights.
- Default Web Site
- Default Web Site [list] [b]
- TestFolder [/b]
Correct, folder created where it was intended.
Example IIS structure configuration 2:
- Default Web Site [list]
- Application1
- Application2
Result:
- Default Web Site [list]
- Application1
- Application2 [list] [b][color=#FF0000]
- TestFolder [/color][/b]
[/list]
WRONG. Folder created under some already existing application! This can mess up the whole system!
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/
Best regards,
adi