rasim Posted December 3, 2008 Author Share Posted December 3, 2008 Hello rasim. I try to use the function _7ZipGetArcOriginalSize, but it seems that it can't work whithout the function _7ZipOpenArchive and wen I try to use _7ZipOpenArchive, I have all the time an error returned. I try to use your example _7ZipFindFirst__7ZipFindNext_Example.au3, but it doesn't work anymore. Can you point me what I'm doing wrong or forget ?It appears that the error is occurs if archive file contains quotes. Func _7ZipOpenArchive($hWnd, $sArcName) ;$sArcName = '"' & $sArcName & '"' This causes the error Local $hArc = DllCall($hDLL_7ZIP, "hwnd", "SevenZipOpenArchive", "hwnd", $hWnd, "str", $sArcName, "int", 0) Return $hArc[0] EndFunc ;==>_7ZipOpenArchive My miss, sorry guys. Fixed. Updated first post. Link to comment Share on other sites More sharing options...
Tlem Posted December 4, 2008 Share Posted December 4, 2008 Yes, it's ok now. Thanks. To get the total size of the files in archive, I make a loop to get individual size and I add it in a variable. Do you know an easier way to do that ? Best Regards.Thierry Link to comment Share on other sites More sharing options...
rasim Posted December 4, 2008 Author Share Posted December 4, 2008 TlemTo get the total size of the files in archive, I make a loop to get individual size and I add it in a variable.Do you know an easier way to do that ?Seems no other way Link to comment Share on other sites More sharing options...
Tlem Posted December 4, 2008 Share Posted December 4, 2008 Many thanks. Best Regards.Thierry Link to comment Share on other sites More sharing options...
Tlem Posted December 4, 2008 Share Posted December 4, 2008 Many thanks. Best Regards.Thierry Link to comment Share on other sites More sharing options...
Slym Posted January 5, 2009 Share Posted January 5, 2009 Did someone actually manage to obtain the original size or something else to make a progression bar when extracting ? --------------------- [font="Franklin Gothic Medium"]LinuxLive USB Creator[/font], [size="3"]The only Linux Live USB creator with easy integrated virtualization (made with AutoIT)[/size] --------------------- Link to comment Share on other sites More sharing options...
rasim Posted January 6, 2009 Author Share Posted January 6, 2009 @SlymDid someone actually manage to obtain the original size or something else to make a progression bar when extracting ?See a _7ZIPExtractEx_Example_using_Callback.au3 example in the archive which you can download from the first post. Link to comment Share on other sites More sharing options...
Slym Posted January 6, 2009 Share Posted January 6, 2009 it's working well with a .7z but my software really need this for a .iso file of 700MB (Ubuntu ISOs). So maybe i will keep my old and totally inaccurate method (size of output is hard coded). --------------------- [font="Franklin Gothic Medium"]LinuxLive USB Creator[/font], [size="3"]The only Linux Live USB creator with easy integrated virtualization (made with AutoIT)[/size] --------------------- Link to comment Share on other sites More sharing options...
rasim Posted January 6, 2009 Author Share Posted January 6, 2009 it's working well with a .7z but my software really need this for a .iso file of 700MB (Ubuntu ISOs).So maybe i will keep my old and totally inaccurate method (size of output is hard coded). Sorry, but a 7-zip32.dll does not support the ISO format. Link to comment Share on other sites More sharing options...
Slym Posted January 6, 2009 Share Posted January 6, 2009 I saw that ... since 7-zip supports ISO i thought its DLL would. For my soft i'm actually using 7-Zip Console 4.60.0.0 but i did not find a way to make a real progress bar with it. --------------------- [font="Franklin Gothic Medium"]LinuxLive USB Creator[/font], [size="3"]The only Linux Live USB creator with easy integrated virtualization (made with AutoIT)[/size] --------------------- Link to comment Share on other sites More sharing options...
monoceres Posted January 6, 2009 Share Posted January 6, 2009 Is it possible to compress data in memory? The function I'm looking for would look something like: Func _7ZipCompressBuffer($Buffer,$SizeOfBuffer,ByRef $CompressedBuffer,ByRef $SizeOfCompressedBuffer) Oh and good job Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
rasim Posted January 7, 2009 Author Share Posted January 7, 2009 SlymI saw that ... since 7-zip supports ISO i thought its DLL would. For my soft i'm actually using 7-Zip Console 4.60.0.0 but i did not find a way to make a real progress bar with it.Trying to unpack the iso file using a console 7z.exe and got this message:@monoceresIs it possible to compress data in memory?I think no Link to comment Share on other sites More sharing options...
Slym Posted January 7, 2009 Share Posted January 7, 2009 rasim> try using last version (4.60) and be aware that there are still some bugs. --------------------- [font="Franklin Gothic Medium"]LinuxLive USB Creator[/font], [size="3"]The only Linux Live USB creator with easy integrated virtualization (made with AutoIT)[/size] --------------------- Link to comment Share on other sites More sharing options...
monoceres Posted January 7, 2009 Share Posted January 7, 2009 @monoceresI think no That's okay, I begun working on a zlib UDF that support it Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Slym Posted January 7, 2009 Share Posted January 7, 2009 that would be great --------------------- [font="Franklin Gothic Medium"]LinuxLive USB Creator[/font], [size="3"]The only Linux Live USB creator with easy integrated virtualization (made with AutoIT)[/size] --------------------- Link to comment Share on other sites More sharing options...
rasim Posted January 7, 2009 Author Share Posted January 7, 2009 rasim> try using last version (4.60) and be aware that there are still some bugs.Yes, you are right, but the 7-zip32.dll still not updated Link to comment Share on other sites More sharing options...
eXoRt Posted January 26, 2009 Share Posted January 26, 2009 (edited) Great work rasim! But I found an error using: opt("mustDeclareVars" , 1) Edited January 26, 2009 by eXoRt Link to comment Share on other sites More sharing options...
rasim Posted January 26, 2009 Author Share Posted January 26, 2009 (edited) eXoRtI don't think, that this is a critical error, just declare variables. Anyway thanks for this information. I will fix this later Edit:Fixed, updated first post. Edited January 26, 2009 by rasim Link to comment Share on other sites More sharing options...
eXoRt Posted January 26, 2009 Share Posted January 26, 2009 Thanks for fixing this so quickly! Link to comment Share on other sites More sharing options...
KaFu Posted January 26, 2009 Share Posted January 26, 2009 (edited) Rasim, a really nice UDF , thanks for that. Will surly integrate it into SMF ... one request though, could you please add a version or date to the UDF, so tracking updates would be easier? Edit: Taking a deeper look, should the _OnAutoitExit() func be called manually on Exit? Don't see it being done. Also you wrote IsDeclared("$hDLL_7ZIP"), I think it should be IsDeclared("hDLL_7ZIP"). Thanks again and Best Regards Edited January 26, 2009 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now