Click here to Skip to main content
11,703,505 members (71,457 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# .NET
Hello all,

I want to create cab file which can be used in ie.

What i have done so far.
1. Created class library from Create ActiveX in .NET Step by Step[^]
2. Then added installer class in my project inorder to create setup.exe.
3. To create setup.exe i added dll during steps of creating setup.
Other than my original dll i have not added anything.
3. I downloaded cabinet sdk from internet and used command
cabarc.exe n OurActiveX.inf setup.exe

Its giving me error
FCIAddfile() failed: code 1[Failure opening file to be stored in cabinet.]

Please help me resolve this i am pissed of with this.

Thanks in Advance.
Posted 2-Jan-14 20:23pm
CHill60 at 3-Jan-14 16:11pm
Could the file be open in something else?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

If you use command like this:
cabarc.exe n OurActiveX.inf setup.exe
then the most likely reason is that you did not specify path to file which you want to add to cab file.

Have a look here: Cabarc Syntax[^]
sunil mali at 11-Jan-14 7:02am
Thanks i got my answer my command was wrong
it looks like it should be extension .ini instead of .inf.
In blog its written as .inf.
Maciej Los at 11-Jan-14 9:04am
Please, mark this answer as solution (green button) - formally.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Maciej Los 550
1 OriginalGriff 460
2 Sergey Alexandrovich Kryukov 400
3 Andy Lanng 159
4 Matt T Heffron 115
0 OriginalGriff 8,519
1 Sergey Alexandrovich Kryukov 7,667
2 CPallini 4,987
3 Maciej Los 4,686
4 Mika Wendelius 3,566

Advertise | Privacy | Mobile
Web01 | 2.8.150819.1 | Last Updated 5 Jan 2014
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100