【问题标题】:NSIS Identifying multiple uninstallersNSIS 识别多个卸载程序
【发布时间】:2011-07-25 10:03:59
【问题描述】:

我有一个程序的多个实例,每个实例都有自己的安装目录和自己的卸载程序副本。安装程序有一个由用户输入的名为“$instance”的字段,该字段记录在注册表中,如下所示:

HKLM "软件\@vendor.name@\@product.name@@product.version@\installs\$instance"

效果很好。此键包含安装的根路径。

我想卸载与执行的卸载程序相对应的程序实例,但卸载部分不保留用户在安装时输入的变量“$instance”。

有什么想法吗?

例子:

Section Uninstall
    ; THIS does not display the instance name. :(
    MessageBox MB_OK "$instance"
SectionEnd

【问题讨论】:

    标签: nsis uninstallation


    【解决方案1】:

    您可以将custom data 存储在uninstaller.exe 的末尾而不破坏CRC 检查,或者将其存储在与卸载程序相同的目录中的.ini 中(我一直这样做,只需将ini 命名为文件“uninstaller.dat”或类似的东西,这样用户就不会弄乱它)

    【讨论】:

      猜你喜欢
      • 2017-11-15
      • 2012-01-26
      • 2012-02-12
      • 2011-02-18
      • 2016-06-30
      • 2014-09-13
      • 2014-09-27
      • 2013-02-10
      • 2015-10-24
      相关资源
      最近更新 更多