Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EvanAnderson/ts_block.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/MSI
diff options
context:
space:
mode:
authorEvan Anderson <EAnderson@wellbury.com>2012-05-31 00:46:42 +0400
committerEvan Anderson <EAnderson@wellbury.com>2012-05-31 00:46:42 +0400
commitf4b12bc550587e897f163295f6298f6db5365733 (patch)
tree04ee47f4f629ef84566bb47f175eea00ebd05996 /MSI
parent6db0704bea0db45ed22889290f3432ee7da3f0b8 (diff)
20120530 releaseHEAD20120530master
Diffstat (limited to 'MSI')
-rw-r--r--MSI/make-msi.bat30
-rw-r--r--MSI/third-party/nssm.exebin0 -> 75776 bytes
-rw-r--r--MSI/ts_block.wxs54
3 files changed, 84 insertions, 0 deletions
diff --git a/MSI/make-msi.bat b/MSI/make-msi.bat
new file mode 100644
index 0000000..56a3024
--- /dev/null
+++ b/MSI/make-msi.bat
@@ -0,0 +1,30 @@
+@echo off
+SET RELEASE=
+for /f %%i in (..\RELEASE.txt) do set RELEASE=%%i
+if "%RELEASE%"=="" goto _err_no_release
+
+del *.msi
+del *.wixobj
+
+candle -out ts_block.wixobj ts_block.wxs
+if errorlevel 1 goto _err_candle
+
+light -out ..\ts_block_%RELEASE%.msi ts_block.wixobj
+if errorlevel 1 goto _err_light
+
+del ts_block.wixobj
+goto :EOF
+
+:_err_candle
+echo Fatal Error - CANDLE returned error.
+echo.
+goto :EOF
+
+:_err_light
+echo Fatal Error - LIGHT returned error.
+echo.
+goto :EOF
+
+:_err_no_release
+echo Fatal Error - No ..\RELEASE.txt found.
+echo.
diff --git a/MSI/third-party/nssm.exe b/MSI/third-party/nssm.exe
new file mode 100644
index 0000000..54e8e31
--- /dev/null
+++ b/MSI/third-party/nssm.exe
Binary files differ
diff --git a/MSI/ts_block.wxs b/MSI/ts_block.wxs
new file mode 100644
index 0000000..b9e09d7
--- /dev/null
+++ b/MSI/ts_block.wxs
@@ -0,0 +1,54 @@
+<?xml version='1.0'?>
+<Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi'>
+ <Product Id='DAB52735-BF56-5081-B165-8EF0C4B224AE' Name='Terminal Services Brute Force Block (ts_block)' Language='1033' Version='$(env.RELEASE)' Manufacturer='Wellbury LLC' UpgradeCode='D78EDDFB-93DF-12CF-1C82-871358588B21'>
+ <Package Id='30B0BAF0-A69D-12DC-1902-B41833668899' InstallerVersion='200' Compressed='yes' />
+
+ <!-- Install to all users only -->
+ <Property Id='ALLUSERS'>2</Property>
+ <Property Id='ARPURLINFOABOUT'>http://opensource.wellbury.com/projects/ts_block</Property>
+ <Property Id='ARPNOMODIFY'>1</Property>
+ <Property Id='ARPNOREPAIR'>1</Property>
+ <Property Id='MSIUSEREALADMINDETECTION'>1</Property>
+ <Property Id='Privileged'>1</Property>
+
+ <Media Id='1' EmbedCab='yes' Cabinet='data.cab' />
+
+ <Directory Id='InstallDir' Name='SourceDir'>
+ <Directory Id='ProgramFilesFolder' Name='PFiles'>
+ <Directory Id='TARGETDIR' Name='ts_block'>
+ <Component Id='component0' Guid='EE750F0F-9602-6999-66FF-90E30AB29CD0' DiskId='1'>
+ <File Id='file0' Name='nssm.exe' src='third-party\nssm.exe' />
+ <File Id='file1' Name='README.txt' src='..\README.txt' />
+ <File Id='file2' Name='ts_block.vbs' src='..\ts_block.vbs' />
+ <File Id='file3' Name='LICENSE' src='..\LICENSE' />
+ </Component>
+ </Directory>
+ </Directory>
+ </Directory>
+
+ <CustomAction Id='InstallService'
+ FileKey='file0'
+ Execute='deferred'
+ Impersonate='no'
+ ExeCommand='install ts_block [WindowsFolder]System32\cscript.exe \"[TARGETDIR]ts_block.vbs\"' />
+
+ <CustomAction Id='UninstallService'
+ FileKey='file0'
+ Execute='deferred'
+ Impersonate='no'
+ ExeCommand='remove ts_block confirm' />
+
+ <InstallExecuteSequence>
+ <Custom Action='InstallService' Before='InstallFinalize'>NOT (REMOVE="ALL")</Custom>
+ <Custom Action='UninstallService' Before='RemoveFiles'>REMOVE="ALL"</Custom>
+ </InstallExecuteSequence>
+
+ <Condition Message="Windows Server 2003 or newer is required for installation.">
+ WindowsBuild > 2600
+ </Condition>
+
+ <Feature Id='Feature' Title='feature0' Level='1'>
+ <ComponentRef Id='component0' />
+ </Feature>
+ </Product>
+</Wix>