This commit is contained in:
Mario Fetka
2017-03-17 15:36:53 +01:00
parent 998ebae764
commit 1a6bb9fba9
7 changed files with 29 additions and 27 deletions

View File

@@ -49,8 +49,8 @@ Set $LogDir$ = "%SystemDrive%\tmp"
; no white space use '-' as a seperator
Set $MinimumSpace$ = "800 MB"
; the path were we find the product after the installation
Set $InstallDir32$ = "%ProgramFiles32Dir%\Nitro\Pro 10"
Set $InstallDir64$ = "%ProgramFiles64Dir%\Nitro\Pro 10"
Set $InstallDir32$ = "%ProgramFiles32Dir%\Nitro\Pro 11"
Set $InstallDir64$ = "%ProgramFiles64Dir%\Nitro\Pro 11"
Set $LicenseRequired$ = "true"
Set $LicensePool$ = "p_" + $ProductId$
; ----------------------------------------------------------------
@@ -80,8 +80,8 @@ else
if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")
Message "Installing " + $ProductId$ + " "+ $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " 32 Bit..."
ChangeDirectory "%SCRIPTPATH%"
comment "Extract the setup programm"
Winbatch_extract_32
; comment "Extract the setup programm"
; Winbatch_extract_32
Sub_check_exitcode
comment "Start setup program"
Winbatch_install_32
@@ -97,8 +97,8 @@ else
if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
Message "Installing " + $ProductId$ + " " + $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " 64 Bit..."
ChangeDirectory "%SCRIPTPATH%"
comment "Extract the setup programm"
Winbatch_extract_64
; comment "Extract the setup programm"
; Winbatch_extract_64
Sub_check_exitcode
comment "Start setup program"
Winbatch_install_64
@@ -113,11 +113,12 @@ else
endif
[Winbatch_extract_32]
"$Install32Exe$" /EXTRACTMSI:$LogDir$\nitropro-32.msi
; [Winbatch_extract_32]
; "$Install32Exe$" /EXTRACTMSI:$LogDir$\nitropro-32.msi
[Winbatch_install_32]
msiexec /i "$LogDir$\nitropro-32.msi" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=1 NPSERIAL=$LicenseKey$ REBOOT=ReallySuppress
; msiexec /i "$LogDir$\nitropro-32.msi" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=1 NPSERIAL=$LicenseKey$ REBOOT=ReallySuppress
msiexec /i "$Install32Msi$" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=1 NPSERIAL=$LicenseKey$ REBOOT=ReallySuppress
[Files_install_32]
; copy the ini file to the InstallDir
@@ -127,11 +128,12 @@ copy "$IniCfgFile$" "$InstallDir32$"
;
; copy -s "%ScriptPath%\files\*.*" "$InstallDir32$"
[Winbatch_extract_64]
"$Install64Exe$" /EXTRACTMSI:$LogDir$\nitropro-64.msi
; [Winbatch_extract_64]
; "$Install64Exe$" /EXTRACTMSI:$LogDir$\nitropro-64.msi
[Winbatch_install_64]
msiexec /i "$LogDir$\nitropro-64.msi" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=1 NPSERIAL=$LicenseKey$ REBOOT=ReallySuppress
; msiexec /i "$LogDir$\nitropro-64.msi" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=1 NPSERIAL=$LicenseKey$ REBOOT=ReallySuppress
msiexec /i "$Install64Msi$" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=1 NPSERIAL=$LicenseKey$ REBOOT=ReallySuppress
[Files_install_64]
; copy the ini file to the InstallDir
@@ -144,13 +146,13 @@ copy "$IniCfgFile$" "$InstallDir64$"
[Registry_install]
; Example of setting some values of an registry key:
;
openkey [HKEY_LOCAL_MACHINE\Software\Nitro\Pro\10.0]
openkey [HKEY_LOCAL_MACHINE\Software\Nitro\Pro\11.0]
set "SerialNumber" = "$LicenseKey$"
[LinkFolder_install]
set_basefolder common_desktopdirectory
set_subfolder ""
delete_element "Nitro Pro 10"
delete_element "Nitro Pro 11"
; Example of deleting a folder from AllUsers startmenu:
;

View File

@@ -42,8 +42,8 @@ Set $LogDir$ = "%SystemDrive%\tmp"
; ----------------------------------------------------------------
; - Please edit the following values -
; ----------------------------------------------------------------
Set $InstallDir32$ = "%ProgramFiles32Dir%\Nitro\Pro 10"
Set $InstallDir64$ = "%ProgramFiles64Dir%\Nitro\Pro 10"
Set $InstallDir32$ = "%ProgramFiles32Dir%\Nitro\Pro 11"
Set $InstallDir64$ = "%ProgramFiles64Dir%\Nitro\Pro 11"
Set $LicenseRequired$ = "true"
Set $LicensePool$ = "p_" + $ProductId$
; ----------------------------------------------------------------