ademichele22
Posts: 2
Joined: Mon May 08, 2006 9:10 pm

IIS Virtual Directory Already Exists on this Server

Hi,

We are experiencing a problem where our installation package displays errors when it tries to create/initialize a virtual directory in IIS that already exists.

It first displays this message:
Virtual Directory [virtual directory] on Web Site [web site] already exists on this server.

Then it continues for a bit and then displays this error:
There was an error during the IIS configuration process. Your original IIS configuration will be restored.

After that the installation seems to rollback.

Any ideas/suggestions?

We are using Advanced Installer 3.8.1. We are installing to both IIS 5 and 6 on both Windows XP and Windows Server 2003.

Thanks.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
We are experiencing a problem where our installation package displays errors when it tries to create/initialize a virtual directory in IIS that already exists.
The problem resides from the fact that you try to create a virtual directory that already exists on the server. The IIS tool does not allow this, because this would destroy the existing configuration.

Regards,
Gigi
_________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
ademichele22
Posts: 2
Joined: Mon May 08, 2006 9:10 pm

Hi,

My apologies, I should have included more information in my post. I do realize that the error implies that the virtual directory already exists. However, I would expect that advanced installer would allow for the installation to skip that virtual directory and continue without rolling back. Taking that even further, it should actually allow you a choice of what you want to do (skip, overwrite, or rollback entire installation).

For the servers we are installing to, we do not know ahead of time what virtual directories will exist. Is there anyway we can avoid having the entire installation rollback if we try creating a virtual directory that already exists?

Thanks.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

It is not a good practice to continue the installation if not all IIS components are installed successfully.

However in a future version of AI we will allow creating IIS components as features and then you can control whether to install them or not from the "Organization" page.

Regards,
Gigi
__________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
lliao
Posts: 2
Joined: Wed May 24, 2006 10:54 pm

Hi,
I am experiencing the same problem and do you have any suggestions?
In my case I need to keep the original IIS virtual directory settings, because most of my web app projects already sit in IIS. But also I need the installer to create a virtual directory if there is none.

Can this possibly be done by custom actions with vbs?

Thanks!
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

You can do this with a custom action but note that you must schedule this custom action before "InstallIIS" action.

Regards,
Gigi
_________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”