Alex99
Posts: 42
Joined: Thu Feb 14, 2013 9:28 am

Auto-override existing site

Hi to all,
Could you help me please?
I want to let user enter the site name to install. But if site with this name already exists user will be prompted for action(override, skip, ...).
But I want to automactically override site if name already exists.
There is no such option in "Action if duplicate" on IIS page(like - "Silently override site if already exists").
Do I have any way to do this?

Thanks in advance,
Alex
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Auto-override existing site

Hello,

Indeed, there is no such option because we believe that overwriting a site could have destructive consequences for the server on the target machine so prompting for confirmation every time should be the error policy.

Because there were many users which request this option we have a workaround enabled in the latest version of Advanced Installer, Vs10.2.
You can select “Prompt user to overwrite item or rollback installation” option and set a public property in the “Install Parameters” page in the “Properties” pane.

Code: Select all

IISINSTALLPOLICYOVERWRITE
with the value:

Code: Select all

1
Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”