Re: Files not uninstalled
Chris,
I have uploaded a demo for you:
http://www.lindersoft.com/projects/support20130909A.zip
Unzip the files into a temporary folder, open the project "Install FormatSites Utility LS.sb8" and compile/run it. It will install two dummy files into "C:\ABC6\TEMP_UTIL_X". Uninstall works without any problem. Tested on Windows XP, Windows 7 (x64) and Windows 8.1 (x64).
Does this demo work for you?
Friedrich
Re: Files not uninstalled
BTW, just a quick suggestion. You should NOT create a Desktop shortcut for the Uninstall. This is against the Windows development guidelines.
Friedrich
Re: Files not uninstalled
Hi Friedrich
Many thanks. The demo "almost" works :-)
The files are removed, but the empty folder remains.
So now I will try and work out what is different about "your" install .SB8 and mine.
Re_ "against Windows guidelines"..... Yes, yes. But it's easier to tell this client (who does not understand computers) to Click on this item to run the program. And then click on the other icon. Rather than talk them through going to Control Panel and uninstalling this program -- trying not to uninstall other similar sounding programs by mistake......
Be assured MOST of my installs do not have an uninstall desktop shortcut :-)
Thanks again for your quick replies.
Chris
3 Attachment(s)
Re: Files not uninstalled
You are welcome, Chris :)
BTW, I would suggest to change it to this "method":
http://www.lindersoft.com/projects/support20130909B.zip
If the "empty" folder remains and the installer created that folder then it's a permission problem. This happens when you start an uninstall from a Shortcut and the shortcut action "locks" the folder for some time. You can try to set the "working folder" in the Shorctut, but there is no guarantee that it always works. The uninstall should only be launched from the "Programs and Features" control panel.
Friedrich
1 Attachment(s)
Re: Files not uninstalled
Sorry, "Working Directory" should be %TMPWINDIR% and NOT %TMPDIR% in your case.
Friedrich
Re: Files not uninstalled
Re: Files not uninstalled
Ha !!
I could not see any difference between your .SB8 and mine (I went through mine and changed all things like "Backup replaced files" etc to be the same as yours. Mine still did not remove files when I used uninstall.
So I renamed my files (just added a 2 at the end). And renamed the .EXE that get produced. Now everything works perfectly. Even the folder gets removed (from desktop shortcut or from Control Panel remove).
I shall go and worry about the next problem...... :-)
Re: Files not uninstalled
:) I'm glad that it's working fine now!
and Yes - I do hate computers! <g>
Friedrich