为什么我的卸载程序在nsis中不能正常工作?

为什么我的卸载程序在nsis中不能正常工作?,nsis,Nsis,我已经编写了一个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 fold

我已经编写了一个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

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

你说你正在提示用户,所以你已经知道旧安装的位置,所以你所要做的就是让它知道从哪里卸载