; Action list for GFX/HDMI/TVWizard/IIPS (CougarPoint)

[Variables]
product=Intel(R) Processor Graphics
installDir=%ProgFilesDir%\Intel\%product%
GFXVer=%getdriverversion(GFX)%
MSDKSRC=%source%\MediaSDK\%MSDK_SRC%\win32
MSDKSRC64=%source%\MediaSDK\%MSDK_SRC%\x64
MSDKDEST15=%commonappsdir%\Intel\Media SDK\i1\1.5
MSDKDEST1564=%commonappsdir64%\Intel\Media SDK\i1\1.5
MSDKDEST20=%commonappsdir%\Intel\Media SDK\s1\2.0
MSDKDEST2064=%commonappsdir64%\Intel\Media SDK\s1\2.0


[Groups]
ARP=NOT IsCmd(noarp)
GFX=NOT IsCmd(nodrv) AND IfDrvExists(GFX)
HDMI=NOT IsCmd(nodrv) AND IfDrvExists(HDMI)
MEDIA=IsVar(HDAUDIO,1) AND IfExists("%source%"\Media\Media.cab) AND IsOS(VISTA,0x060001FF)
IIPS=NOT IsCmd(nodrv) AND IfDrvExists(IIPS)
ICC=NOT IsCmd(noicc) AND IfExists("%source%"\ICC)
MSDK15=IsGroupSel(GFX) AND IsVar(MSDK_SRC,ILK)
MSDK20=IsGroupSel(GFX) AND IsVar(MSDK_SRC,SNB)


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

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

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

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

[File]
operation=copyonly
mode=ifnewer
source=%source%\difxapi.dll
destination=%system%\difxapi.dll
error=ignore
sequence=115

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

[Uninstall]
name={F0E3AD40-2BBD-4360-9C76-B9AC9A5886EA}
display=%product%
display_mui=@%installDir%\Uninstall\Setup.exe,-1166
command=%installDir%\Uninstall\setup.exe -uninstall
location=%installDir%
estimatedsize=76000
publisher=Intel Corporation
icon=%installDir%\Uninstall\Setup.exe,0
modify=no
repair=no
version=%GFXVer%
sequence=120
group=ARP

[Folder]
operation=deleteoninstall
destination=%ProgFilesDir%\Intel\Intel(R) Graphics Media Accelerator Driver
delete_if_not_empty=yes
sequence=12100
group=GFX

; Remove legacy uninstall key 32bit
[Registry]
operation=deleteoninstall
root=HKLM
path=SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\HDMI
delete_if_not_empty=YES
condition=NOT Is64
sequence=121
group=GFX

; Remove legacy uninstall key 64bit
[Registry]
operation=deleteoninstall
hive=64
root=HKLM
path=SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\HDMI
delete_if_not_empty=YES
condition=Is64
sequence=121
group=GFX

; Remove legacy product key 32bit
[Registry]
operation=deleteoninstall
root=HKLM
path=SOFTWARE\Intel\IGDI
delete_if_not_empty=YES
sequence=122
group=GFX


;;;;;;;;;;;;;;;;;;;;;;;;
; GFX

[inf]
name=GFX
removedevice=yes
sequence=-5
usequence=1
group=GFX

[Registry]
operation=create
root=HKLM
path=System\CurrentControlSet\Control\Windows
value=SystemDirectory
data=%system%
type=sz
sequence=100
group=GFX

[Registry]
operation=create
root=HKLM
path=System\CurrentControlSet\Services\ialm\Device0
value=SystemDirectory
data=%system%
type=sz
sequence=100
group=GFX

[Registry]
operation=create
root=HKLM
path=System\CurrentControlSet\Services\ialm\Device1
value=SystemDirectory
data=%system%
type=sz
sequence=100
group=GFX

[Registry]
operation=createonly
root=HKLM
path=SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce
value=WinSat
data=winsat dwm -xml results.xml
type=sz
condition=IsOS(VISTA,MAXOS) AND NOT IsCmd(nowinsat) AND IfDrvExists(GFX) AND NOT Is64
sequence=100
group=GFX

[Registry]
operation=createonly
hive=64
root=HKLM
path=SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce
value=WinSat
data=winsat dwm -xml results.xml
type=sz
condition=IsOS(VISTA,MAXOS) AND NOT IsCmd(nowinsat) AND IfDrvExists(GFX) AND Is64
sequence=100
group=GFX


;;;;;;;;;;;;;;;;;;;;;;;;
; HDMI

[File]
operation=copy
source=%source%\Media\Media.cab
destination=%windir%\Media
decompress=yes
error=ignore
sequence=-4
usequence=1002
group=MEDIA

[inf]
name=HDMI
sequence=-3
usequence=10001
group=HDMI


;;;;;;;;;;;;;;;;;;;;;;;;
; IIPS

[inf]
name=IIPS
sequence=-1
usequence=10000
group=IIPS


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Begin Media SDK

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Media SDK 1.5                  ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; 1.5 32 bit install

; Copy all files on Win7+
[Folder]
operation=copy
mode=overwrite
source=%MSDKSRC%
destination=%MSDKDEST15%
sequence=200
usequence=310
condition=IsOS(WIN7,MAXOS)
group=MSDK15

; On Vista copy main DLL only
[File]
operation=copy
mode=overwrite
source=%MSDKSRC%\libmfxhw32-i1.dll
destination=%MSDKDEST15%\libmfxhw32-i1.dll
sequence=200
usequence=310
condition=IsOS(VISTA,0x060001FF)
group=MSDK15

[Registry]
operation=create
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw32-i1-1
value=DeviceID
data=x%GFX_HWID%
type=dw
sequence=260
usequence=250
group=MSDK15

[Registry]
operation=create
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw32-i1-1
value=VendorID
data=x8086
type=dw
sequence=265
usequence=245
group=MSDK15

[Registry]
operation=create
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw32-i1-1
value=Merit
data=x%MSDK_MERIT%
type=dw
sequence=270
usequence=240
group=MSDK15

[Registry]
operation=create
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw32-i1-1
value=Path
data=%MSDKDEST15%\libmfxhw32-i1.dll
type=sz
sequence=275
usequence=235
group=MSDK15

[Registry]
operation=create
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw32-i1-1
value=APIVersion
data=x%MSDK_APIVERSION%
type=dw
sequence=280
usequence=230
group=MSDK15

[Registry]
operation=createonly
root=HKLM
path=SOFTWARE\Microsoft\Windows Media Foundation\HardwareMFT
value=EnableDecoders
data=x1
type=dw
condition=IsOS(WIN7,MAXOS)
sequence=285
usequence=225
group=MSDK15

[Registry]
operation=createonly
root=HKLM
path=SOFTWARE\Microsoft\Windows Media Foundation\HardwareMFT
value=EnableVideoProcessors
data=x1
type=dw
condition=IsOS(WIN7,MAXOS)
sequence=290
usequence=220
group=MSDK15

[RegisterCOM]
operation=reg
bin=%MSDKDEST15%\mfx_mft_h264vd_32.dll
condition=IsOS(WIN7,MAXOS)
sequence=295
usequence=215
group=MSDK15

[RegisterCOM]
operation=reg
bin=%MSDKDEST15%\mfx_mft_mp2vd_32.dll
condition=IsOS(WIN7,MAXOS)
sequence=300
usequence=210
group=MSDK15

[RegisterCOM]
operation=reg
bin=%MSDKDEST15%\mfx_mft_vc1vd_32.dll
condition=IsOS(WIN7,MAXOS)
sequence=305
usequence=205
group=MSDK15

[RegisterCOM]
operation=reg
bin=%MSDKDEST15%\mfx_mft_vpp_32.dll
condition=IsOS(WIN7,MAXOS)
sequence=310
usequence=200
group=MSDK15

; Remove SDK1.0 if it's installed
[Folder]
operation=deleteoninstall
destination=%commonappsdir%\Intel\Media SDK\i1\1.0
delete_if_not_empty=yes
sequence=315
group=MSDK15


; 1.5 32bit uninstall

[Folder]
operation=deleteonuninstall
destination=%commonappsdir%\Intel\Media SDK\i1
delete_if_not_empty=no
usequence=325
group=MSDK15

[Folder]
operation=deleteonuninstall
destination=%commonappsdir%\Intel\Media SDK
delete_if_not_empty=no
usequence=330
group=MSDK15

[Folder]
operation=deleteonuninstall
destination=%commonappsdir%\Intel
delete_if_not_empty=no
usequence=335
group=MSDK15

[Registry]
operation=deleteonuninstall
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw32-i1-1
delete_if_not_empty=no
usequence=340
group=MSDK15

[Registry]
operation=deleteonuninstall
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch
delete_if_not_empty=no
usequence=345
group=MSDK15

[Registry]
operation=deleteonuninstall
root=HKLM
path=SOFTWARE\Intel\MediaSDK
delete_if_not_empty=no
usequence=350
group=MSDK15

[Registry]
operation=deleteonuninstall
root=HKLM
path=SOFTWARE\Intel
delete_if_not_empty=no
usequence=355
group=MSDK15


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 64 bit

; 1.5 64 bit install

; Copy all files on Win7+
[Folder]
operation=copy
mode=overwrite
source=%MSDKSRC64%
destination=%MSDKDEST1564%
sequence=400
usequence=510
condition=Is64 AND IsOS(WIN7,MAXOS)
group=MSDK15

; On Vista copy main DLL only
[File]
operation=copy
mode=overwrite
source=%MSDKSRC64%\libmfxhw64-i1.dll
destination=%MSDKDEST1564%\libmfxhw64-i1.dll
sequence=400
usequence=510
condition=Is64 AND IsOS(VISTA,0x060001FF)
group=MSDK15

[Registry]
operation=create
hive=64
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw64-i1-1
value=DeviceID
data=x%GFX_HWID%
type=dw
condition=Is64
sequence=460
usequence=450
group=MSDK15

[Registry]
operation=create
hive=64
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw64-i1-1
value=VendorID
data=x8086
type=dw
condition=Is64
sequence=465
usequence=445
group=MSDK15

[Registry]
operation=create
hive=64
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw64-i1-1
value=Merit
data=x%MSDK_MERIT%
type=dw
condition=Is64
sequence=470
usequence=440
group=MSDK15

[Registry]
operation=create
hive=64
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw64-i1-1
value=Path
data=%MSDKDEST1564%\libmfxhw64-i1.dll
type=sz
condition=Is64
sequence=475
usequence=435
group=MSDK15

[Registry]
operation=create
hive=64
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw64-i1-1
value=APIVersion
data=x%MSDK_APIVERSION%
type=dw
condition=Is64
sequence=480
usequence=430
group=MSDK15

[Registry]
operation=createonly
hive=64
root=HKLM
path=SOFTWARE\Microsoft\Windows Media Foundation\HardwareMFT
value=EnableDecoders
data=x1
type=dw
condition=Is64 AND IsOS(WIN7,MAXOS)
sequence=485
usequence=425
group=MSDK15

[Registry]
operation=createonly
hive=64
root=HKLM
path=SOFTWARE\Microsoft\Windows Media Foundation\HardwareMFT
value=EnableVideoProcessors
data=x1
type=dw
condition=Is64 AND IsOS(WIN7,MAXOS)
sequence=490
usequence=420
group=MSDK15

[Process]
operation=runonly
bin=%system64%\regsvr32.exe
commandline=/s "%MSDKDEST1564%\mfx_mft_h264vd_64.dll"
wait=yes
condition=Is64 AND IsOS(WIN7,MAXOS)
sequence=495
group=MSDK15

[Process]
operation=runonly
bin=%system64%\regsvr32.exe
commandline=/s "%MSDKDEST1564%\mfx_mft_mp2vd_64.dll"
wait=yes
condition=Is64 AND IsOS(WIN7,MAXOS)
sequence=500
group=MSDK15

[Process]
operation=runonly
bin=%system64%\regsvr32.exe
commandline=/s "%MSDKDEST1564%\mfx_mft_vc1vd_64.dll"
wait=yes
condition=Is64 AND IsOS(WIN7,MAXOS)
sequence=505
group=MSDK15

[Process]
operation=runonly
bin=%system64%\regsvr32.exe
commandline=/s "%MSDKDEST1564%\mfx_mft_vpp_64.dll"
wait=yes
condition=Is64 AND IsOS(WIN7,MAXOS)
sequence=510
group=MSDK15

; Remove SDK1.0 if it's installed
[Folder]
operation=deleteoninstall
destination=%commonappsdir64%\Intel\Media SDK\i1\1.0
delete_if_not_empty=yes
condition=Is64
sequence=515
group=MSDK15


; 1.5 64 bit uninstall

[Process]
operation=runonuninstall
bin=%system64%\regsvr32.exe
commandline=/s /u "%MSDKDEST1564%\mfx_mft_h264vd_64.dll"
wait=yes
condition=Is64 AND IsOS(WIN7,MAXOS)
usequence=451
group=MSDK15

[Process]
operation=runonuninstall
bin=%system64%\regsvr32.exe
commandline=/s /u "%MSDKDEST1564%\mfx_mft_mp2vd_64.dll"
wait=yes
condition=Is64 AND IsOS(WIN7,MAXOS)
usequence=452
group=MSDK15

[Process]
operation=runonuninstall
bin=%system64%\regsvr32.exe
commandline=/s /u "%MSDKDEST1564%\mfx_mft_vc1vd_64.dll"
wait=yes
condition=Is64 AND IsOS(WIN7,MAXOS)
usequence=453
group=MSDK15

[Process]
operation=runonuninstall
bin=%system64%\regsvr32.exe
commandline=/s /u "%MSDKDEST1564%\mfx_mft_vpp_64.dll"
wait=yes
condition=Is64 AND IsOS(WIN7,MAXOS)
usequence=454
group=MSDK15

[Folder]
operation=deleteonuninstall
destination=%commonappsdir64%\Intel\Media SDK\i1
delete_if_not_empty=no
condition=Is64
usequence=520
group=MSDK15

[Folder]
operation=deleteonuninstall
destination=%commonappsdir64%\Intel\Media SDK
delete_if_not_empty=no
condition=Is64
usequence=525
group=MSDK15

[Folder]
operation=deleteonuninstall
destination=%commonappsdir64%\Intel
delete_if_not_empty=no
condition=Is64
usequence=530
group=MSDK15

[Registry]
operation=deleteonuninstall
hive=64
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw64-i1-1
delete_if_not_empty=no
condition=Is64
usequence=535
group=MSDK15

[Registry]
operation=deleteonuninstall
hive=64
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch
delete_if_not_empty=no
condition=Is64
usequence=540
group=MSDK15

[Registry]
operation=deleteonuninstall
hive=64
root=HKLM
path=SOFTWARE\Intel\MediaSDK
delete_if_not_empty=no
condition=Is64
usequence=545
group=MSDK15

[Registry]
operation=deleteonuninstall
hive=64
root=HKLM
path=SOFTWARE\Intel
delete_if_not_empty=no
condition=Is64
usequence=550
group=MSDK15


;;;;;;;;;;;;;;;;;;
; Media SDK 2.0 ;;
;;;;;;;;;;;;;;;;;;

; 32 bit

; Copy all files on Win7+
[Folder]
operation=copy
mode=overwrite
source=%MSDKSRC%
destination=%MSDKDEST20%
sequence=200
usequence=310
condition=IsOS(WIN7,MAXOS)
group=MSDK20

; On Vista copy main DLL only
[File]
operation=copy
mode=overwrite
source=%MSDKSRC%\libmfxhw32-s1.dll
destination=%MSDKDEST20%\libmfxhw32-s1.dll
sequence=200
usequence=310
condition=IsOS(VISTA,0x060001FF)
group=MSDK20

[Registry]
operation=create
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw32-s1-1
value=DeviceID
data=x%GFX_HWID%
type=dw
sequence=260
usequence=250
group=MSDK20

[Registry]
operation=create
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw32-s1-1
value=VendorID
data=x8086
type=dw
sequence=265
usequence=245
group=MSDK20

[Registry]
operation=create
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw32-s1-1
value=Merit
data=x%MSDK_MERIT%
type=dw
sequence=270
usequence=240
group=MSDK20

[Registry]
operation=create
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw32-s1-1
value=APIVersion
data=x%MSDK_APIVERSION%
type=dw
sequence=275
usequence=235
group=MSDK20

[Registry]
operation=create
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw32-s1-1
value=Path
data=%MSDKDEST20%\libmfxhw32-s1.dll
type=sz
sequence=280
usequence=230
group=MSDK20

[Registry]
operation=createonly
root=HKLM
path=SOFTWARE\Microsoft\Windows Media Foundation\HardwareMFT
value=EnableEncoders
data=x1
type=dw
condition=IsOS(WIN7,MAXOS)
sequence=285
usequence=225
group=MSDK20

[Registry]
operation=createonly
root=HKLM
path=SOFTWARE\Microsoft\Windows Media Foundation\HardwareMFT
value=EnableDecoders
data=x1
type=dw
condition=IsOS(WIN7,MAXOS)
sequence=285
usequence=225
group=MSDK20

[Registry]
operation=createonly
root=HKLM
path=SOFTWARE\Microsoft\Windows Media Foundation\HardwareMFT
value=EnableVideoProcessors
data=x1
type=dw
condition=IsOS(WIN7,MAXOS)
sequence=290
usequence=220
group=MSDK20

[RegisterCOM]
operation=reg
bin=%MSDKDEST20%\mfx_mft_h264vd_32.dll
condition=IsOS(WIN7,MAXOS)
sequence=295
usequence=215
group=MSDK20

[RegisterCOM]
operation=reg
bin=%MSDKDEST20%\mfx_mft_h264ve_32.dll
condition=IsOS(WIN7,MAXOS)
sequence=297
usequence=213
group=MSDK20

[RegisterCOM]
operation=reg
bin=%MSDKDEST20%\mfx_mft_mp2vd_32.dll
condition=IsOS(WIN7,MAXOS)
sequence=300
usequence=210
group=MSDK20

[RegisterCOM]
operation=reg
bin=%MSDKDEST20%\mfx_mft_vc1vd_32.dll
condition=IsOS(WIN7,MAXOS)
sequence=305
usequence=205
group=MSDK20

[RegisterCOM]
operation=reg
bin=%MSDKDEST20%\mfx_mft_vpp_32.dll
condition=IsOS(WIN7,MAXOS)
sequence=310
usequence=200
group=MSDK20

; Cleanup 1.5 in case it was previously installed
[Folder]
operation=deleteoninstall
destination=%MSDKDEST15%
delete_if_not_empty=yes
sequence=315
group=MSDK20

[Folder]
operation=deleteoninstall
destination=%commonappsdir%\Intel\Media SDK\i1
delete_if_not_empty=no
sequence=320
group=MSDK20

[Registry]
operation=deleteoninstall
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw32-i1-1
delete_if_not_empty=yes
sequence=325
group=MSDK20


; 2.0 32bit uninstall

[Folder]
operation=deleteonuninstall
destination=%commonappsdir%\Intel\Media SDK\s1
delete_if_not_empty=no
usequence=325
group=MSDK20

[Folder]
operation=deleteonuninstall
destination=%commonappsdir%\Intel\Media SDK
delete_if_not_empty=no
usequence=330
group=MSDK20

[Folder]
operation=deleteonuninstall
destination=%commonappsdir%\Intel
delete_if_not_empty=no
usequence=335
group=MSDK20

[Registry]
operation=deleteonuninstall
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw32-s1-1
delete_if_not_empty=no
usequence=340
group=MSDK20

[Registry]
operation=deleteonuninstall
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch
delete_if_not_empty=no
usequence=345
group=MSDK20

[Registry]
operation=deleteonuninstall
root=HKLM
path=SOFTWARE\Intel\MediaSDK
delete_if_not_empty=no
usequence=350
group=MSDK20

[Registry]
operation=deleteonuninstall
root=HKLM
path=SOFTWARE\Intel
delete_if_not_empty=no
usequence=355
group=MSDK20


; 64 bit

; Copy all files on Win7+
[Folder]
operation=copy
mode=overwrite
source=%MSDKSRC64%
destination=%MSDKDEST2064%
sequence=400
usequence=510
condition=Is64 AND IsOS(WIN7,MAXOS)
group=MSDK20

; On Vista copy main DLL only
[File]
operation=copy
mode=overwrite
source=%MSDKSRC64%\libmfxhw64-s1.dll
destination=%MSDKDEST2064%\libmfxhw64-s1.dll
error=ignore
condition=Is64
sequence=400
usequence=510
condition=Is64 AND IsOS(VISTA,0x060001FF)
group=MSDK20

[Registry]
operation=create
hive=64
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw64-s1-1
value=DeviceID
data=x%GFX_HWID%
type=dw
condition=Is64
sequence=405
usequence=405
group=MSDK20

[Registry]
operation=create
hive=64
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw64-s1-1
value=VendorID
data=x8086
type=dw
condition=Is64
sequence=410
usequence=410
group=MSDK20

[Registry]
operation=create
hive=64
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw64-s1-1
value=Merit
data=x%MSDK_MERIT%
type=dw
condition=Is64
sequence=415
usequence=415
group=MSDK20

[Registry]
operation=create
hive=64
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw64-s1-1
value=APIVersion
data=x%MSDK_APIVERSION%
type=dw
condition=Is64
sequence=420
usequence=420
group=MSDK20

[Registry]
operation=create
hive=64
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw64-s1-1
value=Path
data=%MSDKDEST2064%\libmfxhw64-s1.dll
type=sz
condition=Is64
sequence=425
usequence=425
group=MSDK20

[Registry]
operation=createonly
hive=64
root=HKLM
path=SOFTWARE\Microsoft\Windows Media Foundation\HardwareMFT
value=EnableEncoders
data=x1
type=dw
condition=Is64 AND IsOS(WIN7,MAXOS)
sequence=485
usequence=425
group=MSDK20

[Registry]
operation=createonly
hive=64
root=HKLM
path=SOFTWARE\Microsoft\Windows Media Foundation\HardwareMFT
value=EnableDecoders
data=x1
type=dw
condition=Is64 AND IsOS(WIN7,MAXOS)
sequence=485
usequence=425
group=MSDK20

[Registry]
operation=createonly
hive=64
root=HKLM
path=SOFTWARE\Microsoft\Windows Media Foundation\HardwareMFT
value=EnableVideoProcessors
data=x1
type=dw
condition=Is64 AND IsOS(WIN7,MAXOS)
sequence=490
usequence=420
group=MSDK20

[Process]
operation=runonly
bin=%system64%\regsvr32.exe
commandline=/s "%MSDKDEST2064%\mfx_mft_h264vd_64.dll"
wait=yes
condition=Is64 AND IsOS(WIN7,MAXOS)
sequence=495
group=MSDK20

[Process]
operation=runonly
bin=%system64%\regsvr32.exe
commandline=/s "%MSDKDEST2064%\mfx_mft_h264ve_64.dll"
wait=yes
condition=Is64 AND IsOS(WIN7,MAXOS)
sequence=495
group=MSDK20

[Process]
operation=runonly
bin=%system64%\regsvr32.exe
commandline=/s "%MSDKDEST2064%\mfx_mft_mp2vd_64.dll"
wait=yes
condition=Is64 AND IsOS(WIN7,MAXOS)
sequence=500
group=MSDK20

[Process]
operation=runonly
bin=%system64%\regsvr32.exe
commandline=/s "%MSDKDEST2064%\mfx_mft_vc1vd_64.dll"
wait=yes
condition=Is64 AND IsOS(WIN7,MAXOS)
sequence=505
group=MSDK20

[Process]
operation=runonly
bin=%system64%\regsvr32.exe
commandline=/s "%MSDKDEST2064%\mfx_mft_vpp_64.dll"
wait=yes
condition=Is64 AND IsOS(WIN7,MAXOS)
sequence=510
group=MSDK20

; Cleanup 1.5 in case it was previously installed
[Folder]
operation=deleteoninstall
destination=%MSDKDEST1564%
delete_if_not_empty=yes
condition=Is64
sequence=515
group=MSDK20

[Folder]
operation=deleteoninstall
destination=%commonappsdir64%\Intel\Media SDK\i1
delete_if_not_empty=no
condition=Is64
sequence=520
group=MSDK20

[Registry]
operation=deleteoninstall
hive=64
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw64-i1-1
delete_if_not_empty=yes
condition=Is64
sequence=525
group=MSDK20


; 2.0 64bit uninstall

[Process]
operation=runonuninstall
bin=%system64%\regsvr32.exe
commandline=/s /u "%MSDKDEST2064%\mfx_mft_h264vd_64.dll"
wait=yes
condition=Is64 AND IsOS(WIN7,MAXOS)
usequence=450
group=MSDK20

[Process]
operation=runonuninstall
bin=%system64%\regsvr32.exe
commandline=/s /u "%MSDKDEST2064%\mfx_mft_h264ve_64.dll"
wait=yes
condition=Is64 AND IsOS(WIN7,MAXOS)
usequence=455
group=MSDK20

[Process]
operation=runonuninstall
bin=%system64%\regsvr32.exe
commandline=/s /u "%MSDKDEST2064%\mfx_mft_mp2vd_64.dll"
wait=yes
condition=Is64 AND IsOS(WIN7,MAXOS)
usequence=460
group=MSDK20

[Process]
operation=runonuninstall
bin=%system64%\regsvr32.exe
commandline=/s /u "%MSDKDEST2064%\mfx_mft_vc1vd_64.dll"
wait=yes
condition=Is64 AND IsOS(WIN7,MAXOS)
usequence=465
group=MSDK20

[Process]
operation=runonuninstall
bin=%system64%\regsvr32.exe
commandline=/s /u "%MSDKDEST2064%\mfx_mft_vpp_64.dll"
wait=yes
condition=Is64 AND IsOS(WIN7,MAXOS)
usequence=470
group=MSDK20

[Folder]
operation=deleteonuninstall
destination=%commonappsdir64%\Intel\Media SDK\s1
delete_if_not_empty=no
condition=Is64
usequence=515
group=MSDK20

[Folder]
operation=deleteonuninstall
destination=%commonappsdir64%\Intel\Media SDK
delete_if_not_empty=no
condition=Is64
usequence=520
group=MSDK20

[Folder]
operation=deleteonuninstall
destination=%commonappsdir64%\Intel
delete_if_not_empty=no
condition=Is64
usequence=525
group=MSDK20

[Registry]
operation=deleteonuninstall
hive=64
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch\hw64-s1-1
delete_if_not_empty=no
condition=Is64
usequence=530
group=MSDK20

[Registry]
operation=deleteonuninstall
hive=64
root=HKLM
path=SOFTWARE\Intel\MediaSDK\Dispatch
delete_if_not_empty=no
condition=Is64
usequence=535
group=MSDK20

[Registry]
operation=deleteonuninstall
hive=64
root=HKLM
path=SOFTWARE\Intel\MediaSDK
delete_if_not_empty=no
condition=Is64
usequence=540
group=MSDK20

[Registry]
operation=deleteonuninstall
hive=64
root=HKLM
path=SOFTWARE\Intel
delete_if_not_empty=no
condition=Is64
usequence=545
group=MSDK20

;;;;;;;;;;;;;;;;;;
; End Media SDK ;;
;;;;;;;;;;;;;;;;;;


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

[Process]
operation=stoponuninstall
bin=GfxUI.exe
usequence=-13
group=GFX

[Process]
operation=stoponuninstall
bin=igfxtray.exe
usequence=-12
group=GFX

[Process]
operation=stoponuninstall
bin=igfxsrvc.exe
usequence=-11
group=GFX

[Process]
operation=stoponuninstall
bin=hkcmd.exe
usequence=-10
group=GFX

[Process]
operation=stoponuninstall
bin=igfxpers.exe
usequence=-9
group=GFX

[Process]
operation=stoponuninstall
bin=igfxext.exe
usequence=-8
group=GFX

[File]
operation=deleteonuninstall
destination=%windir%\system32\igfxsrvc.exe
sequence=2
group=GFX

[File]
operation=deleteonuninstall
destination=%windir%\System32\igfxtray.exe
group=GFX
usequence=2

[Registry]
operation=deleteonuninstall
root=HKLM
path=SOFTWARE\Intel\Display
delete_if_not_empty=YES
usequence=12000
group=GFX

[Registry]
operation=deleteonuninstall
root=HKLM
path=SOFTWARE\Microsoft\Windows\CurrentVersion\Run
value=HotKeysCmds
condition=NOT Is64
group=GFX

[Registry]
operation=deleteonuninstall
root=HKLM
path=SOFTWARE\Microsoft\Windows\CurrentVersion\Run
value=IgfxTray
condition=NOT Is64
group=GFX

[Registry]
operation=deleteonuninstall
root=HKLM
path=SOFTWARE\Microsoft\Windows\CurrentVersion\Run
value=Persistence
condition=NOT Is64
group=GFX

[Registry]
operation=deleteonuninstall
root=HKLM
path=System\CurrentControlSet\Services\ialm\Device0
delete_if_not_empty=YES
usequence=100
group=GFX

[Registry]
operation=deleteonuninstall
root=HKLM
path=System\CurrentControlSet\Services\ialm\Device1
delete_if_not_empty=YES
usequence=100
group=GFX

[Registry]
operation=deleteonuninstall
root=HKLM
path=SOFTWARE\Intel\ICC\Applications\Graphics
usequence=100
group=GFX

[registry]
operation=deleteonuninstall
root=HKCU
path=SOFTWARE\Intel\ICC\Applications\Intel Graphics Driver
delete_if_not_empty=YES
condition=NOT Is64
usequence=100
group=GFX


;; 64 bit uninstall stuff

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

[Registry]
operation=deleteonuninstall
hive=64
root=HKLM
path=SOFTWARE\Microsoft\Windows\CurrentVersion\Run
value=HotKeysCmds
condition=Is64
group=GFX

[Registry]
operation=deleteonuninstall
hive=64
root=HKLM
path=SOFTWARE\Microsoft\Windows\CurrentVersion\Run
value=IgfxTray
condition=Is64
group=GFX

[Registry]
operation=deleteonuninstall
hive=64
root=HKLM
path=SOFTWARE\Microsoft\Windows\CurrentVersion\Run
value=Persistence
condition=Is64
group=GFX

[registry]
operation=deleteonuninstall
hive=64
root=HKCU
path=SOFTWARE\Intel\ICC\Applications\Intel Graphics Driver
delete_if_not_empty=YES
condition=Is64
usequence=100
group=GFX

[Registry]
operation=deleteonuninstall
root=HKLM
hive=64
path=SOFTWARE\Intel\Display
delete_if_not_empty=YES
condition=Is64
usequence=12000
group=GFX

