I don't have an answer for #1, but as for reading the log, I've found wilogutl.exe (from the MSI SDK) to be useful. http://msdn.microsoft.com/en-us/library/aa372811(VS.85).aspx
There is a Annotated Windows Installer Log word document here: http://blogs.technet.com/richard_macdonald/archive/2007/04/02/How-to-Interpret-Windows-Installer-Logs.aspx. The word document highlights in detail what is occurring. On Fri, May 29, 2009 at 6:32 PM, little.forest <little.for...@ymail.com>wrote: > Hi, > > I'd like to ask this question for a while. It's not that urgent(so I make > it as P2 question - Priority 2) but I still would like to know: > 1.. How to debug in WiX? I mean, is there a way to do code debugging in WiX > by setting break points or step into the code etc. - just like what we do > when debugging C++ code in the IDEs such as Visual Studio? Is there > any simulation tool that we can use? > 2. If the answer is NO for the question #1, then I guess we'll have to read > the log file, right? But most of time, this is not so convenient. You know, > to verify a behaviour during uninstallation, for example, I'll have to > install it, then uninstall it. This makes the development cycle longer. > 3. If we have to read log file, how to read it? > For instance, I have this piece of code below. What I hope it does is to > install gacutil.exe and CLR.dll, then run "gacutil..exe /i CLR.dll". But it > does not 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" /> > > <InstallExecuteSequence> > <Custom Action="RunGacutilExeOnInstall" After="InstallFiles">NOT > Installed</Custom> > </InstallExecuteSequence> > > > Then I had some log about this: > Line493: MSI (s) (E4:A4) [17:55:52:027]: Component: Component_Gacutil_EXE; > Installed: Absent; Request: Local; Action: Local > ... > Line662: MSI (s) (E4:A4) [17:56:03:058]: Doing action: RunGacutilExe > Line663: MSI (s) (E4:A4) [17:56:03:058]: Note: 1: 2205 2: 3: ActionText > Line664: Action 17:56:03: RunGacutilExe. > Line665: Action start 17:56:03: RunGacutilExe. > Line666: MSI (s) (E4:A4) [17:56:03:058]: Doing action: CreateShortcuts > Line667: MSI (s) (E4:A4) [17:56:03:058]: Note: 1: 2205 2: 3: ActionText > Line668: Action 17:56:03: CreateShortcuts. Creating shortcuts > Line669: Action ended 17:56:03: RunGacutilExe. Return value 1631. > Line670: Action start 17:56:03: CreateShortcuts. > Line671: CreateShortcuts: Shortcut: Creating shortcuts > Line672: Action ended 17:56:03: CreateShortcuts. Return value 1. > Line673: MSI (s) (E4:A4) [17:56:03:074]: Doing action: WriteRegistryValues > Line674: MSI (s) (E4:A4) [17:56:03:074]: Note: 1: 2205 2: 3: ActionText > Line675: Action 17:56:03: WriteRegistryValues. Writing system registry > values > Line676: Action start 17:56:03: WriteRegistryValues. > Line677: WriteRegistryValues: Key: Writing system registry values, Name: , > Value: > Line678: Action ended 17:56:03: WriteRegistryValues. Return value 1. > Line679: MSI (s) (E4:A4) [17:56:03:074]: Doing action: StartServices > Line680: MSI (s) (E4:A4) [17:56:03:074]: Note: 1: 2205 2: 3: ActionText > Line681: Action 17:56:03: StartServices. Starting services > Line682: Action start 17:56:03: StartServices. > Line683: StartServices: Service: Starting services > Line684: Action ended 17:56:03: StartServices. Return value 1. > ... > Line759: MSI (s) (E4:A4) [17:56:03:246]: Executing op: > ComponentRegister(ComponentId={33D5205E-326B-4288-8FD1-B45058DA5388},KeyPath=C:\Program > Files\Company\Product\gacutil.exe,State=3,,Disk=1,SharedDllRefCount=0,BinaryType=0) > Line760: 1: {E9EF9113-2AEE-47FD-91D0-86E5918524A4} 2: > {33D5205E-326B-4288-8FD1-B45058DA5388} 3: C:\Program > Files\Company\Product\gacutil.exe > ... > Line1654: MSI (s) (E4:A4) [17:56:05:949]: Executing op: > FileCopy(SourceName=gacutil.exe,SourceCabKey=GacutilExe,DestName=gacutil.exe,Attributes=1536,FileSize=106496,PerTick=32768,,VerifyMedia=1,,,,,CheckCRC=0,Version=3.5.30729.1,Language=1033,InstallMode=58982400,,,,,,,) > Line1655: MSI (s) (E4:A4) [17:56:05:949]: File: C:\Program > Files\Company\Product\gacutil.exe; To be installed; Won't patch; No existing > file > Line1656: MSI (s) (E4:A4) [17:56:05:949]: Source for file 'GacutilExe' is > compressed > Line1657: InstallFiles: File: gacutil.exe, Directory: C:\Program > Files\Company\Product\, Size: 106496 > Line1658: MSI (s) (E4:A4) [17:56:05:949]: Note: 1: 2318 2: C:\Program > Files\Company\Product\gacutil.exe > Line1659: MSI (s) (E4:A4) [17:56:05:949]: Note: 1: 2360 > Line1660: MSI (s) (E4:A4) [17:56:05:949]: Note: 1: 2360 > Line1661: MSI (s) (E4:A4) [17:56:05:949]: Note: 1: 2360 > Line1662: MSI (s) (E4:A4) [17:56:05:949]: Executing op: > FileCopy(SourceName=fc_gvihl.dll|Gma.UserActivityMonitor.dll,SourceCabKey=Gma.UserActivityMonitor.dll,DestName=Gma.UserActivityMonitor.dll,Attributes=1536,FileSize=28672,PerTick=32768,,VerifyMedia=1,,,,,CheckCRC=0,Version=1.0.0.0,Language=0,InstallMode=58982400,,,,,,,) > ... > > So how to read these log? > For example, for line493 "Installed: Absent; Request: Local; Action: > Local" - What does this mean? > Line662 "RunGacutilExe", but in Line669 it returns 1631. What does 1631 > mean? It mean failure. But failed at where? > For line759-760, I don't know what it is trying to do. > >From Line1654 to 1662, it seems the file is copied. But for those numbers > like 2360, I'm not sure what they mean. > > I appreciate if you can tell me how to read log file. > > Many thanks, > /Brian > > > > __________________________________________________________________ > The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! > Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/ > > ------------------------------------------------------------------------------ > 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 > WiX-users@lists.sourceforge.net > 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 WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users