Archive: a problem about the uninstall.exe file ?


the uninstall.exe file is gone after I restart my computer?
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?


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!!!!!


What code is in your uninstall section?

Stu


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"


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?


The uninstaller deletes itself when executed with `_?=`. Copy the uninstaller somewhere else and run it from there.


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?

Yes.


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...


but when i copy it over to a temp folder, the problem still exists.


Copy it over to $TEMP using CopyFiles and execute it from there as well.


Thank you, Kichik. I did.