TextSweep

Check-in [7bdef5f252]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Tweaks for Windows build
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 7bdef5f252ec15550596067150163484887e781b
User & Date: kevin 2020-01-02 03:22:50
Context
2020-01-02
03:26
More tweaks check-in: db3defd2be user: kevin tags: trunk
03:22
Tweaks for Windows build check-in: 7bdef5f252 user: kevin tags: trunk
02:22
Further tweaks for 5.0 check-in: 1a590dc356 user: kevin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to build.bat.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18



19
20
SET COPYCMD=/Y

if exist TextSweep.exe (
del TextSweep.exe
)

if exist build\ (
rmdir build\
)
mkdir build\
mkdir build\textsweep\

call xcopy C:\Users\Kevin\AppData\Local\Apps\Tcl86\lib build\lib /s /i /y
call xcopy C:\Users\Kevin\AppData\Local\Apps\Tcl86\bin build\bin /s /i /y
call xcopy scriptlibs build\lib /s /i /y
call xcopy winlibs build\lib /s /i /y





call xcopy textsweep.tcl build\bin\



|
|












|
|
>
>
>


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
SET COPYCMD=/Y

if exist TextSweep_Setup.exe (
del TextSweep_Setup.exe
)

if exist build\ (
rmdir build\
)
mkdir build\
mkdir build\textsweep\

call xcopy C:\Users\Kevin\AppData\Local\Apps\Tcl86\lib build\lib /s /i /y
call xcopy C:\Users\Kevin\AppData\Local\Apps\Tcl86\bin build\bin /s /i /y
call xcopy scriptlibs build\lib /s /i /y
call xcopy winlibs build\lib /s /i /y
call xcopy uninstall.bat build\
call xcopy textsweep.ico build\
call xcopy C:\Users\Kevin\Desktop\pathed.exe build\
call xcopy C:\Users\Kevin\Desktop\DDECmd.exe build\bin\
call xcopy textsweep-cli.bat build\bin\
call xcopy textsweep.tcl build\bin\

Changes to install.bat.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

19

20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

39
40
41
42
43
44
45
46
47
48
49
50
51
52



53
54

55
56


57

58
@echo off
::configure and install app files
set install_dir="%appdata%\TextSweep_App\"
set config_dir="%appdata%\TextSweep\"
set config
if not exist %install_dir% (
mkdir %install_dir%
)
 
if not exist %config_dir% (
mkdir %config_dir%
)
call 7za  x textsweep.zip
xcopy bin %install_dir%\bin /s /i /y
xcopy lib %install_dir%\lib /s /i /y
xcopy textsweep %install_dir%\textsweep /s /i /y
copy /Y uninstall.bat %config_dir%\
copy /Y textsweep.ico %config_dir%\



::test for key, add to registry
reg query "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\TextSweep.exe"
if errorlevel 0 (
reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\TextSweep.exe" /f
)
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\TextSweep.exe" /f
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\TextSweep.exe"  /ve /d "%appdata%\TextSweep_App\textsweep\TextSweep.exe" /f
 
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TextSweep" /f
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TextSweep" /f /v "DisplayIcon" /t REG_SZ /d "%appdata%\TextSweep\textsweep.ico"
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TextSweep" /f /v "DisplayName" /t REG_SZ /d "TextSweep"
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TextSweep" /f /v "InstallLocation" /t REG_SZ /d "%install_dir%"

reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TextSweep" /f /v "Publisher" /t REG_SZ /d "WordTech Communications LLC"
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TextSweep" /f /v "InstallDate" /t REG_SZ /d %DATE%
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TextSweep" /f /v "Version" /t REG_SZ /d 4.0.0
 
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TextSweep" /f /v "UninstallString" /t REG_SZ /d "cmd /c %appdata%\TextSweep\uninstall.bat"
 

::add to start menu
set startdir="%appdata%\Microsoft\Windows\Start Menu\TextSweep\"

if not exist %startdir% (
mkdir %startdir%
)
cd %startdir%

::mklink /H TextSweep.exe "%appdata%\TextSweep_App\textsweep\TextSweep.exe"

echo Set oWS = WScript.CreateObject("WScript.Shell") >%temp%\link.vbs
echo sLinkFile = "TextSweep.lnk" >>  %temp%\link.vbs
echo Set oLink = oWS.CreateShortcut(sLinkFile) >>  %temp%\link.vbs
echo oLink.TargetPath = "%appdata%\TextSweep_App\textsweep\TextSweep.exe" >> %temp%\link.vbs



echo oLink.Save >>  %temp%\link.vbs
call  %temp%\link.vbs

del %temp%\link.vbs



cd C:\Users\%username%\Desktop

echo Done.








<









>

>

|

|

|
|
<

|


|


|
<


>


|




|
<
|



|
>
>
>


>


>
>

>

1
2
3
4
5
6
7
8

9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

28
29
30
31
32
33
34
35

36
37
38
39
40
41
42
43
44
45
46

47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
@echo off
::configure and install app files
set install_dir="%appdata%\TextSweep_App\"
set config_dir="%appdata%\TextSweep\"
set config
if not exist %install_dir% (
mkdir %install_dir%
)

if not exist %config_dir% (
mkdir %config_dir%
)
call 7za  x textsweep.zip
xcopy bin %install_dir%\bin /s /i /y
xcopy lib %install_dir%\lib /s /i /y
xcopy textsweep %install_dir%\textsweep /s /i /y
copy /Y uninstall.bat %config_dir%\
copy /Y textsweep.ico %config_dir%\
copy /Y pathed.exe %config_dir%\

 
::test for key, add to registry
reg query "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\TextSweep.lnk"
if errorlevel 0 (
reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\TextSweep.lnk" /f
)
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\TextSweep.lnk" /f
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\TextSweep.lnk"  /ve /d "%appdata%\TextSweep_App\textsweep\TextSweep.lnk" /f

reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TextSweep" /f
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TextSweep" /f /v "DisplayIcon" /t REG_SZ /d "%config_dir%\textsweep.ico"
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TextSweep" /f /v "DisplayName" /t REG_SZ /d "TextSweep"
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TextSweep" /f /v "InstallLocation" /t REG_SZ /d "%install_dir%"
 
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TextSweep" /f /v "Publisher" /t REG_SZ /d "WordTech Communications LLC"
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TextSweep" /f /v "InstallDate" /t REG_SZ /d %DATE%
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TextSweep" /f /v "Version" /t REG_SZ /d 5.0.0

reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TextSweep" /f /v "UninstallString" /t REG_SZ /d "cmd /c %appdata%\TextSweep\uninstall.bat"
 
reg add HKEY_CURRENT_USER\Environment  /v  userpath /t  REG_EXPAND_SZ  /d  "%appdir%\TextSweep\bin"
::add to start menu
set startdir="%appdata%\Microsoft\Windows\Start Menu\TextSweep\"
 
if not exist %startdir% (
mkdir %startdir%
)
cd %startdir%
 

 
echo Set oWS = WScript.CreateObject("WScript.Shell") >%temp%\link.vbs
echo sLinkFile = "TextSweep.lnk" >>  %temp%\link.vbs
echo Set oLink = oWS.CreateShortcut(sLinkFile) >>  %temp%\link.vbs
echo oLink.TargetPath = "%appdata%\TextSweep_App\bin\wish86t.exe" >> %temp%\link.vbs
echo oLink.Arguments = "textsweep.tcl" >> %temp%\link.vbs
echo oLink.WorkingDirectory = "%appdata%\TextSweep_App\bin"  >> %temp%\link.vbs
echo oLink.IconLocation = "%config_dir%\textsweep.ico" >> %temp%\link.vbs
echo oLink.Save >>  %temp%\link.vbs
call  %temp%\link.vbs
copy /Y "TextSweep.lnk"  "%appdata%\TextSweep_App\bin"
del %temp%\link.vbs

call %config_dir%\pathed.exe -a "%appdata%\TextSweep_App\bin"
 
cd C:\Users\%username%\Desktop

echo Done.

Changes to makeinstaller.bat.

1
2
3
4
5
6
7
8
9
10
call 7za a textsweep.zip .\build\*

iexpress /n textsweep.sed

set VERSION="4.2.0.0 (%date%)"
set FILEDESCR=/s desc "Installer for TextSweep"
set COMPINFO=/s company "WordTech Communications LLC" /s (c) "(c) 2018"
set PRODINFO=/s product "TextSweep" /pv "4.2.0.0"

"C:\Users\kevin\Desktop\verpatch.exe" /va TextSweep_Setup.exe %VERSION% %FILEDESCR% %COMPINFO% %PRODINFO% 




|

|
|


1
2
3
4
5
6
7
8
9
10
call 7za a textsweep.zip .\build\*

iexpress /n textsweep.sed

set VERSION="5.0.0.0 (%date%)"
set FILEDESCR=/s desc "Installer for TextSweep"
set COMPINFO=/s company "WordTech Communications LLC" /s (c) "(c) 2020"
set PRODINFO=/s product "TextSweep" /pv "5.0.0.0"

"C:\Users\kevin\Desktop\verpatch.exe" /va TextSweep_Setup.exe %VERSION% %FILEDESCR% %COMPINFO% %PRODINFO% 

Changes to mit.txt.

1
2
3
4
5
6
7
8
9
The MIT License (MIT)

Copyright (c) 2018 WordTech Communications LLC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


|






1
2
3
4
5
6
7
8
9
The MIT License (MIT)

Copyright (c) 2020 WordTech Communications LLC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Changes to textsweep.sed.

33
34
35
36
37
38
39

40
41
42
43
44
45
46
47
48
49
UserQuietInstCmd=
FILE0="uninstall.bat"
FILE1="install.bat"
FILE2="TextSweep.zip"
FILE3="7za.exe"
FILE4="7za.dll"
FILE5="TextSweep.ico"

[SourceFiles]
SourceFiles0=C:\Users\kevin\Desktop\TextSweep\
[SourceFiles0]
%FILE0%=
%FILE1%=
%FILE2%=
%FILE3%=
%FILE4%=
%FILE5%=








>










33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
UserQuietInstCmd=
FILE0="uninstall.bat"
FILE1="install.bat"
FILE2="TextSweep.zip"
FILE3="7za.exe"
FILE4="7za.dll"
FILE5="TextSweep.ico"
FILE6="pathed.exe"
[SourceFiles]
SourceFiles0=C:\Users\kevin\Desktop\TextSweep\
[SourceFiles0]
%FILE0%=
%FILE1%=
%FILE2%=
%FILE3%=
%FILE4%=
%FILE5%=

Changes to uninstall.bat.

14
15
16
17
18
19
20
21
22
23
24
25
26
27

28
29
30
31
32
33
34
35
36
echo wscript.echo MsgBox("Do you want to uninstall TextSweep?", vbYesNo+vbInformation, "Uninstall") > %temp%\confirm.vbs
for /f "tokens=* delims=" %%a in ('cscript //nologo "%temp%\confirm.vbs"') do set yesno=%%a
del %temp%\confirm.vbs /f /q
exit /b
 
 
:remove
reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\TextSweep.exe" /f
reg delete  "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TextSweep" /f
 
rmdir "%appdata%\Microsoft\Windows\Start Menu\TextSweep" /s /q 
echo MsgBox "Uninstallation of TextSweep is complete.", vbOKOnly+vbInformation, "Uninstall"> %temp%\remove.vbs
call %temp%\remove.vbs
del %temp%\remove.vbs /f /q

rmdir %appdata%\TextSweep_App /s /q
start /b "" cmd /c rmdir "%appdata%\TextSweep\" /s /q && exit
 
 
:cancel
echo MsgBox "Uninstallation of TextSweep cancelled.",vbOKOnly+vbInformation, "Uninstall TextSweep"  > %temp%\cancel.vbs
call %temp%\cancel.vbs
del %temp%\cancel.vbs /f /q
exit /b







|






>









14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
echo wscript.echo MsgBox("Do you want to uninstall TextSweep?", vbYesNo+vbInformation, "Uninstall") > %temp%\confirm.vbs
for /f "tokens=* delims=" %%a in ('cscript //nologo "%temp%\confirm.vbs"') do set yesno=%%a
del %temp%\confirm.vbs /f /q
exit /b
 
 
:remove
reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\TextSweep.lnk" /f
reg delete  "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TextSweep" /f
 
rmdir "%appdata%\Microsoft\Windows\Start Menu\TextSweep" /s /q 
echo MsgBox "Uninstallation of TextSweep is complete.", vbOKOnly+vbInformation, "Uninstall"> %temp%\remove.vbs
call %temp%\remove.vbs
del %temp%\remove.vbs /f /q
call %appdata%\TextSweep\pathed.exe -r "%appdata%\TextSweep_App\bin"
rmdir %appdata%\TextSweep_App /s /q
start /b "" cmd /c rmdir "%appdata%\TextSweep\" /s /q && exit
 
 
:cancel
echo MsgBox "Uninstallation of TextSweep cancelled.",vbOKOnly+vbInformation, "Uninstall TextSweep"  > %temp%\cancel.vbs
call %temp%\cancel.vbs
del %temp%\cancel.vbs /f /q
exit /b