Hi Fracis, Another IDEA, Do you think putting the Custom Actions and InstallExecuteSequence in a <INCLUDE> element rather then Fragment would work and create a wxi file rather then wxs and using include to add it into the product.wxs.... something like this...
i actually have`t done this before, could anyone just tell me how to do this (i have idea this can be done but dont know how). wht changes to do in Product.wxs Thanks. Francis Kam wrote: > > > Hi Fracis, > > as you know the Fragment is generated on the fly so as the custom actions > and there id`s. So how can i ref the Custom action in product.wxs when the > ID`s are generated on the FLY. > > > Thanks > > Product.wxs has to reference the fragment somehow or another for it to get > picked up. Assuming that only the contents of the CA are generated on the > fly (i.e. you know the names beforehand) one way to do this is to use the > CustomActionRef element in your Product.wxs. > > -Francis > > > > On Tue, Sep 16, 2008 at 6:20 AM, BOB1981 <[EMAIL PROTECTED]> > wrote: > >> >> Hi All, >> >> I am generating this Wxs Fragment file and compiling it with my >> Product.wxs >> , it compiles and generates MSI package with no errors or warnings But >> when >> i run MSI and install/Uninstall the Features these custom actions are Not >> running At All, >> >> Then i thought to Run DARK against my MSI generated it , and i found >> there >> are no custom actions written in my MSI package, am i doing something >> wrong... >> Do i have to Keep all these Custom actions in Product.wxs.? reason why i >> am >> keeping them seprate in diffrent file becasue they are getting generated >> randomdly in my build process with the help of script. >> >> Please anybody any idea... >> >> thanks... >> >> <?xml version="1.0" encoding="utf-8"?> >> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> >> <Fragment> >> <InstallExecuteSequence> >> <Custom Action="sqlcmd.cmd0" >> After="InstallFiles"><![CDATA[&F_Database=3]]></Custom> >> <Custom Action="sqlcmd0" >> After="InstallFiles"><![CDATA[&F_Database=3]]></Custom> >> </InstallExecuteSequence> >> <CustomAction Id="sqlcmd.cmd0" Property="sqlcmd0" >> Value=""[SQLBINDIR]sqlcmd.exe" -S USDANRMMD1VW021 -i >> "[#_6568BA70B3684C9582EB6C64AFB29013]" -o >> c:\AddingFemaleRow.sql.log -U Build"/> >> <CustomAction Id="sqlcmd0" BinaryKey="WixCa" DllEntry="CaQuietExec" >> Return="check" Execute="commit" Impersonate="yes"/> >> </Fragment> >> >> </Wix> >> >> -- >> View this message in context: >> http://n2.nabble.com/Custom-Action-and-InstallExecuteSequence-dont-work-in-Fragment.-tp1092654p1092654.html >> Sent from the wix-users mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> WiX-users mailing list >> WiX-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users >> > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- View this message in context: http://n2.nabble.com/Custom-Action-and-InstallExecuteSequence-dont-work-in-Fragment.-tp1092654p1093221.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users