Why my uninstaller is not working properly in nsis?

淺唱寂寞╮ 提交于 2019-12-25 02:53:48

问题


I have written a nsis script in which i need to prompt the user where there was previous installation and uninstall the previous version if user select the same folder as previous version.It is working fine.But suppose user choose different directory than the uninstall.exe is giving problem.

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

回答1:


In the uninstaller, $instdir is just the directory the uninstaller is in so the uninstaller itself should not care.

You say you are prompting the user, so you already know the location of the old install so all you have to do is to invoke the uninstaller with the special parameter so it knows where to uninstall from...



来源:https://stackoverflow.com/questions/15474284/why-my-uninstaller-is-not-working-properly-in-nsis

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!