Before creating a cabinet file, you must decide how you want to distribute your code.
If you want to install your code on the user's machine or if your code must run as trusted, use one of the following methods to create a cabinet file:
In both cases, code needs to be downloaded only once: on the first visit to the Web page. Subsequent downloads are required only when a newer version of the code becomes available. However, both methods require some permanent space on the user's disk.
If you just want to package your code in a cabinet file for faster downloading upon every visit to your Web page, you can use cabarc to create a cabinet without an .inf file. This provides the benefits of having a single, compressed file download instead of downloading individual class files. This method does not require that you sign the cabinet file if the code does not need to run as trusted. For more information, see Archiving Applets and Multimedia Files.
In all cases, you must use the appropriate HTML tags to reference the cabinet file in your Web page. See HTML Tags to Reference Signed Cabinet Files.