Results 1 to 6 of 6

Thread: Sensing an installation is underway?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Sensing an installation is underway?

    I creating a SB script. I would like to ensure that two people are not
    installing simultaneously, or that an earlier installation didn't fail
    midway and not properly recover.

    I was going to just create a marker file when the install first began,
    then delete it at the end, but before I do that I thought I would
    check if there's some way to determine that a SB installation is
    underway in a given folder?

    Mike Hanson
    www.boxsoft.net

  2. #2

    Default Re: Sensing an installation is underway?

    Hi Mike,

    > I creating a SB script. I would like to ensure that two people are not
    > installing simultaneously, or that an earlier installation didn't fail
    > midway and not properly recover.
    >
    > I was going to just create a marker file when the install first began,
    > then delete it at the end, but before I do that I thought I would
    > check if there's some way to determine that a SB installation is
    > underway in a given folder?

    What about this method?

    http://www.lindersoft.com/forums/sho...7500#post77500

    Friedrich

  3. #3

    Default Re: Sensing an installation is underway?

    Thanks for the suggestion, but I don't think that will work, for two
    reasons:

    They could be running it on a client machine, pointed at a shared
    destination on a folder. The MUTEX would catch that.

    If an earlier installation died part way through, I want to know that
    it was underway and unfinished, so that the support staff can ensure
    that it's OK.

    That's why I was leaning toward using creating a file called
    "Installing!" in the destination folder. If the file existed, then
    they could not proceed with a subsequent installation. That file
    would be deleted near the end of the install script (after everything
    has safely completed).

    Mike Hanson
    www.boxsoft.net

  4. #4

    Default Re: Sensing an installation is underway?

    > Thanks for the suggestion, but I don't think that will work, for two
    > reasons:
    >
    > They could be running it on a client machine, pointed at a shared
    > destination on a folder. The MUTEX would catch that.
    >
    > If an earlier installation died part way through, I want to know that
    > it was underway and unfinished, so that the support staff can ensure
    > that it's OK.
    >
    > That's why I was leaning toward using creating a file called
    > "Installing!" in the destination folder. If the file existed, then
    > they could not proceed with a subsequent installation. That file
    > would be deleted near the end of the install script (after everything
    > has safely completed).

    Okay, understood. Then just create a, say, text file when you start the
    installation process ("Handle Text File Operation -> Create File"). Then
    you can use "If File/Folder..." to see if the file exists and to determine
    an installation is underway. At the end of the installation, use "Delete
    File(s)..." to remove your file.

    Do you think this could work?

    Friedrich

  5. #5

    Default Re: Sensing an installation is underway?

    Yup, I think that's the approach I'm going to take. I've framed it in
    now, and it seems to work. I create the flag file right before it
    begins installing files, and deletes it near the bottom.

    Within the script, after they choose the destination, I ensure that
    the flag file isn't there. Then I also check it once more after they
    hit hit "Go" on the "Ready" dialog.

    So far it seems to do the trick. Thanks, Friedrich.

    Mike Hanson
    www.boxsoft.net

  6. #6

    Default Re: Sensing an installation is underway?

    > Yup, I think that's the approach I'm going to take. I've framed it in
    > now, and it seems to work. I create the flag file right before it
    > begins installing files, and deletes it near the bottom.
    >
    > Within the script, after they choose the destination, I ensure that
    > the flag file isn't there. Then I also check it once more after they
    > hit hit "Go" on the "Ready" dialog.
    >
    > So far it seems to do the trick. Thanks, Friedrich.

    Perfect! You are welcome :-)

    Friedrich

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
  •