I am developing an installer for my application, using NSIS installer script, and the problem that I am facing is that if I am installing the same application, in different folders, and if I am using the uninstall.exe from the folder where I have installed first, it will install the last installed, actually both uninstall.exe will point to the location of the last installed.
This is how I am making the uninstall keys:
' ; Write the uninstall keys for Windows
WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANY}${APPNAME}" "DisplayName" "${APPNAME} (Remove only)"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANY} ${APPNAME}" "UninstallString" '"$INSTDIR\uninstall.exe"''
And the desired behaviour is that each "uninstall.exe" should point to the installation folder where it belongs. I know there is alread a similar question, but there is nothing helpful for me. (nsis uninstall problem) Any help/idea will be highly appreciated.