Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为什么我的卸载程序在nsis中不能正常工作?_Nsis - Fatal编程技术网

为什么我的卸载程序在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
只是卸载程序所在的目录,因此卸载程序本身不应在意

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