简体   繁体   English

使用InstallShield降级软件版本

[英]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.

相关问题 仅在特定视图上降级jQuery版本 - downgrade jquery version on specific view only 如何降级内部版本 nuget package - How to downgrade the version of internal nuget package 降级.NET版本和Prism以在XP上运行 - Downgrade .NET version and Prism to run on XP 仅在从特定版本进行次要升级时才调用InstallShield自定义操作 - Calling InstallShield Custom Action only on minor upgrade from specific version InstallShield LE不会将.EXE换成较新的版本 - InstallShield LE won't swap .EXE for newer version (InstallShield)WPF可执行文件如果未以管理员身份运行,则调用错误的dll版本 - (InstallShield) WPF Executable Calls wrong dll version if not run as administrator 更改InstallShield中使用的Installer类的.NET Framework版本 - Changing .NET Framework version of Installer class used in InstallShield 如何降级我在cmd上拥有的Nuget版本? - How to downgrade nuget version of which I have on cmd? do.net Pack vs Nuget.exe Pack,版本降级报错 - Dotnet Pack vs Nuget.exe Pack, version downgrade error 是否可以以编程方式升级/降级到正在运行的ClickOnce应用程序的特定版本? - Is it possible to programmatically upgrade/downgrade to a specific version of a running ClickOnce app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM