chandan Koushik wrote: > > Is it possible to have a function [say > f1() ] in one file which can be called from a main wix file >
Sounds like you're after a Custom Action which calls a function from a dll. Have a look http://www.tramontana.co.hu/wix/lesson10.php here for a quick overview of how to set up the WiX source to invoke a custom action from a DLL. And bear in mind that if you wish to simply run the custom action when the installer is started then you would have to schedule it - instead of attaching it to a GUI component. chandan Koushik wrote: > > Based on the content of the function the corresponding features can be > installedon the system. Can this be achieved in Wix > Although I don't think you can inspect the return value of a function (however I may be talking nonsense) you CAN use http://msdn2.microsoft.com/en-us/library/aa370134.aspx MsiGetProperty() and http://msdn2.microsoft.com/en-us/library/aa370391.aspx MsiSetProperty() to set public WiX properties that you can then use as conditions to set the default level of a Feature - thereby achieving the same effect. -- View this message in context: http://www.nabble.com/Calling-a-function-of-one-file-into-a-wix-file.-tf4247450.html#a12123966 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