即使使用REINSTALLMODE = amus也不会覆盖文件 [英] Files not being overwritten even with REINSTALLMODE=amus

查看:67
本文介绍了即使使用REINSTALLMODE = amus也不会覆盖文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对InstallShield来说还很陌生-请多多包涵.

I'm pretty new to InstallShield - so bear with me.

我已经创建了一个基本的MSI安装程序,可以正确安装我们的应用程序,直到最近,每次我重新构建它时(带有用于构建应用程序新版本的一些新文件),它都将毫无问题地替换这些文件.

I have created a Basic MSI installer that correctly installs our application and, until recently, every time I rebuilt it (with some new files for a new build of our application), it would replace the files with no issues.

但是,我今天早上用新版本重建了它,它完全拒绝替换任何文件.

However, I rebuilt it this morning with a new version, it flat out refuses to replace any files.

例如,主exe现在的文件版本为8.0.0.15,要替换的文件为8.0.0.13;新的修改和创建日期为2013年7月11日,两者都将替换为2013年6月26日-它仍不会将旧文件替换为新文件(这只是数百个文件中的1个,但是主要exe文件,因此每个发行版肯定都会对其进行更改).

For example, out main exe now has a file version of 8.0.0.15, the one it is replacing is 8.0.0.13; the new modified and created date is 7/11/2013, the one it is replacing is 6/26/2013 for both - it still wont replace the old file with the new one (this is just 1 file in hundreds, but is the main exe and so it definitely gets changed with each release).

我将自己的exe和dll的属性更改为文件和文件夹"下的始终覆盖",但无济于事(因为它们从未更改,因此我没有涉及过第三方dll).我已将ResintallModeText更改为"asum",但无济于事-我应该尝试使用"asumv"吗?.

I have changed the properties of our own exe's and dll's to 'Always Overwrite' under 'Files and Folders' to no avail (I haven't touched the 3rd party dll's since they never changed). I have changed the ResintallModeText to 'asum' to no avail - should I try 'asumv'?.

在重新安装应用程序之前将其自身完全卸载之前,我还有什么要考虑的尝试,以确定是否有可能阻止installshield替换目标计算机上的文件?

Before I have the application completely uninstall itself prior to reinstall, is there anything else I should be looking at to try and determine what may be preventing the installshield from replacing the files on the target machine?

我不知道会发生什么变化以使其停止升级-自从一切运行良好以来,几个月以来我们都没有对installshield进行任何更改.

I have no idea what could have changed to cause it to stop upgrading - we haven't had to make any changed to the installshield for some months since everything was running fine.

如果您需要日志或其他任何东西,请告诉我(尽管我无法在安装时写出installshield冗长的日志-但我可以提供Windows安装程序日志).

If you need logs or anything, let me know (though I can't get it to write out the installshield verbose log on install - but I can provide the Windows installer logs).

感谢您的帮助!

推荐答案

感谢@anand的评论,它也解决了我的问题.就我而言,即使我更新了产品版本(即1.0.001至1.0.002)并更改了新版本的软件包代码,可执行文件也没有更新.

Thanks to the comment from @anand which solved my problem as well. In my case, the executable was not updating even when I updated the product version (i.e. 1.0.001 to 1.0.002) and changing the package code for a new build.

对我来说,解决方案是右键单击文件和文件夹"(在InstallShield中)中的可执行文件,然后选择属性".选中始终覆盖"后,无论产品版本或软件包代码如何,我的可执行文件现在都将得到更新.

The solution for me was to right-click on the executable in Files and Folders (in InstallShield) and select Properties. After checking "Always Overwrite" my executable now gets updated regardless of the product version or package code.

这篇关于即使使用REINSTALLMODE = amus也不会覆盖文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆