|
83 | 83 | <Condition Message="This setup requires IIS 6.0, 7.0 or 8.0 is installed."><![CDATA[(IIS="#7") OR (IIS="#6") OR (IIS="#8")]]></Condition> |
84 | 84 | <!-- Version 2.7.6 had an uninstall issue that leaves some files behind. Asking the user to manually hash this out. --> |
85 | 85 | <Condition Message="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 | + <Condition Message="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> |
98 | 92 | <Media Id="1" Cabinet="simple.cab" EmbedCab="yes" /> |
99 | 93 | <Directory Id="TARGETDIR" Name="SourceDir"> |
100 | 94 | <?if $(var.Win64) = "yes" ?> |
|
408 | 402 | <UI Id="WixUI_FeatureTreeCustom"> |
409 | 403 | <Dialog Id="CustomizeDlgModSec" Width="370" Height="270" Title="!(loc.CustomizeDlg_Title)" TrackDiskSpace="yes"> |
410 | 404 | <Control Id="Tree" Type="SelectionTree" X="25" Y="85" Width="175" Height="115" Property="_BrowseProperty" Sunken="yes" TabSkip="no" Text="!(loc.CustomizeDlgTree)"> |
411 | | - <Publish Property="DisableButton" Value="1"> |
412 | | -(NOT &ModSec64=3) AND (NOT &ModSec32=3) |
413 | | - </Publish> |
414 | | - <Publish Property="DisableButton" Value="0"> |
415 | | - &ModSec64=3 OR &ModSec32=3 |
416 | | - </Publish> |
| 405 | + <Publish Property="DisableButton" Value="1">(NOT &ModSec64=3) AND (NOT &ModSec32=3)</Publish> |
| 406 | + <Publish Property="DisableButton" Value="0">&ModSec64=3 OR &ModSec32=3</Publish> |
417 | 407 | </Control> |
418 | 408 | <Control Id="Browse" Type="PushButton" X="294" Y="210" Width="66" Height="17" Text="!(loc.CustomizeDlgBrowse)"> |
419 | 409 | <Publish Event="SelectionBrowse" Value="BrowseDlg">1</Publish> |
|
431 | 421 | <Control Id="Back" Type="PushButton" X="192" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" /> |
432 | 422 | <Control Id="Next" Type="PushButton" X="248" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)"> |
433 | 423 | <Subscribe Event="SelectionNoItems" Attribute="Enabled" /> |
434 | | - <Condition Action="disable"> |
435 | | - DisableButton = 1 |
436 | | - </Condition> |
437 | | - <Condition Action="enable"> |
438 | | - DisableButton = 0 |
439 | | - </Condition> |
| 424 | + <Condition Action="disable">DisableButton = 1</Condition> |
| 425 | + <Condition Action="enable">DisableButton = 0</Condition> |
440 | 426 | </Control> |
441 | 427 | <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)"> |
442 | 428 | <Publish Event="SpawnDialog" Value="CancelDlg">1</Publish> |
|
564 | 550 | <CustomAction Id="InstallConf" Execute="deferred" Impersonate="no" Return="check" Directory="INSTALLFOLDER" ExeCommand=""[SystemFolder]inetsrv\appcmd.exe" set config /section:"system.webServer/ModSecurity" /"enabled:true" /"configFile:[INSTALLFOLDER]modsecurity_iis.conf"" /> |
565 | 551 | <CustomAction Id="UninstallConf" Execute="deferred" Impersonate="no" Return="check" Directory="INSTALLFOLDER" ExeCommand=""[SystemFolder]inetsrv\appcmd.exe" clear config -section:"system.webServer/ModSecurity"" /> |
566 | 552 | <?endif ?> |
567 | | - |
568 | | - <DirectoryRef Id="TARGETDIR"> |
| 553 | + <DirectoryRef Id="TARGETDIR"> |
569 | 554 | <?if $(var.Win64) = "yes" ?> |
570 | 555 | <Merge Id="VCRedist64" SourceFile="wix\Microsoft_VC120_CRT_x64.msm" DiskId="1" Language="0" /> |
571 | 556 | <Merge Id="VCRedist32" SourceFile="wix\Microsoft_VC120_CRT_x86.msm" DiskId="1" Language="0" /> |
|
0 commit comments