; Action list for IRST 9.x

[Variables]
product=Intel(R) Rapid Storage Technology
installDir=%ProgFilesDir%\Intel\%product%
menuDir=%startmenu%\Intel
IRSTVer=%getdriverversion(IRST)%

[Groups]
APP=NOT IsCmd(noservice)
TRAY=NOT IsCmd(notray) AND IsGroupSel(APP)
UI=NOT IsCmd(noirstgui) AND IsGroupSel(APP)
SHORTCUTS=IsGroupSel(UI) AND NOT IsCmd(nosc) AND NOT IsCmd(nosm)
HSSRTCUT=IsGroupSel(UI) AND NOT IsCmd(nosc)
ARP=NOT IsCmd(noarp)
DRIVER=NOT IsCmd(nodrv) AND IfDrvExists(IRST)
ICC=NOT IsCmd(noicc) AND IsGroupSel(UI)
PIN=0
SCU_DRV_NULL=NOT IsCmd(nodrv) AND IfDrvExists(SCU_NULL)


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Setup files             ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[File]
operation=copyonly
mode=overwrite
source=%setup%
destination=%installDir%\uninstall\Setup.exe
sequence=500

[Folder]
operation=copy
mode=overwrite
source=%source%\lang
destination=%installDir%\uninstall
sequence=505

[File]
operation=copy
mode=overwrite
source=%source%\x64\Drv64.exe
destination=%installDir%\uninstall\x64\Drv64.exe
condition=Is64
sequence=510
usequence=9000

[File]
operation=copyonly
mode=ifnewer
source=%source%\difxapi.dll
destination=%system%\difxapi.dll
;condition=NOT Is64
error=ignore
sequence=515

[File]
operation=copyonly
mode=ifnewer
source=%source%\x64\difxapi.dll
destination=%system64%\difxapi.dll
condition=Is64
error=ignore
sequence=515
usequence=9002

[Uninstall]
name={3E29EE6C-963A-4aae-86C1-DC237C4A49FC}
display=%product%
display_mui=@%installDir%\Uninstall\Setup.exe,-2018
command=%installDir%\Uninstall\setup.exe -uninstall
location=%installDir%
estimatedsize=18942
publisher=Intel Corporation
icon=%installDir%\IAStorUI.exe,0
modify=no
repair=no
version=%IRSTVer%
sequence=520
group=ARP


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Driver                  ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;[INF]
;name=IRST
;sequence=600
;usequence=5000
;group=DRIVER

[Registry]
operation=create
root=HKLM
path=SOFTWARE\INTEL\IRST\%IRSTVer%
value=Version
data=%IRSTVer%
type=sz
sequence=610
group=DRIVER

[Registry]
operation=create
root=HKLM
path=SOFTWARE\INTEL\IRST
value=LastKitInstalled
data=%IRSTVer%
type=sz
sequence=620
group=DRIVER

[INF]
name=SCU_NULL
sequence=601
usequence=5000
uninstall=no
group=SCU_DRV_NULL


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Application                   ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[Process]
operation=stoponinstall
bin=IAStorUI.exe
sequence=1000
group=APP

[Process]
operation=stoponinstall
bin=IAStorIcon.exe
sequence=1010
group=APP

[Process]
operation=runonly
bin=%windir%\Microsoft.NET\Framework\v2.0.50727\ngen.exe
commandline=uninstall "%installDir%\IAStorDataMgrSvc.exe"
wait=yes
hide=yes
sequence=1015
error=ignore
group=APP

[Process]
operation=runonly
bin=%windir%\Microsoft.NET\Framework\v2.0.50727\installutil.exe
commandline=/u "%installDir%\IAStorDataMgrSvc.exe"
wait=yes
hide=yes
sequence=1020
error=ignore
group=APP

;Pinning only
[Process]
operation=runonly
bin=%windir%\Microsoft.NET\Framework\v2.0.50727\installutil.exe
commandline=/u "%installDir%\ITMService.exe"
wait=yes
hide=yes
sequence=1025
error=ignore
;group=PIN
group=APP

[File]
operation=deleteoninstall
destination=%installDir%\ITMService.InstallLog
error=ignore
sequence=1026
group=APP

[Folder]
operation=copy
source=%source%\Application\
destination=%installDir%
sequence=1030
GROUP=APP

[Folder]
operation=copy
source=%source%\Microsoft.VC90.CRT
destination=%installDir%\Microsoft.VC90.CRT
sequence=1040
group=APP

[Process]
operation=runonly
bin=%windir%\Microsoft.NET\Framework\v2.0.50727\installutil.exe
commandline="%installDir%\IAStorDataMgrSvc.exe"
wait=yes
hide=yes
sequence=1050
error=ignore
group=APP

[Process]
operation=runonly
bin=%windir%\Microsoft.NET\Framework\v2.0.50727\ngen.exe
commandline=install "%installDir%\IAStorDataMgrSvc.exe"
wait=yes
hide=yes
sequence=1052
error=ignore
group=APP

[Registry]
operation=create
root=HKLM
path=System\CurrentControlSet\Services\IaStorDataMgrSvc
value=DelayedAutoStart
data=1
type=dw
sequence=1053
group=APP

; Pinning only
[Process]
operation=runonly
bin=%windir%\Microsoft.NET\Framework\v2.0.50727\installutil.exe
commandline="%installDir%\ITMService.exe"
wait=yes
hide=yes
sequence=1055
error=ignore
group=PIN

; Shortcut for XP
[Shortcut]
path=%menuDir%\%getstring(2018)%.lnk
target=%installDir%\IAStorUI.exe
description=%getstring(2553)%
condition=NOT IsOS(VISTA,MAXOS)
sequence=1060
group=SHORTCUTS

; Shortcut for Vista and higher
[Shortcut]
path=%menuDir%\Intel(R) Rapid Storage Technology.lnk
target=%installDir%\IAStorUI.exe
description_mui=@%installDir%\uninstall\Setup.exe,-2553
pathmui=%installDir%\Uninstall\Setup.exe,2018
condition=IsOS(VISTA,MAXOS)
sequence=1060
group=SHORTCUTS


;; Hardware and Sounds shortcut

[Registry]
operation=create
root=HKLM
path=SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{E342F0FE-FF1C-4c41-BE37-A0271FC90396}
value=(default)
data=%product%
type=sz
condition=IsOS(VISTA,MAXOS) AND NOT Is64
sequence=1050
group=HSSRTCUT

[Registry]
operation=create
root=HKCR
path=CLSID\{E342F0FE-FF1C-4c41-BE37-A0271FC90396}
value=(default)
data=%product%
type=sz
condition=IsOS(VISTA,MAXOS) AND NOT Is64
sequence=1050
group=HSSRTCUT

[Registry]
operation=create
root=HKCR
path=CLSID\{E342F0FE-FF1C-4c41-BE37-A0271FC90396}
value=LocalizedString
data=@%installDir%\uninstall\Setup.exe,-2018
type=sz
condition=IsOS(VISTA,MAXOS) AND NOT Is64
sequence=1050
group=HSSRTCUT

[Registry]
operation=create
root=HKCR
path=CLSID\{E342F0FE-FF1C-4c41-BE37-A0271FC90396}
value=InfoTip
data=@%installDir%\uninstall\Setup.exe,-2553
type=sz
condition=IsOS(VISTA,MAXOS) AND NOT Is64
sequence=1050
group=HSSRTCUT

[Registry]
operation=create
root=HKCR
path=CLSID\{E342F0FE-FF1C-4c41-BE37-A0271FC90396}
value=System.ApplicationName
data=Intel(R) Corporation.Intel(R) Rapid Storage Technology
type=sz
condition=IsOS(VISTA,MAXOS) AND NOT Is64
sequence=1050
group=HSSRTCUT

[Registry]
operation=create
root=HKCR
path=CLSID\{E342F0FE-FF1C-4c41-BE37-A0271FC90396}
value=System.ControlPanel.Category
data=2
type=sz
condition=IsOS(VISTA,MAXOS) AND NOT Is64
sequence=1050
group=HSSRTCUT

[Registry]
operation=create
root=HKCR
path=CLSID\{E342F0FE-FF1C-4c41-BE37-A0271FC90396}\DefaultIcon
value=(default)
data=%installDir%\IAStorUI.exe,0
type=sz
condition=IsOS(VISTA,MAXOS) AND NOT Is64
sequence=1050
group=HSSRTCUT

[Registry]
operation=create
root=HKCR
path=CLSID\{E342F0FE-FF1C-4c41-BE37-A0271FC90396}\Shell\Open\Command
value=(default)
data=%installDir%\IAStorUI.exe
type=esz
condition=IsOS(VISTA,MAXOS) AND NOT Is64
sequence=1050
group=HSSRTCUT

;; Hardware and sounds sortcut 64 bit (prevents the listing of it as a 32 bit app by Windows)

[Registry]
operation=create
hive=64
root=HKLM
path=SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{E342F0FE-FF1C-4c41-BE37-A0271FC90396}
value=(default)
data=%product%
type=sz
condition=IsOS(VISTA,MAXOS) AND Is64
sequence=1050
group=HSSRTCUT

[Registry]
operation=create
hive=64
root=HKCR
path=CLSID\{E342F0FE-FF1C-4c41-BE37-A0271FC90396}
value=(default)
data=%product%
type=sz
condition=IsOS(VISTA,MAXOS) AND Is64
sequence=1050
group=HSSRTCUT

[Registry]
operation=create
hive=64
root=HKCR
path=CLSID\{E342F0FE-FF1C-4c41-BE37-A0271FC90396}
value=LocalizedString
data=@%installDir%\uninstall\Setup.exe,-2018
type=sz
condition=IsOS(VISTA,MAXOS) AND Is64
sequence=1050
group=HSSRTCUT

[Registry]
operation=create
hive=64
root=HKCR
path=CLSID\{E342F0FE-FF1C-4c41-BE37-A0271FC90396}
value=InfoTip
data=@%installDir%\uninstall\Setup.exe,-2553
type=sz
condition=IsOS(VISTA,MAXOS) AND Is64
sequence=1050
group=HSSRTCUT

[Registry]
operation=create
hive=64
root=HKCR
path=CLSID\{E342F0FE-FF1C-4c41-BE37-A0271FC90396}
value=System.ApplicationName
data=Intel(R) Corporation.Intel(R) Rapid Storage Technology
type=sz
condition=IsOS(VISTA,MAXOS) AND Is64
sequence=1050
group=HSSRTCUT

[Registry]
operation=create
hive=64
root=HKCR
path=CLSID\{E342F0FE-FF1C-4c41-BE37-A0271FC90396}
value=System.ControlPanel.Category
data=2
type=sz
condition=IsOS(VISTA,MAXOS) AND Is64
sequence=1050
group=HSSRTCUT

[Registry]
operation=create
hive=64
root=HKCR
path=CLSID\{E342F0FE-FF1C-4c41-BE37-A0271FC90396}\DefaultIcon
value=(default)
data=%installDir%\IAStorUI.exe,0
type=sz
condition=IsOS(VISTA,MAXOS) AND Is64
sequence=1050
group=HSSRTCUT

[Registry]
operation=create
hive=64
root=HKCR
path=CLSID\{E342F0FE-FF1C-4c41-BE37-A0271FC90396}\Shell\Open\Command
value=(default)
data=%installDir%\IAStorUI.exe
type=esz
condition=IsOS(VISTA,MAXOS) AND Is64
sequence=1050
group=HSSRTCUT

;;end hardware and sounds shortcut

[Registry]
operation=create
root=HKLM
path=SOFTWARE\INTEL\IRST
value=WinUiLocation
data=%installDir%
type=sz
sequence=1070
group=UI

[Registry]
operation=create
root=HKLM
path=SOFTWARE\Microsoft\Windows\CurrentVersion\Run
value=IAStorIcon
data=%installDir%\IAStorIcon.exe
type=sz
sequence=1080
group=TRAY

[Registry]
operation=create
root=HKLM
path=SOFTWARE\INTEL\IRST
value=RAIDNotificationIcon
data=2
type=dw
sequence=1090
group=TRAY

; Registry key/value for ICC
[registry]
operation=create
root=HKLM
path=SOFTWARE\Intel\ICC\Applications\IRST
value=Path
data=%menuDir%\Intel(R) Rapid Storage Technology.lnk
type=sz
sequence=1100
group=ICC

; Pinning only
[registry]
operation=create
root=HKLM
path=SYSTEM\CurrentControlSet\Services\ITMService
value=ServiceLastUpdateTime
data=
type=sz
sequence=1200
usequence=1200
group=PIN

; Pinning only
[registry]
operation=create
root=HKLM
path=SYSTEM\CurrentControlSet\Services\ITMService
value=ProfileManagerStartup
data=0
type=dw
sequence=1210
usequence=1210
group=PIN

; Pinning only
[registry]
operation=create
root=HKLM
path=SYSTEM\CurrentControlSet\Services\ITMService
value=ProfileManagerCurrentProfile
data=
type=sz
sequence=1215
usequence=1215
group=PIN


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; These actions run on uninstall ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[Process]
operation=stoponuninstall
bin=IAStorIcon.exe
usequence=-10
group=UI

[Process]
operation=stoponuninstall
bin=IAStorUI.exe
usequence=-9
group=UI

[Process]
operation=runonuninstall
bin=%windir%\Microsoft.NET\Framework\v2.0.50727\installutil.exe
commandline=/u "%installDir%\IAStorDataMgrSvc.exe"
wait=yes
hide=yes
usequence=-8
error=ignore
group=APP

[Process]
operation=runonuninstall
bin=%windir%\Microsoft.NET\Framework\v2.0.50727\ngen.exe
commandline=uninstall "%installDir%\IAStorDataMgrSvc.exe"
wait=yes
hide=yes
usequence=-7
error=ignore
group=APP

; Pinning only
[Process]
operation=runonuninstall
bin=%windir%\Microsoft.NET\Framework\v2.0.50727\installutil.exe
commandline=/u "%installDir%\ITMService.exe"
wait=yes
hide=yes
usequence=-6
error=ignore
group=PIN

[Registry]
operation=deleteonuninstall
root=HKLM
path=SOFTWARE\Intel\ICC\Applications\IRST
delete_if_not_empty=YES
usequence=1
group=ICC

; Pinning only
[Registry]
operation=deleteonuninstall
root=HKLM
path=SOFTWARE\Intel\Turbo Memory
usequence=0
group=PIN

[Registry]
operation=deleteonuninstall
root=HKCR
path=CLSID\{E342F0FE-FF1C-4c41-BE37-A0271FC90396}
delete_if_not_empty=YES
condition=IsOS(VISTA,MAXOS) AND NOT Is64
usequence=1005
group=HSSRTCUT

[Registry]
operation=deleteonuninstall
hive=64
root=HKCR
path=CLSID\{E342F0FE-FF1C-4c41-BE37-A0271FC90396}
delete_if_not_empty=YES
condition=IsOS(VISTA,MAXOS) AND Is64
usequence=1005
group=HSSRTCUT

[File]
operation=deleteonuninstall
destination=%installDir%\IAStorDataMgrSvc.InstallLog
usequence=1010

; Pinning only
[File]
operation=deleteonuninstall
destination=%installDir%\ITMService.InstallLog
usequence=1020
group=PIN

[Folder]
operation=deleteonuninstall
destination=%installDir%\uninstall\x64
delete_if_not_empty=yes
condition=Is64
usequence=11010

