filemorph

Check-in [30849adf00]
Login

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

Overview
Comment:Update overhaul to Windows build and deployment
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:30849adf008c8f65b6fb84a633d2a2777fe7e730
User & Date: kevin 2015-11-11 11:56:23
Context
2015-11-12
05:56
Further refinements to Windows build check-in: 720cd34e52 user: kevin tags: trunk
2015-11-11
11:56
Update overhaul to Windows build and deployment check-in: 30849adf00 user: kevin tags: trunk
2015-11-09
11:49
Re-work Windows eployment to not require PAR check-in: 4b56991808 user: kevin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to filemorph.sed.

27
28
29
30
31
32
33
34
35
36

37


38
39
40
41
42
43
44



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=
FILE3="filemorph.ico"
FILE0="uninstall.bat"
FILE1="install.bat"

FILE2="FileMorph.exe"


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










<
|
|
>
|
>
>







>
>
>
27
28
29
30
31
32
33

34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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%=

Changes to install.bat.

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
..
38
39
40
41
42
43
44
45
46
47
48
49
50
51
if not exist %install_dir% (
mkdir %install_dir%
)
 
if not exist %config_dir% (
mkdir %config_dir%
)
copy /Y FileMorph.exe %install_dir%\



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

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

echo [InternetShortcut] >> FileMorph.url
echo URL="%appdata%\FileMorph_App\FileMorph.exe" >> FileMorph.url
echo IconFile="%appdata%\FileMorph\filemorph.ico" >> FileMorph.url
echo IconIndex=0 >> FileMorph.url


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







|
>
>
>









|







 







|






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
..
41
42
43
44
45
46
47
48
49
50
51
52
53
54
if not exist %install_dir% (
mkdir %install_dir%
)
 
if not exist %config_dir% (
mkdir %config_dir%
)
call 7za  x filemorph.zip
call xcopy bin %installdir%\bin /s /i /y
call xcopy lib %installdir%\lib /s /i /y
call xcopy filemorph %installdir%\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"
................................................................................

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

echo [InternetShortcut] >> FileMorph.url
echo URL="%appdata%\FileMorph_App\filemorph\FileMorph.exe" >> FileMorph.url
echo IconFile="%appdata%\FileMorph\filemorph.ico" >> FileMorph.url
echo IconIndex=0 >> FileMorph.url


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

Changes to makeinstaller.bat.

1


2
3
4
5
6
7
8
iexpress /n filemorph.sed



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

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

>
>







1
2
3
4
5
6
7
8
9
10
iexpress /n filemorph.sed

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

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

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