Remove/OverWrite web.config - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

viral
Posts: 22
Joined: Thu Jun 23, 2011 9:07 am

Remove/OverWrite web.config

Hello Support,

for one of my web app installer, I want to delete and create web.config file when user runs the installer. For now when I run installer and if web.config file already exists then some entries in web.config are duplicated. I know there is one option "Is Identifier Attributes". But i want to overwrite web.config anyhow when user runs installer. how can i do that.

Also please make sure web.config file should also be removed if it is created by other installer?

Thanks
Viral
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Remove/OverWrite web.config

Hi Viral,

If you are using an XML Update, you can simply enable the "If the element is found:" and "Update" option in the XML element's settings:
http://www.advancedinstaller.com/user-g ... tings.html

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
viral
Posts: 22
Joined: Thu Jun 23, 2011 9:07 am

Re: Remove/OverWrite web.config

Hi Mihai,

thanks for your reply. I did same way as there in link. But still elements in web.config are duplicated when I run installer again and web.config already exists at installation path. I think AI should give feature to overwrite web.config file.

To solve my problem for now I am deleting the web.config file when user runs the installer using custom action. So if web.config is exists then first installer will delete the file before installing new one. But now I am facing another issue. If I run patch installer then it is creating duplicate elements in web.config file. Also even I repair/modify then also it is creating the duplicate elements in the web.config.

Can you please help me how to overcome this web.config duplicate elements issue. I have to stop release of my product because of this issue and I already spent 2-3 days in soling this issue

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

Re: Remove/OverWrite web.config

Hi,

Can you please send us the .AIP (project) file you are using to support at advancedinstaller dot com so we can investigate it? Also, please specify in your email which elements show this problem.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
viral
Posts: 22
Joined: Thu Jun 23, 2011 9:07 am

Re: Remove/OverWrite web.config

I just email along with project file.

Viral

Return to “Common Problems”