【问题标题】:Why my uninstaller is not working properly in nsis?为什么我的卸载程序在 nsis 中无法正常工作?
【发布时间】:2013-03-19 00:18:28
【问题描述】:

我编写了一个 nsis 脚本,如果用户选择与以前版本相同的文件夹,我需要提示用户以前安装的位置并卸载以前的版本。它工作正常。但假设用户选择的目录与uninstall.exe 出现问题。

Ex-suppose user install version 1.2 in folder a and then agian version 1.2 in folder B .
Than in every case the uninstall .exe is pointing to folderb not folder a.How can i solve this issue

【问题讨论】:

    标签: nsis


    【解决方案1】:

    在卸载程序中,$instdir 只是卸载程序所在的目录,因此卸载程序本身不应该关心。

    你说你是在提示用户,所以你已经知道旧安装的位置,所以你所要做的就是invoke the uninstaller with the special parameter,这样它就知道从哪里卸载...

    【讨论】:

      猜你喜欢
      • 2014-06-29
      • 2011-02-18
      • 2018-12-31
      • 1970-01-01
      • 2021-06-18
      • 2021-10-05
      • 1970-01-01
      • 2012-01-26
      • 1970-01-01
      相关资源
      最近更新 更多