Re: [WiX-users] Including cab file within MSI...
I am still not able to get wxs to read the source files from a cab file. I have the following lines in my wxs file: Media Id='1' Cabinet='themes1.cab' EmbedCab='no' / Directory Id=directory1 DiskId=1 ShortName=ACCOUN_1 Name=Accounting Component Id=component0 DiskId=1 Guid=30548E66-C0DE-4990-B1DE-EEC3916E8D71 File Id=file2 Name=t12.jpg / File Id=file3 Name=t13.jpg / /Component /Directory If I do a cabarc -l on my cab file, i can see the contents with file names like Accounting\t12.jpg . But I get errors which says that it cannot find file \Accounting\t12.jpg. What am I doing wrong here? ThanksRavi From: [EMAIL PROTECTED]: [EMAIL PROTECTED]; [EMAIL PROTECTED]: RE: [WiX-users] Including cab file within MSI...Date: Tue, 26 Jun 2007 11:42:42 -0700 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: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[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? Thanks Ravi- 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
Re: [WiX-users] Including cab file within MSI...
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 Gopinath Sent: 26 June 2007 18:48 To: wix-users@lists.sourceforge.net Subject: [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? Thanks Ravi - 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
Re: [WiX-users] Including cab file within MSI...
Check out the Files / tag. As long as you don't make it permanent, during the uninstall process it will remove the files. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ravikumar Gopinath Sent: Tuesday, June 26, 2007 10:48 AM To: wix-users@lists.sourceforge.net Subject: [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? Thanks Ravi - 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
Re: [WiX-users] Including cab file within MSI...
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