问题标签 [uninstallation]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1669 浏览

windows-vista - Vista中如何防止程序可能已被卸载的消息?

在 Vista 或更新版本的 Windows 中卸载我们的应用程序(网络服务器)后,会出现一个错误消息框,显示“尝试卸载我的应用程序时发生错误。它可能已经被卸载。您想从程序和功能列表中删除我的应用程序吗?并且有“是”和“否”按钮。这发生在我的安装程序关闭之后和系统重新启动之前。(重启后,应用程序不再在 ARP 列表中,因此该错误信息是不必要的。)

这似乎与this重复,但消息框不同,仅在满足以下所有条件时才会发生:

  • 程序和功能控制面板已打开
  • 安装程序卸载 IIS(如果我们的安装程序一开始没有安装 IIS,则没有完成,有其他网站在使用它,或者用户在给出选项时选择不卸载它)
  • 在我们的安装程序中,用户同意立即重新启动。

我尝试在 HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Persisted 下的注册表中输入一个值,其中包含控制面板运行的安装程序副本的路径(它是基于早于 Windows 安装程序的 InstallShield 技术)。虽然注册表修复可以防止在执行添加/删除组件安装(或者,使用新的术语,修改安装)时出现的 UAC 消息,但它不会阻止这个。

我需要一种方法来防止错误消息,因为权力将其视为释放阻止程序。有一些变通方法可以阻止该消息(包括不卸载 IIS),但上级对变通方法不感兴趣;他们希望解决实际问题。(下一个版本的安装程序将使用最新的技术,所以谢天谢地,这是一次令人头疼的问题。)

编辑:在做了一些实验之后,我发现卸载 IIS 会在我们的安装程序退出并启动系统重新启动时使控制面板显示错误消息。(我们的安装程序通过带有 /norestart 选项的 pkgmgr.exe 命令行卸载 IIS——一旦准备好,我们的安装程序会在这种情况下负责重新启动。)

0 投票
1 回答
728 浏览

iphone - 在 iPhone 中自行卸载应用程序

是否有可能卸载在 iPhone 下运行的应用程序?在很多情况下,您希望应用程序自行卸载。

谢谢

0 投票
1 回答
1733 浏览

wix - 有条件地卸载 Wix 中的先前版本

我正在为用于调试嵌入式 ARM 内核 (OpenOCD) 的软件做一个安装程序,这个安装程序会自动删除以前的版本——这很简单。但是,有时由于各种(不)兼容性问题等原因,需要安装多个版本(每个版本都有自己的文件夹,因此这里没有冲突)。

我正在尝试创建一个安装程序,该安装程序将在功能树(或其他任何地方)中有一个选项来卸载(或不卸载)以前的版本。

基本上有这个安装顺序:

我知道 RemoveExistingProducts 可以通过在 RemoveExistingProducts 标签之间设置条件来设置条件,但是......条件应该是什么?有很多关于使功能有条件或关于操作系统版本和一些注册表项等条件的信息,但我没有找到任何关于“用户定义的条件”的有用信息......

假设在特征树中有这个元素:

如何根据此功能(或用户在安装期间可以选择的任何其他方法 - 问题框或单独的窗口或任何其他方法)使卸载以前的版本成为条件?

任何帮助表示赞赏(我和安装程序的用户),因为我在 Wix 和 XML 方面不是很好(我是嵌入式人员(;)

如果需要有关整个 Wix 文件的更多详细信息 - 请告诉我,我会发布相关信息。

0 投票
1 回答
121 浏览

blackberry - 黑莓应用卸载问题?

在我的黑莓应用程序中,我使用持久性、列表和线程来执行代码。代码如下:

UiApplication.getUiApplication().invokeLater(new Runnable(){

公共无效 setCategoryListContent() {

//

该应用程序正在使用线程执行持久性并设置列表的大小。应用程序运行良好并成功退出。

但是在卸载应用程序时,设备会重新启动,并且在重新启动应用程序后,对应用程序没有影响。应用程序仍然存在。

what is the problem in uinstalling the application which uses Threads,persistance and list? why is it being restarted without any user confirmation or alert? why is it not get being uninsall after restart?

please give the resolution for the given problem or any useful code snippet ,which would be appreciated.

Thanks,

Mishal Shah

0 投票
1 回答
154 浏览

windows - 您在哪里分配 .ico 文件以在 Windows 中显示程序的 Unisntall(在添加/删除程序中)?

我想在 Windows 添加/删除程序中分配一个显示在我的应用程序卸载程序旁边的图标。

我假设这将在卸载程序的注册表设置中,但我没有看到一个明显的分配位置。

0 投票
1 回答
1296 浏览

cvs - CVS - 清理 CVS 存储库

我刚刚在我的本地机器上设置了 CVS。但现在我需要清理它并将其提升到原始 CVS 安装的程度。我尝试搜索"uninstall cvs on ubuntu"但没有找到任何运气。

任何人都可以分享他/她对如何进行此操作的看法吗?

0 投票
1 回答
1436 浏览

wix - WIX 生成的 MSI 的自定义卸载程序

我有一个从 WIX 脚本生成的 MSI。

我的问题类似于这个问题

我想创建一个自定义卸载程序,而不是使用默认的 MSI 卸载程序。

我正在考虑添加一个在 PublishProduct 之后或 InstallFinalize 之前执行的自定义操作,该操作只是去修改指定要使用的卸载字符串的注册表项。

我不担心与 SMS 或类似产品的兼容性。

你对这种方法有什么看法?

0 投票
2 回答
2632 浏览

visual-studio-2010 - 如何卸载 Visual Studio 2010 Beta 1

正确卸载 VS 2010 Beta 1 的必要步骤是什么?

0 投票
1 回答
1452 浏览

windows-services - WiX uninstaller: restart service if present

Part of our app involves registering a plug-in to a third-party product. While the third-party service is running, it has our DLL loaded, so the files on disk are locked.

So when we uninstall our product, we need to begin by stopping the third-party service, and then restart it when we're done with the uninstall. (We also do the same stop/restart thing at install time, because if this is an upgrade, then the existing files are again locked.)

WiX has a command that handles the happy path, no problem:

I.e., stop the service at the beginning of both install and uninstall, and restart it at the end of both install and uninstall. So far so good.

The problem comes if the end-user uninstalls the third-party app first, and then tries to uninstall our app. Our app won't work with the third-party service, but if the user wants to uninstall them both, there's nothing to force them to do it in a particular order. However, if the third-party service is no longer installed, then our uninstaller:

  1. Tries to stop the third-party service, fails because the service no longer exists, decides the failure isn't important, and continues.
  2. Uninstalls our product.
  3. Tries to restart the third-party service, fails because the service no longer exists, decides this failure is important, and brings up an error dialog saying, "Service 'NameOfTheirService' (NameOfTheirService) failed to start. Verify that you have sufficient privileges to start system services." (Retry / Cancel)
  4. If the user clicks Retry, goto 3.
  5. If the user clicks Cancel, roll back, and un-uninstall.

In other words, WiX's error handling is wrong. Stopping a service should be failure-tolerant, and it is. Starting a service after install can be failure-intolerant; that's fine: fail my install if the service won't start. But starting a service after uninstall should be failure-tolerant, and it is not.

How can I restart a service after uninstall, without failing the uninstall if that service no longer exists?

0 投票
3 回答
1569 浏览

visual-studio - 无法卸载在 Visual Studio 中开发的服务

我有一个由服务和安装程序组成的 Visual Studio 项目。在开发过程中,我已经安装和卸载了 msi-package 至少 50 次,但上次我尝试卸载它时,我收到一条错误消息,提示“安装的产品与安装源不匹配”,如果我点击“确定”消息我收到以下信息:“找不到路径 xxxxxx.msi。” 所以,首先它不匹配,然后找不到。或者其他的东西。msi-package 确实存在于错误消息中给出的路径上(我已将真实路径和包名替换为 xxxxx)。

我安装服务的意思是双击“构建解决方案”功能创建的 msi 包,卸载我的意思是控制面板-> 添加或删除程序。

我在这个特定项目中使用 Windows XP 和 Visual Studio 2003。

我已经安装和卸载了这个和其他 Visual Studio 开发的服务数百或数千次,但以前从未遇到过这个问题。

我应该怎么办?