In C++ to test the C# equivalent of string.IsNullOrEmpty() you should do: if(( p == NULL) || (*p == NULL))
To sprintf a wide string you should use "%ls" Note that creating a file during an immediate custom action is against Windows Installer methodology. The correct way should consist of 3 custom actions: 1) An immediate custom action that creates the CustomActionData for the deferred custom actions 2) Rollback custom action that will delete the file in case the installation is rolled back 3) Deferred custom action to create and write the file ----- Nir Bar Freelance Developer Mail: nir....@panel-sw.com Web: www.panel-sw.com - C++ On Windows, Linux and Embedded Platforms - WiX & InstallShield -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Writing-a-C-Custom-Action-Project-tp7599554p7599558.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users