Proph Posted January 25, 2007 Share Posted January 25, 2007 (edited) I'm wanting to try to make an autoit script that utalizes cabinet.dll for creating and expanding .cab files or .??_ files. Has anyone messed around with this before? Can someone give me some tips or show me some code on how to use this dll? Would I use dllcall functions for this?Thanks for any tips you can give me. Here is some info I found about cabinet.dllhttp://www.delphi3000.com/articles/article_1820.asp Edited May 28, 2007 by Proph Link to comment Share on other sites More sharing options...
Vier Posted April 26, 2007 Share Posted April 26, 2007 I have found another dll for cab file. Perhaps it's more simple to use : http://www.lightship.co.jp/cab/index.html Link to comment Share on other sites More sharing options...
Zedna Posted April 26, 2007 Share Posted April 26, 2007 Simpler solution is to use some external console application.For extract use:RunWait('extract /y /e /l "' & @ScriptDir & '" file.cab',@ScriptDir,@SW_HIDE)Look here about such MakeCab utility from XP Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
flyingboz Posted April 26, 2007 Share Posted April 26, 2007 (edited) Simpler solution is to use some external console application.simpler to code, but harder to maintain, you have to rely on fileinstall, and recompiling when the external tool is updated, etc. Edited April 26, 2007 by flyingboz Reading the help file before you post... Not only will it make you look smarter, it will make you smarter. Link to comment Share on other sites More sharing options...
Zedna Posted April 26, 2007 Share Posted April 26, 2007 (edited) simpler to code, but harder to maintain, you have to rely on fileinstall, and recompiling when the external tool is updated, etc.Then make some INI file with parametres for add,exctract and so on ...and you needn't recompile your script.Instead fileinstall just have external EXE with your script. Edited April 26, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Proph Posted May 28, 2007 Author Share Posted May 28, 2007 (edited) Hmmm... i have searched for a while for a way. But I am not too good with dllcalls in autoit to know what to do. I'm gonna try again and see what I come up with. Maybe I'll get somewhere with it. I do not want to use makecab or expand.exe anymore. Those are what I use currently. As far as I know makecab does not allow you to create cabs with sub dirs... but cabinet.dll does. Edit: I tried... but I get lost in this dllcall stuff. I went ahead and added a doc to the thread as an attachment above. It has all info needed about cabinet.dll Edited May 28, 2007 by Proph 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