PDA

View Full Version : Problem with delete function



NewsArchive
01-13-2008, 01:07 PM
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.

NewsArchive
01-13-2008, 01:08 PM
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

NewsArchive
01-13-2008, 01:08 PM
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

NewsArchive
01-13-2008, 01:09 PM
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.

NewsArchive
01-13-2008, 01:09 PM
That would be great! Thank you.

Friedrich