filemorph

Check-in [349ec59378]
Login

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

Overview
Comment:More work on Windows build
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 349ec593787fb29b99309beca2871856b75a5830
User & Date: kevin 2020-04-25 20:42:30
Context
2020-04-25
21:18
More tweaks for Windows check-in: e517f0e6f3 user: kevin tags: trunk
20:42
More work on Windows build check-in: 349ec59378 user: kevin tags: trunk
20:07
Add more help files check-in: 07df435a8b user: kevin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to build.bat.

12
13
14
15
16
17
18
19
20
21



22
23
24

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


call xcopy scriptlibs Tcl86\lib /s /i /y
call xcopy winlibs Tcl86\lib /s /i /y

call pp  -C -M Encode::Byte  -l tcl86t.dll -l tk86t.dll  -a "Tcl86" filemorph.pl -o FileMorph-unsigned.exe 






call xcopy FileMorph-unsigned.exe build\filemorph\








|

|
>
>
>

<

12
13
14
15
16
17
18
19
20
21
22
23
24
25

26

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


call xcopy scriptlibs Tcl86\lib /s /i /y
call xcopy winlibs Tcl86\lib /s /i /y

call pp  --gui -C -M Encode::Byte  -l tcl86t.dll -l tk86t.dll  -a "Tcl86" filemorph.pl -o FileMorph-unsigned.exe 

call xcopy C:\Users\Kevin\Desktop\DDECmd.exe build\
call xcopy filemorph-add-to-name.bat build\
call xcopy filemorph-change-extension.bat build\
call xcopy filemorph-change-text.bat build\



Deleted build/readme.txt.

1
2
3
4
To install FileMorph, drag and drop the FileMorph  icon onto the Applications folder. You also can drag the FileMorph icon from Applications to your Dock in order to make FileMorph  more easily accessible.

Email us with questions and comments: kw@codebykevin.com

<
<
<
<








Changes to filemorph.sed.

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
UserQuietInstCmd=%UserQuietInstCmd%
SourceFiles=SourceFiles

[Strings]
InstallPrompt=Would you like to install FileMorph and its supporting files?
DisplayLicense=C:\Users\kevin\Desktop\filemorph\mit.txt
FinishMessage=Thank you for installing FileMorph. To run the program, please select it from the start menu.
TargetName=C:\Users\kevin\Desktop\filemorph\FileMorph_Setup.exe
FriendlyName=FileMorph_Setup
AppLaunched=cmd /c install.bat
PostInstallCmd=<None>
AdminQuietInstCmd=
UserQuietInstCmd=
FILE0="uninstall.bat"
FILE1="install.bat"
FILE2="filemorph.zip"
FILE3="7za.exe"
FILE4="7za.dll"
FILE5="filemorph.ico"

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









|











>









>

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
UserQuietInstCmd=%UserQuietInstCmd%
SourceFiles=SourceFiles

[Strings]
InstallPrompt=Would you like to install FileMorph and its supporting files?
DisplayLicense=C:\Users\kevin\Desktop\filemorph\mit.txt
FinishMessage=Thank you for installing FileMorph. To run the program, please select it from the start menu.
TargetName=C:\Users\kevin\Desktop\filemorph\FileMorph_Setup_unsigned.exe
FriendlyName=FileMorph_Setup
AppLaunched=cmd /c install.bat
PostInstallCmd=<None>
AdminQuietInstCmd=
UserQuietInstCmd=
FILE0="uninstall.bat"
FILE1="install.bat"
FILE2="filemorph.zip"
FILE3="7za.exe"
FILE4="7za.dll"
FILE5="filemorph.ico"
FILE6="pathed.exe"
[SourceFiles]
SourceFiles0=C:\Users\kevin\Desktop\filemorph\
[SourceFiles0]
%FILE0%=
%FILE1%=
%FILE2%=
%FILE3%=
%FILE4%=
%FILE5%=
%FILE6%=

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
@echo off
::configure and install app files
set install_dir="%appdata%\FileMorph_App\"
set config_dir="%appdata%\FileMorph\"
set config
if not exist %install_dir% (
mkdir %install_dir%
)
 
if not exist %config_dir% (
mkdir %config_dir%
)
call 7za  x filemorph.zip
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












|
|
|
|


>







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
@echo off
::configure and install app files
set install_dir="%appdata%\FileMorph_App\"
set config_dir="%appdata%\FileMorph\"
set config
if not exist %install_dir% (
mkdir %install_dir%
)
 
if not exist %config_dir% (
mkdir %config_dir%
)

copy /Y filemorph.zip %install_dir%\
call 7za x %install_dir%\filemorph.zip -o %install_dir%
del %install_dir%\filemorph.zip /f /q
copy /Y uninstall.bat %config_dir%\
copy /Y filemorph.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\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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63

::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.







|
|





|



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64

::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\filemorph.exe" >> %temp%\link.vbs
echo oLink.WorkingDirectory = "%appdata%\FileMorph_App\"  >> %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\"

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