Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit619758c

Browse files
author
Felipe "Zimmerle" Costa
committed
iis: Adds condition to avoid the use of 32b msi on a 64b os
The 64bits version of the package offer the possibility to install the 32bitsversion of the DLL along with all 32bits dependencies.
1 parent93a86f6 commit619758c

File tree

1 file changed

+11
-26
lines changed

1 file changed

+11
-26
lines changed

‎iis/installer.wxs‎

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,12 @@
8383
<ConditionMessage="This setup requires IIS 6.0, 7.0 or 8.0 is installed."><![CDATA[(IIS="#7") OR (IIS="#6") OR (IIS="#8")]]></Condition>
8484
<!-- Version 2.7.6 had an uninstall issue that leaves some files behind. Asking the user to manually hash this out.-->
8585
<ConditionMessage="A older version of ModSecurityIIS was found in your computer. Please complete uninstall by removing the following file: [FILEEXISTS]. You may have to remove ModSecurity module from IIS, use the IIS Manager to do so."><![CDATA[(NOT FILEEXISTS) OR (Installed)]]></Condition>
86-
<!--
87-
Won't necessary. We can install 32bits stuff in a 64 machine. If IIS is proper
88-
configured it will work like a charm.
89-
90-
<Condition Message="64-bit operating system was detected, please use the 64-bit installer.">
91-
<?if $(var.Win64) = "yes" ?>
92-
VersionNT64
93-
<?else?>
94-
NOT VersionNT64
95-
<?endif?>
96-
</Condition>
97-
-->
86+
<ConditionMessage="64-bit operating system was detected, please use the 64-bit installer.">
87+
<?if $(var.Win64) ="yes" ?>
88+
VersionNT64
89+
<?else ?>
90+
NOT VersionNT64
91+
<?endif ?></Condition>
9892
<MediaId="1"Cabinet="simple.cab"EmbedCab="yes" />
9993
<DirectoryId="TARGETDIR"Name="SourceDir">
10094
<?if $(var.Win64) ="yes" ?>
@@ -408,12 +402,8 @@
408402
<UIId="WixUI_FeatureTreeCustom">
409403
<DialogId="CustomizeDlgModSec"Width="370"Height="270"Title="!(loc.CustomizeDlg_Title)"TrackDiskSpace="yes">
410404
<ControlId="Tree"Type="SelectionTree"X="25"Y="85"Width="175"Height="115"Property="_BrowseProperty"Sunken="yes"TabSkip="no"Text="!(loc.CustomizeDlgTree)">
411-
<PublishProperty="DisableButton"Value="1">
412-
(NOT&amp;ModSec64=3) AND (NOT&amp;ModSec32=3)
413-
</Publish>
414-
<PublishProperty="DisableButton"Value="0">
415-
&amp;ModSec64=3 OR&amp;ModSec32=3
416-
</Publish>
405+
<PublishProperty="DisableButton"Value="1">(NOT&amp;ModSec64=3) AND (NOT&amp;ModSec32=3)</Publish>
406+
<PublishProperty="DisableButton"Value="0">&amp;ModSec64=3 OR&amp;ModSec32=3</Publish>
417407
</Control>
418408
<ControlId="Browse"Type="PushButton"X="294"Y="210"Width="66"Height="17"Text="!(loc.CustomizeDlgBrowse)">
419409
<PublishEvent="SelectionBrowse"Value="BrowseDlg">1</Publish>
@@ -431,12 +421,8 @@
431421
<ControlId="Back"Type="PushButton"X="192"Y="243"Width="56"Height="17"Text="!(loc.WixUIBack)" />
432422
<ControlId="Next"Type="PushButton"X="248"Y="243"Width="56"Height="17"Default="yes"Text="!(loc.WixUINext)">
433423
<SubscribeEvent="SelectionNoItems"Attribute="Enabled" />
434-
<ConditionAction="disable">
435-
DisableButton = 1
436-
</Condition>
437-
<ConditionAction="enable">
438-
DisableButton = 0
439-
</Condition>
424+
<ConditionAction="disable">DisableButton = 1</Condition>
425+
<ConditionAction="enable">DisableButton = 0</Condition>
440426
</Control>
441427
<ControlId="Cancel"Type="PushButton"X="304"Y="243"Width="56"Height="17"Cancel="yes"Text="!(loc.WixUICancel)">
442428
<PublishEvent="SpawnDialog"Value="CancelDlg">1</Publish>
@@ -564,8 +550,7 @@
564550
<CustomActionId="InstallConf"Execute="deferred"Impersonate="no"Return="check"Directory="INSTALLFOLDER"ExeCommand="&quot;[SystemFolder]inetsrv\appcmd.exe&quot; set config /section:&quot;system.webServer/ModSecurity&quot; /&quot;enabled:true&quot; /&quot;configFile:[INSTALLFOLDER]modsecurity_iis.conf&quot;" />
565551
<CustomActionId="UninstallConf"Execute="deferred"Impersonate="no"Return="check"Directory="INSTALLFOLDER"ExeCommand="&quot;[SystemFolder]inetsrv\appcmd.exe&quot; clear config -section:&quot;system.webServer/ModSecurity&quot;" />
566552
<?endif ?>
567-
568-
<DirectoryRefId="TARGETDIR">
553+
<DirectoryRefId="TARGETDIR">
569554
<?if $(var.Win64) ="yes" ?>
570555
<MergeId="VCRedist64"SourceFile="wix\Microsoft_VC120_CRT_x64.msm"DiskId="1"Language="0" />
571556
<MergeId="VCRedist32"SourceFile="wix\Microsoft_VC120_CRT_x86.msm"DiskId="1"Language="0" />

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp