Results 1 to 10 of 10

Thread: Prevent UNINSTALL, when Service still running?

  1. #1

    Default Prevent UNINSTALL, when Service still running?

    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.







    .

  2. #2

    Default Re: Prevent UNINSTALL, when Service still running?

    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
    Attached Images Attached Images    

  3. #3

    Default Re: Prevent UNINSTALL, when Service still running?

    EXACTLY WHAT LEE SAID <EWLS> ;-)

    Friedrich

  4. #4

    Default Re: Prevent UNINSTALL, when Service still running?

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

  5. #5

    Default Re: Prevent UNINSTALL, when Service still running?

    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.

  6. #6

    Default Re: Prevent UNINSTALL, when Service still running?

    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

  7. #7

    Default Re: Prevent UNINSTALL, when Service still running?

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

  8. #8

    Default Re: Prevent UNINSTALL, when Service still running?

    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

  9. #9

    Default Re: Prevent UNINSTALL, when Service still running?

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

  10. #10

    Default Re: Prevent UNINSTALL, when Service still running?

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •