summary refs log tree commit diff stats
path: root/win32/installer/installer.vcxproj
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-10-05 15:55:56 -0400
committerTingPing <tingping@tingping.se>2013-10-09 17:17:53 -0400
commit111a58f1ef3948d3e15c3aff5c5cbdbb7f1a4123 (patch)
treee93983b9ff02d105ce4b58b3e0c40e4239e40043 /win32/installer/installer.vcxproj
parent1f069228033c61dc1fd56ea944359cbf510870f3 (diff)
Improve Windows installer
- Unify x86 and x64 installer files
- Get rid of version program
- Clean up .iss file
- Only allow one installation
Diffstat (limited to 'win32/installer/installer.vcxproj')
-rw-r--r--win32/installer/installer.vcxproj42
1 files changed, 6 insertions, 36 deletions
diff --git a/win32/installer/installer.vcxproj b/win32/installer/installer.vcxproj
index 0506b246..88de2c35 100644
--- a/win32/installer/installer.vcxproj
+++ b/win32/installer/installer.vcxproj
@@ -50,7 +50,7 @@
     <OutDir>$(HexChatBin)</OutDir>

     <IntDir>$(HexChatObj)$(ProjectName)\</IntDir>

   </PropertyGroup>

-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">

+  <ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">

     <ClCompile>

       <FunctionLevelLinking>true</FunctionLevelLinking>

       <IntrinsicFunctions>true</IntrinsicFunctions>

@@ -61,46 +61,16 @@
       <OptimizeReferences>true</OptimizeReferences>

     </Link>

     <PreBuildEvent>

-      <Command>echo [Setup] &gt; "$(OutDir)\hexchat-x86.iss"

-echo WizardImageFile="$(ProjectDir)\wizardimage.bmp" &gt;&gt; "$(OutDir)\hexchat-x86.iss"

-echo WizardSmallImageFile="$(ProjectDir)\wizardsmallimage.bmp" &gt;&gt; "$(OutDir)\hexchat-x86.iss"

-"$(OutDir)\version" -a &gt;&gt; "$(OutDir)\hexchat-x86.iss"

-"$(OutDir)\version" -v &gt;&gt; "$(OutDir)\hexchat-x86.iss"

-"$(OutDir)\version" -i &gt;&gt; "$(OutDir)\hexchat-x86.iss"

-"$(OutDir)\version" -o &gt;&gt; "$(OutDir)\hexchat-x86.iss"

-echo SetupIconFile="$(DataDir)icons\hexchat.ico" &gt;&gt; "$(OutDir)\hexchat-x86.iss"

-type hexchat-x86.skel.iss &gt;&gt; "$(OutDir)\hexchat-x86.iss"

-"$(ProgramFiles)\Inno Setup 5\compil32" /cc "$(OutDir)\hexchat-x86.iss"</Command>

-    </PreBuildEvent>

-  </ItemDefinitionGroup>

-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">

-    <ClCompile>

-      <FunctionLevelLinking>true</FunctionLevelLinking>

-      <IntrinsicFunctions>true</IntrinsicFunctions>

-    </ClCompile>

-    <Link>

-      <GenerateDebugInformation>true</GenerateDebugInformation>

-      <EnableCOMDATFolding>true</EnableCOMDATFolding>

-      <OptimizeReferences>true</OptimizeReferences>

-    </Link>

-    <PreBuildEvent>

-      <Command>echo [Setup] &gt; "$(OutDir)\hexchat-x64.iss"

-echo WizardImageFile="$(ProjectDir)\wizardimage.bmp" &gt;&gt; "$(OutDir)\hexchat-x64.iss"

-echo WizardSmallImageFile="$(ProjectDir)\wizardsmallimage.bmp" &gt;&gt; "$(OutDir)\hexchat-x64.iss"

-"$(OutDir)\version" -a &gt;&gt; "$(OutDir)\hexchat-x64.iss"

-"$(OutDir)\version" -v &gt;&gt; "$(OutDir)\hexchat-x64.iss"

-"$(OutDir)\version" -i &gt;&gt; "$(OutDir)\hexchat-x64.iss"

-"$(OutDir)\version" -o &gt;&gt; "$(OutDir)\hexchat-x64.iss"

-echo SetupIconFile="$(DataDir)icons\hexchat.ico" &gt;&gt; "$(OutDir)\hexchat-x64.iss"

-type hexchat-x64.skel.iss &gt;&gt; "$(OutDir)\hexchat-x64.iss"

-"$(ProgramFiles)\Inno Setup 5\compil32" /cc "$(OutDir)\hexchat-x64.iss"</Command>

+      <Command>

+del "$(OutDir)hexchat.iss"

+type hexchat.iss &gt;&gt; "$(OutDir)hexchat.iss"

+"$(ProgramFiles)\Inno Setup 5\iscc.exe" /dPROJECTDIR="$(ProjectDir)" /dAPPARCH="$(Platform)" "$(OutDir)hexchat.iss"</Command>

     </PreBuildEvent>

   </ItemDefinitionGroup>

   <ItemGroup>

     <None Include="wizardimage.bmp" />

     <None Include="wizardsmallimage.bmp" />

-    <None Include="hexchat-x64.skel.iss" />

-    <None Include="hexchat-x86.skel.iss" />

+    <None Include="hexchat.iss" />

   </ItemGroup>

   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />

   <ImportGroup Label="ExtensionTargets">