Archive: Problem with uninstaller (removing itself)


Problem with uninstaller (removing itself)
Hi guys,

I have troubles with my uninstaller.
When started it removes all files of $PROGRAMFILES\MyApp and should delete itself and the dir afterwards.

Now the strange thing ist: The uninstaller does remove itself in a strange way:

It removes itself, but Windows7 (x64) doesn't recognize this for approx 30 seconds. So the uninstaller fails on removing the directory because it seems not be empty.
20-30 seconds after the uninstaller finished the uninstaller is gone in windows explorer view as well. (Refresh doesn't help, but if I try to start the uninstaller again in this period windows says that the file isn't existing.)

So my trouble is that I can't remove the folder from my uninstaller.

I see this behaviour only on x64. The same thing on x86 is working as expected.
It is not related to $PROGRAMFILES/$PROGRAMFILES32/64 or something, the uninstaller reads the path and files to delete from the registry.

I already tried to set the uninstaller to $TEMP because it is locking itself? But it didn't help

Function un.onInit
SetOutPath "$TEMP"
ClearErrors
FunctionEnd

Thanks in advance from a clueless beginner!

DubFX


i'm guessing you might have an "error" in the order of the unintall operations, first you make everythin you have to do before the delete/rmdir instructions, and most important, if you are using any EXC instruction in the uninstall, replace it for ExecWait, in this way it will take longer to proced with the actions, but you have ensure that no deleting file is being used in any operation when you make de delete/rmdir instruction