[英]Downgrade software version with InstallShield
My latest released program is version 2.0.1.0, but since it's just in beta I wanted to change our software version to 0.3.0.0. 我最新发布的程序是版本2.0.1.0,但是由于它只是beta版,所以我想将软件版本更改为0.3.0.0。
I changed the product code and changed the version number to 0.3.0.0. 我更改了产品代码,并将版本号更改为0.3.0.0。 I also removed the isPreventDowngrade.
我还删除了isPreventDowngrade。 I also added a major upgrade item that upgrades on a product version from 0.0.0.0 to 3.0.0.0, so it should upgrade all the programs.
我还添加了一个主要的升级项目,可以将产品版本从0.0.0.0升级到3.0.0.0,因此它应该升级所有程序。
I also make it that it completely uninstalls before installing a new setup. 我还要确保它在安装新的安装程序之前已完全卸载。
When I install the new project, it keeps the old assemblies in the folder (.Net) 当我安装新项目时,它将旧程序集保留在文件夹(.Net)中
The project type is basic MSI. 项目类型是基本的MSI。
I made it work by going in the "Application Data/Files and Folders" tab, selecting all the destination files (especially the primary outputs), right clicking them and selecting "Always overwrite". 我通过进入“应用程序数据/文件和文件夹”选项卡,选择所有目标文件(尤其是主输出),右键单击它们并选择“始终覆盖”来使其工作。
I tried without doing this step and it would uninstall all the assemblies and not install the 0.3.0.0 assemblies since they were of a lower version. 我尝试不执行此步骤,因为它们是较低版本,所以它将卸载所有程序集,而不安装0.3.0.0程序集。
I hope this helps anyone that encounters the same problem. 希望这对遇到相同问题的任何人有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.