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

Reply via email to