The warning thrown by candle is saying you should add an Upgrade attribute to your product tag. It is simply Upgrade="" with a GUID inside the quotes.
With regards to the 3 light errors, see the section in the WiX.chm "How To: Create a Shortcut on the Start Menu" as they're all related to your shortcut. The light warning will disappear when you fix the candle warning. They're both warning about the same thing (UpgradeCode). The errors & warnings thrown by light here aren't actual errors as you can see, they're validation errors which aren't absolutely critical but you should fix them for a product release. Light in light.exe in WiX 3.0 runs the Microsoft ICEs (Internal Consistency Evaluators) against your MSI once it's been created to tell you whether you're following the expected behaviour for an MSI, this didn't exist in WiX 2.0 so the tutorial was correct about there being no errors back then. See http://msdn.microsoft.com/en-us/library/aa369554.aspx for more information. UpgradeCode is mainly for doing Major Upgrades which basically involves using a new MSI (e.g. v1.1) to uninstall an older version (e.g v1.0) before it installs itself all as part of the same install process. You don't really need one but it doesn't hurt to have one. See http://msdn.microsoft.com/en-us/library/aa369786.aspx for more information on Major Upgrades. Good luck. Palbinder Sandher Software Deployment & IT Administrator T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -----Original Message----- From: David Marker [mailto:mark...@mcohio.org] Sent: 22 May 2009 15:47 To: wix-users@lists.sourceforge.net Subject: [WiX-users] New to WiX, have question on errors Good morning (EST here). As the subject says, I'm new to using WiX and have some questions on some errors I'm getting. For reference, I'm following the tutorial found at http://www.tramontana.co.hu/wix/ and am in Lesson 1. The tutorial was designed using WiX V2, however I currently have version 3.0.5315 installed and am running Vista. I followed the tutorial, modifying it to match a single .exe I have created. I left out the other two files the tutorial adds so my installer is only installing one file and the shortcuts. I generated the GUID using the generation tool in VS2008 Anyway, I ran candle and light from a cmd prompt and here's the results (I'll post my code after that): ---------- C:\myproject>candle samplefirst.wxs Microsoft (R) Windows Installer Xml Compiler version 3.0.5315.0 Copyright (C) Microsoft Corporation. All rights reserved. SampleFirst.wxs C:\myproject\SampleFirst.wxs(4) : warning CNDL1075 : The Product/@UpgradeCode attribute was not found; it is strongly recommended to ensure that this product can be upgraded. C:\myproject>light samplefirst.wixobj Microsoft (R) Windows Installer Xml Linker version 3.0.5315.0 Copyright (C) Microsoft Corporation. All rights reserved. C:\myproject\SampleFirst.wxs(18) : error LGHT0204 : ICE43: Component MainExecutable has non-advertised shortcuts. It should use a registry key under HKCU as its KeyPath, not a file. C:\myproject\SampleFirst.wxs(18) : error LGHT0204 : ICE57: Component 'MainExecutable' has both per-user and per-machine data with a per-machine KeyPath. C:\myproject\SampleFirst.wxs(32) : error LGHT0204 : ICE64: The directory ProgramMenuDir is in the user profile but is not listed in the RemoveFile table. C:\Users\dmarker\AppData\Local\Temp\mybz16nm\SampleFirst.msi : warning LGHT1076: ICE74: The UpgradeCode property is not authored in the Property table. It is strongly recommended that authors of installation packages specify an UpgradeCode for their application. C:\myproject> ----------- Here's the code in my .wxs file: <?xml version='1.0' encoding='windows-1252'?> <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'> <Product Name='SMS Remote' Id='*' Language='1033' Codepage='1252' Version='1.0.0' Manufacturer='Dave Marker' > <Package Id='*' Keywords='Installer' Description="Dave Marker's SMS Remote Installer" Comments='None ' Manufacturer='Dave Marker' InstallerVersion='100' Languages='1033' Compressed='yes' SummaryCodepage='1252' /> <Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt="CD-ROM #1" /> <Property Id='DiskPrompt' Value="SMSRemote 1.0 Installation [1]" /> <Directory Id='TARGETDIR' Name='SourceDir'> <Directory Id='ProgramFilesFolder' Name='Programs'> <Directory Id='DaveMarkerTools' Name='DaveMarkerTools'> <Directory Id='INSTALLDIR' Name='SMS Remote 1.0'> <Component Id='MainExecutable' Guid='CB6F5567-E407-430C-8547-41CE372E1751'> <File Id='SMSRemoteEXE' Name='SMSRemote.exe' DiskId='1' Source='SMSRemote.exe'> <Shortcut Id="startmenuSMSRemote10" Directory="ProgramMenuDir" Name="SMSRemote 1.0" WorkingDirectory='INSTALLDIR' Icon="SMSRemote.exe" IconIndex="0" /> <Shortcut Id="desktopSMSRemote10" Directory="DesktopFolder" Name="SMSRemote 1.0" WorkingDirectory='INSTALLDIR' Icon="SMSRemote.exe" IconIndex="0" /> </File> </Component> </Directory> </Directory> </Directory> <Directory Id="ProgramMenuFolder" Name="Programs"> <Directory Id="ProgramMenuDir" Name="SMSRemote 1.0" /> </Directory> <Directory Id="DesktopFolder" Name="Desktop" /> </Directory> <Feature Id='Complete' Level='1'> <ComponentRef Id='MainExecutable' /> </Feature> <Icon Id="SMSRemote.exe" SourceFile="SMSRemote.exe" /> </Product> </Wix> The resulting .msi seems to install and uninstall correctly. I'm not sure what the error codes mean or how to fix them. The tutorial indicates there shouldn't be any errors, so my OCD mentality is a little bugged by this. Can anyone shed some light on this for me? Also, what's the UpgradeCode used for, is it just another GUID I need to generate, and do I need to use one? Thanks in advance for any help anyone can give. Dave Marker ------------------------------------------------------------------------------ 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 WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users