Skip to content
⌘ NSIS Forum Archive

a problem about the uninstall.exe file ?

12 posts

JamesKiller#edited

a problem about the uninstall.exe file ?

Hi, I notice that I can install our Application properly, but somehow, after I restart my computer, I have seen that the uninstall exe file dispeared. So the shortcut link is invalid.
Don't know why?

here is some my code:

execwait '"$INSTDIR\uninst.exe" /S /R _?=$INSTDIR'

WriteUninstaller "$INSTDIR\uninst.exe"

is that a potential issue for my code?
JamesKiller#
and i used advanced build, then install.log file will be gone somehow after restarting computer.
That's really weird.
Where is my uninst.exe file?******

At the first time to install, it looks like everything is fine, after I restart the computer, the uninst.exe is still here.

when I try to reinstall, it will execute this line
execwait '"$INSTDIR\uninst.exe" /S /R _?=$INSTDIR'

then when I restart my computer, the uninst.exe is gone, i couldn't find it on the destination directory?

Anybody can tell me why???

urgent!!!!!
JamesKiller#
in my unistall section, i just do some clean up work, delete all the files ,registry key and stop service.
and i used like those lines:
Delete /REBOOTOK "$SMPROGRAMS\${PRODUCT_NAME}\Uninstall.lnk"
Delete /REBOOTOK "$INSTDIR\Data\*.*"
RMDir "$INSTDIR"
JamesKiller#
And then when I try to reinstall, at the very beginning of installation, i will use nsProcess to detect one process, I found the process is running, but I can't kill it ,either. and uninstall exe file (uninst.exe) was gone?
kichik#
The uninstaller deletes itself when executed with `_?=`. Copy the uninstaller somewhere else and run it from there.
JamesKiller#
Originally posted by kichik
The uninstaller deletes itself when executed with `_?=`. Copy the uninstaller somewhere else and run it from there.
That means I should copy unistall.exe file to a temp directory, then run it with the command like

uninst.ex _?=

is that right?
JamesKiller#
if I copy uninst.exe file under $INSTDIR, I can not use File command to copy this file to a temp folder.
which command should I use?

Copyfiles? or something else...