Note: Homepage and setup says 1.6.0, registry however records it as 1.6.466
By — adlerweb 2013/04/17 13:59
Tree:
delsub.ins grepwin.png grepWin-1.6.0.msi grepWin-1.6.0-64.msi setup.ins uninstall.ins
[Actions]
requiredWinstVersion >= "4.10.8.6"
DefVar $ProductId$
DefVar $MinimumSpace$
DefVar $LogDir$
DefVar $INST_SystemType$
DefVar $UninstallCommand$
Set $ProductId$ = "grepwin"
Set $MinimumSpace$ = "2 MB"
ShowBitmap "%scriptpath%\grepwin.png" "grepWin"
Set $LogDir$ = "%SystemDrive%\tmp"
Set $INST_SystemType$ = GetSystemType
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$
isFatalError
; Stop process and set installation status to failed
else
if FileExists("%ScriptPath%\delsub.ins")
comment "Start uninstall sub section"
Sub "%ScriptPath%\delsub.ins"
endif
comment "installing"
comment "Start setup program"
if ($INST_SystemType$ = "x86 System")
Message "Installing winGrep 32 Bit..."
Winbatch_install_32
endif
if ($INST_SystemType$ = "64 Bit System")
Message "Installing winGrep 64 Bit..."
Winbatch_install_64
endif
endif
[Winbatch_install_32]
msiexec /qb! /i "%ScriptPath%\grepWin-1.6.0.msi"
[Winbatch_install_64]
msiexec /qb! /i "%ScriptPath%\grepWin-1.6.0-64.msi"
[Actions]
DefVar $ProductId$
DefVar $LogDir$
DefVar $UninstallCommand$
Set $LogDir$ = "%SystemDrive%\tmp"
Set $ProductId$ = "grepWin"
requiredWinstVersion >= "4.10.8.6"
Message "Uninstalling " + $ProductId$ + " ..."
ShowBitmap "%scriptpath%\grepwin.png" "grepWin"
if FileExists("%ScriptPath%\delsub.ins")
comment "Start uninstall sub section"
Sub "%ScriptPath%\delsub.ins"
endif
;1.6.466 64 Bit
if not (GetRegistryStringValue64("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7CADA0A0-5C14-474F-B504-0F292EC517A7}] DisplayName") = "")
set $UninstallCommand$ = "MsiExec.exe /X{7CADA0A0-5C14-474F-B504-0F292EC517A7} /qb! REBOOT=ReallySuppress"
Winbatch_uninstall
endif
;1.6.466 32 Bit
if not (GetRegistryStringValue32("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AFDF754A-1694-4933-8E8F-58E97A525015}] DisplayName") = "")
set $UninstallCommand$ = "MsiExec.exe /X{AFDF754A-1694-4933-8E8F-58E97A525015} /qb! REBOOT=ReallySuppress"
Winbatch_uninstall
endif
[Winbatch_uninstall]
$UninstallCommand$