New MSI Based Texmaker viewer package

This commit is contained in:
Mario Fetka
2012-01-19 21:39:11 +01:00
parent e565b04aa1
commit a7cdbd0617
9 changed files with 419 additions and 46 deletions

View File

@@ -1,14 +0,0 @@
@echo off
SETLOCAL
SET SC=HKLM\SOFTWARE\Classes
SET Extn=tmd tmv doc dot docx docm dotx dotm odt ott sxw xtw rtf
FOR %%j IN (%Extn%) DO (
REG ADD %SC%\.%%j /VE /D "TextMakerViewer.%%j" /F
REG ADD %SC%\TextMakerViewer.%%j /VE /D "TextMaker Viewer" /F
REG ADD %SC%\TextMakerViewer.%%j\DefaultIcon /VE /D "\"%PROGRAMFILES%\SoftMaker Viewer\TextMaker/TMViewer.exe\"" /F
REG ADD %SC%\TextMakerViewer.%%j\shell\open\command /VE /D "\"%PROGRAMFILES%\SoftMaker Viewer\TextMaker/TMViewer.exe\" \"%%1\"" /F
)
ENDLOCAL
exit

View File

@@ -4,7 +4,7 @@
; credits: http://www.opsi.org/credits/
Set $MsiId$ = '{AC76BA86-7AD7-1031-7B44-AA1000000001}'
Set $MsiId$ = '{6CA72632-1857-4859-B57D-4BAC6E53C052}'
Set $UninstallProgram$ = $InstallDir$ + "\uninstall.exe"
Message "Uninstalling " + $ProductId$ + " ..."
@@ -40,12 +40,12 @@ LinkFolder_uninstall
[Winbatch_uninstall_msi]
; msiexec /x $MsiId$ /qb! REBOOT=ReallySuppress
msiexec /x $MsiId$ /qb! REBOOT=ReallySuppress
[Files_uninstall]
; Example for recursively deleting the installation directory (don't forget the trailing backslash):
;
delete -sf "$InstallDir$\"
; delete -sf "$InstallDir$\"
[Registry_uninstall]
; Example of deleting a registry key:
@@ -55,8 +55,8 @@ delete -sf "$InstallDir$\"
[LinkFolder_uninstall]
; Example of deleting a folder from AllUsers startmenu:
;
set_basefolder common_programs
delete_subfolder SoftMaker
; set_basefolder common_programs
; delete_subfolder $ProductId$
;
; Example of deleting a shortcut from AllUsers desktop:
;

View File

@@ -26,9 +26,9 @@ Set $LogDir$ = "%SystemDrive%\tmp"
; therefore please: only lower letters, no umlauts,
; no white space use '-' as a seperator
Set $ProductId$ = "tmviewer"
Set $MinimumSpace$ = "150 MB"
Set $MinimumSpace$ = "30 MB"
; the path were we find the product after the installation
Set $InstallDir$ = "%ProgramFiles32Dir%\SoftMaker Viewer\TextMaker\"
Set $InstallDir$ = "%ProgramFiles32Dir%\SoftMaker Viewer\TextMaker"
Set $LicenseRequired$ = "false"
Set $LicensePool$ = "p_" + $ProductId$
; ----------------------------------------------------------------
@@ -60,6 +60,10 @@ else
comment "Copy files"
Files_install /32Bit
comment "Patching Config Files"
Patches_install "$InstallDir$" + "\SoftMaker\Settings\tmv10config.ini"
comment "Patch Registry"
Registry_install /32Bit
@@ -83,14 +87,17 @@ endif
;
; === MSI package =======================================================================================
; You may use the parameter PIDKEY=$Licensekey$
;msiexec /i "%ScriptPath%\X86FILE" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=2 REBOOT=ReallySuppress EULA_ACCEPT=YES
msiexec /i "%ScriptPath%\X86FILE" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=2 REBOOT=ReallySuppress
;
"%ScriptPath%\associate.cmd"
[Files_install]
; Example of recursively copying some files into the installation directory:
;
copy -s "%ScriptPath%\files\*.*" "$InstallDir$"
; copy -s "%ScriptPath%\files\*.*" "$InstallDir$"
[Patches_install]
set [Ignore] OEMRegisterSkip=-1
[Registry_install]
; Example of setting some values of an registry key:
@@ -108,17 +115,17 @@ copy -s "%ScriptPath%\files\*.*" "$InstallDir$"
;
; Example of creating an shortcut to the installed exe in AllUsers startmenu:
;
set_basefolder common_programs
set_subfolder SoftMaker
set_link
name: TextMaker Viewer
target: "$InstallDir$\TMViewer.exe"
parameters:
working_dir: $InstallDir$
icon_file: "$InstallDir$\TMViewer.exe"
icon_index: 1
end_link
; set_basefolder common_programs
; set_subfolder $ProductId$
;
; set_link
; name: $ProductId$
; target: <path to the program>
; parameters:
; working_dir: $InstallDir$
; icon_file:
; icon_index:
; end_link
;
; Example of creating an shortcut to the installed exe on AllUsers desktop:
;

View File

@@ -21,7 +21,7 @@ Set $LogDir$ = "%SystemDrive%\tmp"
; - Please edit the following values -
; ----------------------------------------------------------------
Set $ProductId$ = "tmviewer"
Set $InstallDir$ = "%ProgramFiles32Dir%\SoftMaker Viewer\TextMaker\"
Set $InstallDir$ = "%ProgramFiles32Dir%\SoftMaker Viewer\TextMaker"
Set $LicenseRequired$ = "false"
Set $LicensePool$ = "p_" + $ProductId$
; ----------------------------------------------------------------