Thanks all. It seems using c++ for Custom action would be a good choice. Currently in my C# code I am using functions like string.IsNullOrEmpty, string.Format, ServiceController. Are these functions available in C++. Also to get the parameter passed to msi, I have to use
string ip = session["IPADDRESS"]; What is it's equivalent in C++. Thanks, Sarvagya On Wed, Feb 18, 2015 at 6:18 PM, Phill Hogland <phogl...@rimage.com> wrote: > If you create a custom action with .Net, then a compatible version of .Net > must be installed. However you could deploy your msi as part of a bundle, > and use the bootstrapper to install .net first as part of your chain, > rather > than expecting the user to install .Net as a separate step. You cannot > "remove" a dependency on .Net from a managed assembly. > http://wixtoolset.org/documentation/manual/v3/bundle/ > > Certain versions of the OS ship with certain versions of .Net, so depending > on which OS you target you could make certain assumptions as to whether the > version of .Net you used is installed by default. I think a best practice > would be to provide a bootstrapper or gracefully test for the version of > .Net that you require, in the event someone removes the .Net that you > expect. Wix provides tools to add NetFx4x to a bundle's chain. > > Alternatively, and my preference, create the custom action using native > C++. > The wix source has good examples of doing this and the wix libraries > (wcautil and dutil) really simplify C++ development. > > > > > -- > View this message in context: > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-action-without-having-to-install-net-tp7599268p7599270.html > Sent from the wix-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- *sarvagya* ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users