filemorph

Check-in [60f9bbc54a]
Login

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

Overview
Comment:Update support files
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:60f9bbc54ad61cb45244e00b812c24f9537b8b45
User & Date: kevin 2020-04-25 17:09:45
Context
2020-04-25
17:43
Update tklib check-in: 46118ee0b1 user: kevin tags: trunk
17:09
Update support files check-in: 60f9bbc54a user: kevin tags: trunk
2020-04-24
12:59
More tweaks to help check-in: 7c99ff508c 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
21
22
23
24
25
26
27
28
29


30
31
32




33
34
SET COPYCMD=/Y

if exist FileMorph.exe (
del FileMorph.exe
)

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

call xcopy scriptlibs C:\Tcl\lib\  /s /i /y
call xcopy winlibs C:\Tcl\lib\  /s /i /y
call xcopy  C:\Strawberry\c\bin\*.dll build\filemorph\ /s /i /y
call xcopy  C:\Strawberry\perl\bin\*.dll build\filemorph\ /s /i /y
call xcopy C:\Tcl\bin\*.dll build\filemorph\ /s /i /y
call xcopy  C:\Strawberry\perl\lib build\filemorph\lib /s /i /y
call xcopy  C:\Strawberry\perl\site build\filemorph\site /s /i /y
call xcopy  C:\Strawberry\perl\vendor build\filemorph\vendor /s /i /y
call xcopy C:\Tcl\lib build\lib /s /i /y
call xcopy C:\Tcl\bin build\bin /s /i /y

call perltidy --pt=2 --bbt=2 --sbt=2 --naws filemorph.pl

call move /y filemorph.pl.tdy filemorph.pl 
call xcopy  filemorph.pl build\filemorph\filemorph.pl /y

call windres icons.rc -o coff -o icons.o


call windres versioninfo.rc -o coff -o versioninfo.o
call perl build.pl





call xcopy FileMorph.exe build\filemorph\







|


<
<
<
<
<
<
<
<
<
<
<
<
<



|
<

<
>
>
|
<

>
>
>
>
|

1
2
3
4
5
6
7
8
9













10
11
12
13

14

15
16
17

18
19
20
21
22
23
24
SET COPYCMD=/Y

if exist FileMorph.exe (
del FileMorph.exe
)

if exist build\ {
rmdir build\
)














call perltidy --pt=2 --bbt=2 --sbt=2 --naws filemorph.pl

call move /y filemorph.pl.tdy filemorph.pl



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

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


call pp  -C -M Encode::Byte -l zlib1.dll -l tcl86.dll -l tk86.dll  -a "C:\Users\Kevin\AppData\Local\Apps\Tcl86" filemorph.pl -o FileMorph-unsigned.exe 



call xcopy FileMorph-unsigned.exe build\filemorph\

Deleted icons.rc.

1
APPICONS ICON "filemorph.ico"
<


Changes to install.bat.

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
xcopy bin %install_dir%\bin /s /i /y
xcopy lib %install_dir%\lib /s /i /y
xcopy filemorph %install_dir%\filemorph /s /i /y
copy /Y uninstall.bat %config_dir%\
copy /Y filemorph.ico %config_dir%\

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

reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FileMorph" /f /v "Publisher" /t REG_SZ /d "WordTech Communications LLC"
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FileMorph" /f /v "InstallDate" /t REG_SZ /d %DATE%
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FileMorph" /f /v "Version" /t REG_SZ /d 3.0.0
 
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FileMorph" /f /v "UninstallString" /t REG_SZ /d "cmd /c %appdata%\FileMorph\uninstall.bat"
 
::add to start menu
set startdir="%appdata%\Microsoft\Windows\Start Menu\FileMorph\"

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

::mklink /H FileMorph.exe "%appdata%\FileMorph_App\filemorph\FileMorph.exe"


echo Set oWS = WScript.CreateObject("WScript.Shell") >%temp%\link.vbs
echo sLinkFile = "FileMorph.lnk" >>  %temp%\link.vbs
echo Set oLink = oWS.CreateShortcut(sLinkFile) >>  %temp%\link.vbs
echo oLink.TargetPath = "%appdata%\FileMorph_App\filemorph\FileMorph.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.







|

|

|
|








|











|
>




|
>
>

|
>

>



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
xcopy bin %install_dir%\bin /s /i /y
xcopy lib %install_dir%\lib /s /i /y
xcopy filemorph %install_dir%\filemorph /s /i /y
copy /Y uninstall.bat %config_dir%\
copy /Y filemorph.ico %config_dir%\

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

reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FileMorph" /f /v "Publisher" /t REG_SZ /d "WordTech Communications LLC"
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FileMorph" /f /v "InstallDate" /t REG_SZ /d %DATE%
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FileMorph" /f /v "Version" /t REG_SZ /d 4.0.0
 
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FileMorph" /f /v "UninstallString" /t REG_SZ /d "cmd /c %appdata%\FileMorph\uninstall.bat"
 
::add to start menu
set startdir="%appdata%\Microsoft\Windows\Start Menu\FileMorph\"

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

::mklink /H FileMorph.lnk "%appdata%\FileMorph_App\filemorph\FileMorph.lnk"


echo Set oWS = WScript.CreateObject("WScript.Shell") >%temp%\link.vbs
echo sLinkFile = "FileMorph.lnk" >>  %temp%\link.vbs
echo Set oLink = oWS.CreateShortcut(sLinkFile) >>  %temp%\link.vbs
echo oLink.TargetPath = "%appdata%\FileMorph_App\bin\filemorph.exe" >> %temp%\link.vbs
echo oLink.WorkingDirectory = "%appdata%\FileMorph_App\bin"  >> %temp%\link.vbs
echo oLink.IconLocation = %config_dir% + "filemorph.ico" >> %temp%\link.vbs
echo oLink.Save >>  %temp%\link.vbs
call cscript %temp%\link.vbs
copy /Y "FileMorph.lnk"  "%appdata%\FileMorph_App\bin"
del %temp%\link.vbs
call %config_dir%\pathed.exe -a "%appdata%\FileMorph_App\bin"

cd C:\Users\%username%\Desktop
echo Done.

Changes to license.txt.

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

Copyright (c) 2015 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 makeinstaller.bat.

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

iexpress /n filemorph.sed

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

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



<
<
<
<
<
<
<
1
2
3







call 7za a filemorph.zip .\build\*

iexpress /n filemorph.sed







Changes to uninstall.bat.

21
22
23
24
25
26
27

28
29
30
31
32
33
34
35
36
reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\FileMorph.exe" /f
reg delete  "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FileMorph" /f
 
rmdir "%appdata%\Microsoft\Windows\Start Menu\FileMorph" /s /q 
echo MsgBox "Uninstallation of FileMorph is complete.", vbOKOnly+vbInformation, "Uninstall"> %temp%\remove.vbs
call %temp%\remove.vbs
del %temp%\remove.vbs /f /q

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







>









21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\FileMorph.exe" /f
reg delete  "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FileMorph" /f
 
rmdir "%appdata%\Microsoft\Windows\Start Menu\FileMorph" /s /q 
echo MsgBox "Uninstallation of FileMorph is complete.", vbOKOnly+vbInformation, "Uninstall"> %temp%\remove.vbs
call %temp%\remove.vbs
del %temp%\remove.vbs /f /q
call %appdata%\QuickWho\pathed.exe -r "%appdata%\FileMorph_App\\"
rmdir %appdata%\FileMorph_App /s /q
start /b "" cmd /c rmdir "%appdata%\FileMorph\" /s /q && exit
 
 
:cancel
echo MsgBox "Uninstallation of FileMorph cancelled.",vbOKOnly+vbInformation, "Uninstall FileMorph"  > %temp%\cancel.vbs
call %temp%\cancel.vbs
del %temp%\cancel.vbs /f /q
exit /b

Deleted versioninfo.rc.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
1 VERSIONINFO
FILEVERSION 3, 0, 0, 0
PRODUCTVERSION 3, 0, 0, 0
FILEOS 4
FILETYPE 1
{
    BLOCK "StringFileInfo" {
        BLOCK "040904E4" {
            VALUE "FileDescription", "File modification tool"
            VALUE "OriginalFilename", "FileMorph"
            VALUE "CompanyName", "WordTech Communications LLC"
            VALUE "FileVersion", "3.0.0"
            VALUE "LegalCopyright", "(c) 2018 WordTech Communications LLc"
            VALUE "ProductName", "FileMorph"
            VALUE "ProductVersion", "3.0.0"
        }
    }
    BLOCK "VarFileInfo" {
        VALUE "Translation", 0x409, 1252
    }
}
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<