Here is my wxs file which gives the error.

Thanks a lot,
Nan

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";
      xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension";>
  <Product Id="*" UpgradeCode="guid" Version="1.0.0.0" Language="1033" 
Name="MyProduct">
    <Package Id ="*" InstallerVersion="100" Compressed="yes" Platform="x64" 
Comments=" This is a Test Project"/>

    <!-- Define the .net framework property-->
    <PropertyRef Id="NETFRAMEWORK20"/>

    <!--Here specifies the installation condition-->

    <Condition Message="You must be an administrator to install this product">
      <![CDATA[Administrator]]>
    </Condition>

    <!-- Check the condition if .net framework is installed or it is a repair 
or update action.-->
    <Condition Message="This application requires .NET Framework 2.0. Please 
install the .NET Framework then run this installer again.">
      <![CDATA[Installed OR NETFRAMEWORK20]]>
    </Condition>

    <!--Check the OS Version-->
    <Condition Message="This application requires 64-bit machine.">
      <![CDATA[VersionNT64]]>
    </Condition>

    <!--Check the OS Version-->
    <Condition Message="This application is only supported on Windows Vista, 
Windows Server 2008, or higher.">
      <![CDATA[Installed OR (VersionNT64 >= 600)]]>
    </Condition>

    <Media Id ="1" Cabinet="RMSPCab"/>

    <!-- Step 1: Define the directory structure -->
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
        <Directory Id="APPLICATIONROOTDIRECTORY" Name="MyProduct"/>
      </Directory>
    </Directory>

    <!-- Step 2: Add files to your installer package -->
    <DirectoryRef Id="APPLICATIONROOTDIRECTORY">
      <Component Id="MyApplication.exe" Guid="guid" Win64="yes" >
        <File Id=" MyApplication.exe" Source=" MyApplication " KeyPath="yes" 
Checksum="yes"/>
      </Component>
    </DirectoryRef>

    <!-- Step 3: Tell WiX to install the files -->
    <Feature Id="MainApplication" Title="Main Application" Level="1">
      <ComponentRef Id="MyApplication.exe" />
    </Feature>
  </Product>
</Wix>


From: Nan Zang
Sent: Wednesday, February 18, 2009 2:44 PM
To: 'wix-users@lists.sourceforge.net'
Subject: Error code 0x654 thown by light.exe on x64 machine

Hi All,

 I am new to wix, and got stuck to get my first wix project run. I need some 
help.

Here is my problem:

 I have a Windows server 2008 x64 machine and I used wix 3.0.5006.0 x64 
binaries.

 When I build my wix project, I got the following error:

light.exe : error LGHT0216 : An unexpected Win32 exception with error code 0x654
 occurred: This installation package could not be opened. Contact the 
application vendor to verify that this is a valid Windows Installer package
NMAKE : fatal error U1077: '.\light.exe' : return code '0xd8'

 I met the same error when I built the project in VS2008 with x64 target 
platform. But it works fine, when I change the target platform to x86.

Any help will be appreciated.

Thanks,

Nan

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to