msi based Planmaker viewer

This commit is contained in:
Mario Fetka
2012-01-19 22:35:31 +01:00
parent 2715951c7b
commit 18bbe89164
10 changed files with 404 additions and 46 deletions

View File

@@ -1,14 +0,0 @@
@echo off
SETLOCAL
SET SC=HKLM\SOFTWARE\Classes
SET Extn=pmd pmv xls xlt xlsx xlsm xltx xltm
FOR %%j IN (%Extn%) DO (
REG ADD %SC%\.%%j /VE /D "PlanMakerViewer.%%j" /F
REG ADD %SC%\PlanMakerViewer.%%j /VE /D "PlanMaker Viewer" /F
REG ADD %SC%\PlanMakerViewer.%%j\DefaultIcon /VE /D "\"%PROGRAMFILES%\SoftMaker Viewer\PlanMaker/PMViewer.exe\"" /F
REG ADD %SC%\PlanMakerViewer.%%j\shell\open\command /VE /D "\"%PROGRAMFILES%\SoftMaker Viewer\PlanMaker/PMViewer.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$ = '{E3650D25-6752-4DE1-85DA-72A7BF2E49EE}'
Set $UninstallProgram$ = $InstallDir$ + "\uninstall.exe"
Message "Uninstalling " + $ProductId$ + " ..."
@@ -40,7 +40,7 @@ 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):
@@ -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$ = "pmviewer"
Set $MinimumSpace$ = "150 MB"
Set $MinimumSpace$ = "30 MB"
; the path were we find the product after the installation
Set $InstallDir$ = "%ProgramFiles32Dir%\SoftMaker Viewer\PlanMaker\"
Set $InstallDir$ = "%ProgramFiles32Dir%\SoftMaker Viewer\PlanMaker"
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\pmv10config.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: PlanMaker Viewer
target: "$InstallDir$\PMViewer.exe"
parameters:
working_dir: $InstallDir$
icon_file: "$InstallDir$\PMViewer.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$ = "pmviewer"
Set $InstallDir$ = "%ProgramFiles32Dir%\SoftMaker Viewer\PlanMaker\"
Set $InstallDir$ = "%ProgramFiles32Dir%\SoftMaker Viewer\PlanMaker"
Set $LicenseRequired$ = "false"
Set $LicensePool$ = "p_" + $ProductId$
; ----------------------------------------------------------------