Re: [WiX-users] GDI+ MergeModule
I put the condition under the component. Assume that is okay? However, I'm having problems with the condition.. candle.exe won't eat it. Here is what I use: Component Guid={..} Id=C_GDI Condition ![CDATA[(VersionNT=500) Or (NOT Version9X=) ]] /Condition File DiskId=1 Id=id1893 KeyPath=yes Name=gdiplus.dll Vital=yes src=gdiplus.dll / /Component And the error I get from candle is: candle.exe : error CNDL0001 : Cannot have ']]' inside an XML CDATA block. Any clues? Best regards. Schrieken, Rene wrote: I have no experience with Installshield so I cannot comment on that. And if you have a working merge module that will`save time but i really wonder what the benefit is if it is not findable and does not work as intended. This snippet might help you out. Disclaimer: I'm not good at conditions so maybe someone on the list can check and correct me. And I didn't check if GdiPlus.dll needs to be registered. If it does you need to add that as well, you can use tallow or heat to obtain the registry markup. Component Id=C_gdiplus DiskId=1 Guid=YourGuidHere File Id=F_gdiplus Name=GDIPLU_1.DLL LongName=GdiPlus.dll Source=GdiPlus.dll / Condition ![CDATA[(VersionNT=500) Or (NOT Version9X=) ]] /Condition /Component if you add the Component Id to your feature. I'm not sure if it is better to have the condition on the feature. But there is sure someone who want to educate me on that Rene -- View this message in context: http://www.nabble.com/GDI%2B-MergeModule-tf4316091.html#a12386104 Sent from the wix-users mailing list archive at Nabble.com. - 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
Re: [WiX-users] GDI+ MergeModule
Thanks, but still the same error.. Now my block is: Component Guid={..} Id=C_GDI Condition![CDATA[((VersionNT=500) Or (NOT Version9X=)) ![CDATA[/Condition File DiskId=1 Id=id1893 KeyPath=yes Name=gdiplus.dll Vital=yes src=gdiplus.dll / /Component And the error is still: candle.exe : error CNDL0001 : Cannot have ']]' inside an XML CDATA block. Thomas Leigh wrote: try replacing your ]] with ![CDATA[ ? -- View this message in context: http://www.nabble.com/GDI%2B-MergeModule-tf4316091.html#a12386542 Sent from the wix-users mailing list archive at Nabble.com. - 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
Re: [WiX-users] GDI+ MergeModule
Thanks for the suggestion, but it still gives the same error... Do I have to use CDATA to achieve what I want? The component is now: Component Guid={..} Id=C_GDI Condition![CDATA[VersionNT=500 Or NOT Version9X=]]/Condition File DiskId=1 Id=id1893 KeyPath=yes Name=gdiplus.dll Vital=yes src=gdiplus.dll / /Component And the error still: candle.exe : error CNDL0001 : Cannot have ']]' inside an XML CDATA block. More suggestions are very welcome! Brian Simoneau wrote: Try this in your condition ![CDATA[VersionNT=500 Or NOT Version9X=]] -Brian Simoneau -- View this message in context: http://www.nabble.com/GDI%2B-MergeModule-tf4316091.html#a12392946 Sent from the wix-users mailing list archive at Nabble.com. - 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
Re: [WiX-users] GDI+ MergeModule
Hi and thanks, I was thinking the same; that it was something outside this block that caused the problems. However, I don't have any more CDATAs or ]] in this WiX file. This file only contains a fragment, and I have another xml containing the product block. This file does not contain any CDATA either. The program is compiled and msi created using SCons, so there is a SConstruct file starting this. Unless this adds any extra outer xml behind the scenes there is no CDATA to be seen. Everything works fine when removing the condition line. You say that I probably don't need the CDATA. Do I get access to the parameters VersionNT and Version9X outside this? I'm sorry if I ask any stupid questions, but I'm new to WiX and haven't used CDATA before neither.. John Vottero wrote: I don't think you need the CDATA for your condition. Conditions are usually wrapped in CDATA because they often contain and characters. That being said, are you sure that the problem is actually in the fragment that you posted? Your CDATA looks fine to me, I'm thinking that maybe something else is messing up the parsing and makes candle think that you have a ]] in your CDATA. Do you have any other CDATAs in this WiX file? If you remove that condition line, does it compile? -- View this message in context: http://www.nabble.com/GDI%2B-MergeModule-tf4316091.html#a12393572 Sent from the wix-users mailing list archive at Nabble.com. - 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
Re: [WiX-users] Consensus about CRT/MCF merge modules?
Mike Dimmick-2 wrote: The VC2005 merge modules will install files to: - [WindowsFolder]System32 on Windows 9X and 2000; - The appropriate WinSxS folder on Windows XP, 2003 and Vista. They are not retargetable. I'm trying to put the dlls msvcp71.dll and msvcr71.dll in the installation folder. I merge them to my msi using the merge modules CRT and STL, as I've understood using the merge modules is the way to go (correct?). The problem is that I can't make the dlls be put in the installation folder - or some systemfolder where I can reach it. Inside the merge modules the directory is defined to TARGETDIR. And I've set the TARGETDIR to SourceDir as I've got an impression this is the common way it should be done. The That leaves me with something like: Directory Id=TARGETDIR Name=SourceDir Directory Id=ProgramFilesFolder Directory Id=CompanyDir Name=company Directory Id=INSTALLDIR Name=install_folder Merge Id='VC_STL' Language='0' src='$(var.msmdir_71)\VC_User_STL71_RTL_X86_---.msm' DiskId='1' / .. /Directory /Directory /Directory /Directory .. Feature Id='Complete' Level='1' MergeRef Id=VC_STL / .. /Feature I was hoping that the files in the STL merge module would be put into the INSTALLDIR together with the other files I define at the same Directory, but apparently this isn't the case. You say that they aren't retargetable. So, does this mean that I can't change the directory to put the dlls in? Then I need to make sure TARGETDIR is what I want it to be.. When installing they are put in the root (c:\). Is this what my WinSxS folder is set to then? I didn't think so.. Can I change the WinSxS? Do I have to say explicitally that I use WinSxs? Note that I'm new to WiX.. Best Regards Stian -- View this message in context: http://www.nabble.com/Consensus-about-CRT-MCF-merge-modules--tf3415449.html#a9571860 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users