renue
1st December 2009 08:25 UTC
Add folder to Cab
HI All,
I am creating a cab component for My ActiveX Control. In that cab component I am adding few installer that needs to run on the client browser at the time of requesting for ActiveX control. For One installer I need Complete folder in the Cab. Could some one help me out in adding a complete folder to Cab. I tried using Cabarc tool. But i could Not find any solution.
thanks in advance,
Renu
kichik
1st December 2009 08:40 UTC
Seems like -p should do it. Check this page out for more details (third result on Google for "cabarc"):
http://www3.hi.is/~snorri/SDK-docs/tools/tools008.htm
renue
1st December 2009 09:18 UTC
ok. but the thing is I have around 100 files in that Folder and also few sub folders in that folder so if I will use this command to add folder in cab then I will have to Add all these files manually, Isn't it possible to add the Folder directly instead of adding each file manually.
kichik
1st December 2009 09:27 UTC
Write a script for it using Python or even NSIS.
renue
1st December 2009 09:31 UTC
Ok . Thanks alot. As i am not much comfortable with scripts, I will Write application in c# that will write the name of all files in that folder in a text file and then I will use text of newly created file to run the command. Will it be ok?
once again Thanks alot
renue
1st December 2009 09:50 UTC
Hi Kichik,
I created a text file that contain the list of all file and typed the following text on command prompt
"C:\Program Files\Microsoft Visual Studio 8\VC>cabarc -p -P F:\All\Folder\ n mycabNew.cab Text Of file"
Here text of my file contains almost 600 char and I beleive command prompt having some limitation on the number of text on it, So my complete text is not getting paste here. is there any direct way to add Folder in cab file?
kichik
1st December 2009 09:51 UTC
cabarc support file lists, probably with the @syntax or something similar. Check out the page I linked to in my first post.
renue
2nd December 2009 13:36 UTC
thanks alot I could add the Files to My cab and when i extract it it is looking proper but when I run my ActiveX Control to run few file from that folder, Nothing happens. :(