visual studio 2010 - VS2010 Web Setup Project not replacing 'web.config' file -


i using vs2010 web setup project mvc3 webapplication. working fine installation. if update version of mvc3 webapplication binary , web setup project upgrade (from existing installation of older version) not replacing web.config file on destination directory. other files , directories replaced , updated 'web.config' file not replaced web setup.

i changing version of web setup project , mvc3 application each time when update in web application.

i tried changing "productcode" , "upgradecode" still web.config file same (of first version)

i set following property of web setup project

  • detectnewerinstalledversion - true
  • removepreviousversions - true
  • restartwwwservice - true

if remove/delete existing web.config file manually , install new version put new updated web.config file. problem occurs when there existing web.config file available in destination directory.

i tried custom action's "onbeforeinstall" delete or rename existing web.config file new we.config copy in installation. in found files copied before custom action method execute.

please me resolve or suggest alternative way provide web setup project clients.

thanks in advance!

edit: found when change version of web setup project, automatically change productcode upgradecode still same.

when installation, installer check version of each file replace. if file of same version or not changed between 2 installers, installer not replace it. if file not exist, installer drop file.

solution: try deleting file before "costfinilize". in case call custom action delete\remove file before "costfinilize".

you can use orca check execution sequence of custom action of msi. http://msdn.microsoft.com/en-us/library/windows/desktop/aa370557(v=vs.85).aspx


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -