[WiX-users] Directories and Components
Hi There, I'm just wondering if there is an easier way to do this. You see, the product I'm installing has many directories containing files. My current understanding is that seeing 'Component' elements can not have 'Directory' elements as children, I must create a new component for every directory that is going to contain files. Then following this, I must obviously make sure I add every single component via 'ComponentRef' elements in my 'Feature'. So I end up with something like !-- Directory of say c:\Program Files\My App -- Directory ... Component Id='Component1' ... File ... / File ... / /Component !-- Directory of say c:\Program Files\My App\Dir1 -- Directory ... Component Id='Component2'... File ... / File ... / /Component /Directory !-- Directory of say c:\Program Files\My App\Dir2 -- Directory ... Component Id='Component3'... File ... / File ... / /Component /Directory /Directory Feature ... ComponentRef Id='Component1' / ComponentRef Id='Component2' / ComponentRef Id='Component3' / /Feature But I think it would be tidier and easier to maintain if I could do something like this: Component Id='MainComponent' Directory ... File ... / File ... / !-- Directory of say c:\Program Files\My App\Dir1 -- Directory ... File ... / File ... / /Directory !-- Directory of say c:\Program Files\My App\Dir2 -- Directory ... File ... / File ... / /Directory /Directory /Component Feature ... ComponentRef Id='MainComponent' / /Feature Is this possible? Ie. is there a way to reduce the number of components I must have? Or is the way I'm currently doing it the most efficient way to do multiple directories? Thank you, Ian. - 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] How to call an exe
I see you've already gone down the exe path somewhat, but I would like to point out that you can debug MSI DLLs - just not via the debugger (albeit maybe you can, as the links below made mention of info in MSI.chm, but I believe it is meant to be a lot of effort). You need to rely on other debugging methods such as logging. You could do this by just using message boxes if you don't require too much, or you could write a simple log file system, or finally you could output logging information to the normal msiexec.exe log mechanism. The last is my preference so here are some links for future reference: http://community.macrovision.com/archive/index.php?t-97544.html http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1665655SiteID=1 http://www.codeproject.com/install/msicustomaction.asp?df=100forumid=31 59exp=0select=2114040 Anyway, if you search for MsiRecordSetString and logging you should be well on your way. I've got a function that does exactly this in one of my custom action dlls, and it proved invaluable. As for you how to pass command line options dynamically for your exe in WiX, I've not done that. I wonder if you can just use [PROPERTYNAME] for the command line arguments and it interpolates them. Good luck, Ian. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of srinivas nomu Sent: Wednesday, 18 July 2007 7:33 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] How to call an exe I really fed up working with .dll as there is no debug available. Now I created an .exe with the same code. snip - 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
[WiX-users] Weekly Releases
Thanks Bob, I was unaware of that location. Question: Are they considered to be less stable than what is found here: http://sourceforge.net/project/showfiles.php?group_id=105970package_id= 16 ? Just wondering whether it's recommend to use or avoid those packages? Thanks, Ian. From: Bob Arnson [mailto:[EMAIL PROTECTED] Sent: Tuesday, 17 July 2007 1:05 AM To: Ian Stevenson Cc: Lewis G. Pringle, Jr.; wix-users@lists.sourceforge.net Subject: Re: [WiX-users] setup.exe has no icon? Ian Stevenson wrote: Where did you get 3.0.3106.0 from? Did you build it from source? I ask because I notice it's not available for download yet (I just checked) and as such it may not really be ready for release yet. Weekly releases of WiX are available at http://wix.sourceforge.net/releases/. -- sig://boB http://joyofsetup.com/ - 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] How to call a .dll from wix with arguments?
Hi Srini, The idea is that you don't explicitly pass any arguments to the function call (the only argument being the MSI handle that get's set by the installer), instead they are passed by a process of the installer setting up the necessary properties before the custom action is executed. Then within the DLL's function you make calls to MsiGetProperty() to get the arguments and do your processing. In a similar way, if you need some OUT arguments you use MsiSetProperty. If you google for MsiGetProperty you will find many examples (some not wix specific, but it does not matter), but here are some starting points for you: http://msdn2.microsoft.com/En-US/library/aa370134.aspx http://www.wixwiki.com/index.php?title=Simple_Custom_Action_Dll That should get you started, plus it seems there are some threads in the archive for this mailing list, so you should be able to find some tips searching through that as well. Good luck, Ian. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of srinivas nomu Sent: Tuesday, 17 July 2007 7:37 AM To: Mike Dimmick; wix-users@lists.sourceforge.net Subject: Re: [WiX-users] How to call a .dll from wix with arguments? Does this mean I have to use only one argument by combining those two arguments?. You also said that Your custom action will have to read any other information it needs from the install database using e.g. MsiGetProperty. What is meant by that?. Can you elaborate?. Any good examples?. Thank you very much. Srini - 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] setup.exe has no icon?
Where did you get 3.0.3106.0 from? Did you build it from source? I ask because I notice it's not available for download yet (I just checked) and as such it may not really be ready for release yet. So maybe that is why there is no icon yet, maybe you need to send something to wix-dev instead. :? Cheers, Ian. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lewis G. Pringle, Jr. Sent: Friday, 13 July 2007 11:02 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] setup.exe has no icon? Folks: The setup.exe built using setupbld.exe in the latest (3.0.3106.0) version of WIX doesn't include an application icon. Most other installers appear to have some kind of installer icon. Is this choice intentional? I realize I can make a manual copy of the setup.exe 'stub', and put an icon in myself, and then use that stub. But is there some reason WIX doesn't provide an icon for the setup bootstrapper? Is there some reason its not made more easy to override the icon (or provide one if there is none)? Thanks, Lewis. - 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