Thanks Mike, that's exactly what I needed. I have multiple cab files though,
and I will see if I can embed multiple cab files in the MSI.
If I set the Media element to point to the cab file and set the id on the media
element, I would have to specify this id in the DiskId for the File element,
right?
I want the installer to extract the files at install time from the embedded cab
files, and delete them during uninstall. I didn't get what you meant when you
said "If you don't want the installer to manage files in the CAB". Can you
please elaborate?
ThanksRavi
From: [EMAIL PROTECTED]: [EMAIL PROTECTED]; [EMAIL PROTECTED]: RE: [WiX-users]
Including cab file within MSI...Date: Tue, 26 Jun 2007 19:30:22 +0100
Do you mean just installing the CAB files as files, not extracting the
contents? If so, just use the File element to install the CAB.
If you want the contents of the CAB extracted, you can use the Media element to
reuse the existing CABs, as long as they are external to the installer. List
the files within the CAB as appropriate File elements, using the DiskId
attribute to specify the CAB that the files live in. Specify -reusecab on the
light command line to reuse the existing CABs.
If you want the CAB to be embedded in the installer, it may be possible to set
Media/@EmbedCab to 'yes'. I can’t recall offhand whether you can embed multiple
CABs in the same installer.
Finally, if you want to include the CAB in the installer and have it extracted
at install time, but you don’t want Windows Installer to manage the files in
the CAB, you need a custom action. I wouldn’t recommend this because you
obviously don’t get the benefits of automatic repair or install-on-first-use
(at least, not without extra work on your part).
--
Mike Dimmick
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ravikumar
GopinathSent: 26 June 2007 18:48To: [EMAIL PROTECTED]: [WiX-users] Including
cab file within MSI...
I have a couple of cab files which contains quite a few files within them. I
want to include the cab files in my installer and unpack the cab files during
install, and delete those unpacked files during uninstall. Is it possible to do
this? If so, how can I do it? ThanksRavi
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users