Zbudować projekt WiX 3.6 na x64?
Moje rozwiązanie jest zbudowane z platformą ustawiającą "dowolny procesor". Dla mojego projektu Instalatora WiX 3.6 wydaje się, że nie mogę ustawić docelowej platformy na "x64"; tylko "x86" jest dostępny. Czy projekt WiX może być zbudowany na x64?
1 answers
Instalatory Windows nie mogą być zbudowane tak, aby były kierowane na dowolny procesor, Zwykle buduję dwa razy, z zarządzanym kodem ustawionym na dowolny procesor, podczas gdy Instalator ma dwie konfiguracje x86 i x64.
Może się okazać, że musisz utworzyć konfigurację, można to zrobić klikając prawym przyciskiem myszy na rozwiązaniu i wybierając configuration manager, a następnie wybierając listę rozwijaną w obszarze Platforma. Po zakończeniu powinieneś być w stanie zobaczyć następujące zdefiniowane w Twoim wixproj:
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<OutputPath>bin\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<DefineConstants>Debug</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>bin\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
<DefineConstants>Debug</DefineConstants>
<OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
<OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup>
Aby umożliwić instalator do pracy z x86 i x64 definiuje zmienne do wykrywania i ustawiania architektury instalacji.
<?if $(var.Platform) = x64 ?>
<?define bitness = "(64 bit)" ?>
<?define Win64 = "yes" ?>
<?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
<?else ?>
<?define bitness = "(32 bit)" ?>
<?define Win64 = "no" ?>
<?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
<?endif ?>
Dodaję zmienną bitness
do nazwy jako wskazówkę wizualną:
<Product Name="My Install $(var.bitness)"
Patrz folder pliki programu odpowiednio:
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="$(var.PlatformProgramFilesFolder)">
Komponenty mają odpowiednio ustawioną flagę Win64:
<Component Win64="$(var.Win64)"
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2013-09-05 08:37:12