View Full Version : Prevent UNINSTALL, when Service still running?
NewsArchive
10-04-2018, 07:38 AM
Hello Friedrich and all others,
my program suite consists of four folders: 3 x programs each and 1 x data.
One of the programs is a webserver, running as a Windows Service.
I ran the UNINSTALL.exe, generated by SetupBuilder, while the service was
active. As a result I got the message, that one of my data-files is opened, in
use and can't be removed. Messagetext in english, buttontext in german, asking
to retry or continue.
When I continue, shortly after I get the final message "program remove
completed" (or something like than in other words)
However, as expected, the webserver.exe and its DLLs plus the recently opened
data-tables remain on my disk.
Is there any way to prevent the uninstaller, if _ANY_ file is in use, even more
an EXE and even more more when a Windows Service is instralled and running?
Regards,
Wolfgang Orth
www.odata.de
Please note:
From time to time it happens, that I overlook a reply to my postings.
Please don't be angry.
In case of an emergency, try to contact me via mail.
Bitte beachten:
Von Zeit zu Zeit passiert es mir, dass ich Antworten auf meine Postings übersehe.
Bitte nicht böse sein.
Im Notfall bitte Kontakt per Mail versuchen.
.
NewsArchive
10-04-2018, 07:41 AM
Wolfgang,
> Is there any way to prevent the uninstaller, if _ANY_ file is in use, even more
> an EXE and even more more when a Windows Service is instralled and running?
Sounds like you need a custom uninstall and a couple of script
function calls. See the attached screen capture.
Lee White
NewsArchive
10-04-2018, 07:41 AM
EXACTLY WHAT LEE SAID <EWLS> ;-)
Friedrich
NewsArchive
10-04-2018, 07:42 AM
>EXACTLY WHAT LEE SAID <EWLS> ;-)
I will do what Lee said <IwdwLs> =8-)
(at least I will try to)
Regards,
Wolfgang Orth
www.odata.de
Please note:
From time to time it happens, that I overlook a reply to my postings.
Please don't be angry.
In case of an emergency, try to contact me via mail.
Bitte beachten:
Von Zeit zu Zeit passiert es mir, dass ich Antworten auf meine Postings übersehe.
Bitte nicht böse sein.
Im Notfall bitte Kontakt per Mail versuchen.
NewsArchive
10-04-2018, 07:42 AM
Exactly what Lee said!
The UnInstaller works great!
However, when I removed the databaseserver from being a Windows Service, the
file zlibwapi.DLL is still aktive, up and running. The databaseserver and all
its DLLs are not removed then. I will catch that file also and suggest to
restart the machine between stopping the Windows Service and the uninstall.
The reason is, that Windows takes a few moments, before it has remove the
server program from the TaskManagers list, when the Windows Service is removed.
if the Admin would be patiuoent for 30 to 40 seconds, then this zlibwapi.DLL
would not be active anymore too.
Anyway:
SetupBuilder is a fantastic tool. It does all what I need and even more!
You can quote me on that.
Regards,
Wolfgang Orth
www.odata.de
Please note:
From time to time it happens, that I overlook a reply to my postings.
Please don't be angry.
In case of an emergency, try to contact me via mail.
Bitte beachten:
Von Zeit zu Zeit passiert es mir, dass ich Antworten auf meine Postings übersehe.
Bitte nicht böse sein.
Im Notfall bitte Kontakt per Mail versuchen.
NewsArchive
10-04-2018, 07:43 AM
Wolfgang,
> Exactly what Lee said!
Of course <g> :-)
> The UnInstaller works great!
>
> However, when I removed the databaseserver from being a Windows Service,
> the file zlibwapi.DLL is still aktive, up and running. The databaseserver
> and all its DLLs are not removed then. I will catch that file also and
> suggest to restart the machine between stopping the Windows Service and
> the uninstall.
>
> The reason is, that Windows takes a few moments, before it has remove the
> server program from the TaskManagers list, when the Windows Service is
> removed.
> if the Admin would be patiuoent for 30 to 40 seconds, then this
> zlibwapi.DLL would not be active anymore too.
What about using the Sleep() function and give Windows more time. And do
a check for "locked" file(s) in a LOOP with a Sleep command. For example,
LOOP 10 times, always give Windows, say, 4 seconds to release the resources.
If you need help with such a LOOP, just let me know.
> Anyway:
>
> SetupBuilder is a fantastic tool. It does all what I need and even more!
>
> You can quote me on that.
Thank you SO MUCH !!!
Friedrich
NewsArchive
10-04-2018, 07:44 AM
>
>What about using the Sleep() function and give Windows more time. And do
>a check for "locked" file(s) in a LOOP with a Sleep command. For example,
>LOOP 10 times, always give Windows, say, 4 seconds to release the resources.
>If you need help with such a LOOP, just let me know.
Well, it seems to take up to a minute. But yes, that would be still possible
with the correct wording in the messagebox. I will update it here and do so
playing.
Another suggestion: Could the font-size be a bit bigger in the messagebox? Or
maybe each selectable?
>
>> Anyway:
>>
>> SetupBuilder is a fantastic tool. It does all what I need and even more!
>>
>> You can quote me on that.
>
>Thank you SO MUCH !!!
Actually I wanted to write "is a huge beast", but.... well, I was not sure...
<flöt><flöt> (hoffenlich kommen die Umlaute korrekt)
Regards,
Wolfgang Orth
www.odata.de
Please note:
From time to time it happens, that I overlook a reply to my postings.
Please don't be angry.
In case of an emergency, try to contact me via mail.
Bitte beachten:
Von Zeit zu Zeit passiert es mir, dass ich Antworten auf meine Postings übersehe.
Bitte nicht böse sein.
Im Notfall bitte Kontakt per Mail versuchen.
NewsArchive
10-04-2018, 07:44 AM
Wolfgang
> Another suggestion: Could the font-size be a bit bigger in the messagebox?
> Or maybe each selectable?
The font-size in message boxes comes directly from the Windows system.
Friedrich
NewsArchive
10-04-2018, 07:45 AM
>Wolfgang,
>
>> Is there any way to prevent the uninstaller, if _ANY_ file is in use, even more
>> an EXE and even more more when a Windows Service is instralled and running?
>
>Sounds like you need a custom uninstall and a couple of script
>function calls. See the attached screen capture.
Thank you for this, Lee!
I already use this "in-use-file" stuff for the installer, because it can be
used for updates also.
Did not know that I can do a customized uninstaller. Actually it would not be
needed, just a "Delete that friggin' service and then purge all 4 directories"
would have been enough, but I try to be polite and offer something for those,
who do not dare.
Setupbuilder is a huge beast and some people know sheer everything about it! I
am impressed.
Thanks again!
Regards,
Wolfgang Orth
www.odata.de
Please note:
From time to time it happens, that I overlook a reply to my postings.
Please don't be angry.
In case of an emergency, try to contact me via mail.
Bitte beachten:
Von Zeit zu Zeit passiert es mir, dass ich Antworten auf meine Postings übersehe.
Bitte nicht böse sein.
Im Notfall bitte Kontakt per Mail versuchen.
NewsArchive
10-04-2018, 07:49 AM
Lee,
the customized UnInstaller works great now here!
Thanks a lot!
Regards,
Wolfgang Orth
www.odata.de
Please note:
From time to time it happens, that I overlook a reply to my postings.
Please don't be angry.
In case of an emergency, try to contact me via mail.
Bitte beachten:
Von Zeit zu Zeit passiert es mir, dass ich Antworten auf meine Postings übersehe.
Bitte nicht böse sein.
Im Notfall bitte Kontakt per Mail versuchen.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.