Thanks Sascha. Yes, I'm looking at it and having this piece of code which doesn't work: <Component Id="Component_Gacutil_EXE" Guid="..."> <File Id="GacutilExe" Source="gacutil.exe" KeyPath="yes" Checksum="yes"/> </Component> <Component Id="Component_DotNet_CLR" Guid="..."> <File Source="CLR.dll" KeyPath="yes" Checksum="yes"/> </Component> ... <CustomAction Id="RunGacutilExeOnInstall" FileKey="GacutilExe" ExeCommand='/i "[INSTALLLOCATION]CLR.dll"' Return="asyncWait" /> <CustomAction Id="RunGacutilExeOnUninstall" FileKey="GacutilExe" ExeCommand='/u "[INSTALLLOCATION]CLR.dll"' Return="asyncWait" /> <InstallExecuteSequence> <Custom Action="RunGacutilExeOnInstall" After="InstallFiles">NOT Installed</Custom> <Custom Action="RunGacutilExeOnUninstall" After="InstallInitialize">Installed</Custom> </InstallExecuteSequence> ... <ComponentRef Id="Component_DotNet_CLR" /> <ComponentRef Id="Component_Gacutil_EXE" />
Basically, a few problems: 1. During installation, nothing happened. 2. During uninstall, I'd like to run "gacutil.exe /u CLR.dll". However, since it never got a chance to run in installation, I guess it never got run in uninstall. Does the code look alright or not? Could any of you please point out the errors? I really appreciate it. Thanks a lot, /Brian ________________________________ From: Sascha Beaumont <[email protected]> To: General discussion for Windows Installer XML toolset. <[email protected]> Sent: Thursday, May 28, 2009 10:07:49 PM Subject: Re: [WiX-users] WiX 3.0: How to run another program before launching the main application Check out the documentation, specifically "ShellExecute CustomAction" and "How To: Run the Installed Application After Setup" in WiX.chm On Sat, May 23, 2009 at 10:13 AM, little.forest <[email protected]> wrote: > We are using WiX version 3.0.4805.0. > > How to run another program before launching the main application? > We have a program called preutil.exe. We need to run it with some arguments > like this "preutil.exe /i /t /s". How to do it? > Thanks a lot, > /Brian > > > __________________________________________________________________ > Looking for the perfect gift? Give the gift of Flickr! > > http://www.flickr.com/gift/ > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://www.creativitycat.com > _______________________________________________ > WiX-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users __________________________________________________________________ Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

