开发者

DetectNewerInstalledVersion Problem

I'm using vs 2010, and i generate a se开发者_StackOverflow社区tup file, i do have RemovePreviousVersion true and DetectNewerInstalledVersion true, at the start i had problem to remove previous version but with a hack in the MSI file it is working, not if I try to install a setup file where I have a higher one already installed on my machine, it won't be detected and will be installed separately. I'm not sure why it is not working, is it because the older version setup file was created by VS2008 ?? and didnt have the option of detectingNewerinstalledVersion true. who will check for the newer version the older setup version or the newer version will prevent it. thank you for you help in advance Jp


In order for two setup projects to be considered the same application they should have different product codes, identical upgrade codes, and different version numbers.

It's hard to tell from your question if this affects you, but there is a serious issue in the way Visual Studio 2010 setup projects handle "upgrade" installations. If an assembly in the older setup has the same AssemblyFileVersionAttribute as the one in the newer setup, the installer assumes the file has not changed and will not replace it with the newer file.

One possible workaround for this problem is to include the [ProductVersion] in your installation directory.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜