jesusilvester
Posts: 20
Joined: Fri Jun 26, 2009 12:47 pm

How to overwrite virtual directory if already exists

Hi,

I want to create a new virtual directory in the installed iis.
Before virtual directory creation i need to check whether the virtual directory exists or not .

If virtual directory already exists then it should prompt the user to overwrite or skip the virtual directory creation

In the "Action if duplicate" section there is no option to overwrite(replace) if already exists.
How can i achieve this
Please help

Thanks
Jesukaran John Silvester
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How to overwrite virtual directory if already exists

Hi,

Advanced Installer doesn't offer an option to overwrite an existing virtual directory because this is not recommended. However, you can try using a custom action to remove the virtual directory from IIS at the beginning of the installation.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”