Results 1 to 5 of 5

Thread: Problem with delete function

Hybrid View

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

    Default Problem with delete function

    Hi Freidrich,

    Tried to use the DELETE FILE function and in my script I have a zip file
    that gets installed to a folder %_SB_ROOT%\yada\yada\yada\ and the contents
    are unzipped using the UNZIP function. After the files are unzipped I want
    to delete the file. No matter where I put the delete file function it
    wouldn't delete the file after it was unzipped. I tried using the
    %_SB_ROOT%\yada\yada\yada\zipfile.zip or even the C:\yada\yada\yada and it
    still wouldn't delete the zip file prior to ending the install (I moved the
    delete function to close to the end of the installer.) What's the secret?
    And shouldn't we be able to use the %_SB_ROOT% token?

    --

    Ben E. Brady
    Want MASSIVELY OUTRAGEOUS web disk space and bandwidth?
    300 GB disk space and 3000 GB transfer per month,
    http://www.servage.net/?coupon=CUST13495

    www.clariondeveloper.com
    www.singularvisionsoftware.com

    The information contained in the message above, as expressed by the author,
    is copyright 2007 by Ben E. Brady, All rights strictly reserved worldwide.
    The information contained in the message above may not be posted on any
    other information forum or web site without the express written permission
    of the author. All opinions expressed in the message are those of the author
    and are not necessarily shared by other members of the newsgroup and may or
    may not be in agreement with SoftVelocity, the host of this newsgroup.

  2. #2

    Default Re: Problem with delete function

    Hi Ben,

    If you display %_SB_ROOT%\yada\yada\yada\ in a "Display Message Box..."
    script function, what do you see?

    BTW, %_SB_ROOT% is automatically set when %_SB_INSTALLDIR% gets a (new)
    value.

    And what's the return value of your Delete File(s) function (just display
    %_SB_ERRORCODE using "Display Message Box...")

    Friedrich

    --
    Friedrich Linder
    Lindersoft
    www.lindersoft.com
    +1.954.252.3910

    "point. click. ship" - that's SetupBuilder 6.7
    Create Windows Vista ready installations in minutes

    -- Official Comodo Code Signing and SSL Certificate Partner

  3. #3

    Default Re: Problem with delete function

    Ben,

    I checked it on several different machines (including Vista) but cannot
    reproduce it here :-(

    The following unzips the files and deletes ben.zip:

    Unzip Archive "c:\consulting\ben.zip" to "c:\consulting"
    Delete Files "c:\consulting\ben.zip"

    Would it be possible for you to send me a small demo project?

    Thanks,
    Friedrich

  4. #4

    Default Re: Problem with delete function

    I'll see what I can put together...

    --

    Ben E. Brady
    Want MASSIVELY OUTRAGEOUS web disk space and bandwidth?
    500 GB disk space and 5000 GB transfer per month,
    http://www.servage.net/?coupon=CUST13495

    www.clariondeveloper.com
    www.singularvisionsoftware.com

    The information contained in the message above, as expressed by the author,
    is copyright 2007 by Ben E. Brady, All rights strictly reserved worldwide.
    The information contained in the message above may not be posted on any
    other information forum or web site without the express written permission
    of the author. All opinions expressed in the message are those of the author
    and are not necessarily shared by other members of the newsgroup and may or
    may not be in agreement with SoftVelocity, the host of this newsgroup.

  5. #5

    Default Re: Problem with delete function

    That would be great! Thank you.

    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
  •