diff --git a/sample/All/CLIENT_DATA/setup32.opsiscript b/sample/All/CLIENT_DATA/setup32.opsiscript index 4ecca93..278538f 100644 --- a/sample/All/CLIENT_DATA/setup32.opsiscript +++ b/sample/All/CLIENT_DATA/setup32.opsiscript @@ -84,6 +84,9 @@ else comment "Create shortcuts" LinkFolder_install + comment "File Type Association" + FileTypeAssoc_install + endif [Winbatch_install] @@ -163,6 +166,16 @@ copy "$IniCfgFile$" "$InstallDir$" ; icon_index: 2 ; end_link +[FileTypeAssoc_install] +; Sample Usage: +; Set Acrobat Reader DC as Default .pdf reader: +; +; SFTA AcroExch.Document.DC .pdf +; +; Set Sumatra PDF as Default .pdf reader: +; +; SFTA Applications\SumatraPDF.exe .pdf + [Sub_get_licensekey] if opsiLicenseManagementEnabled comment "License management is enabled and will be used" diff --git a/sample/All/CLIENT_DATA/setup3264.opsiscript b/sample/All/CLIENT_DATA/setup3264.opsiscript index 32e8e87..6c45260 100644 --- a/sample/All/CLIENT_DATA/setup3264.opsiscript +++ b/sample/All/CLIENT_DATA/setup3264.opsiscript @@ -93,6 +93,8 @@ else Registry_install /32Bit comment "Create shortcuts" LinkFolder_install + comment "File Type Association" + FileTypeAssoc_install endif if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only")) @@ -107,6 +109,8 @@ else Registry_install /64Bit comment "Create shortcuts" LinkFolder_install + comment "File Type Association" + FileTypeAssoc_install endif endif @@ -223,6 +227,16 @@ copy "$IniCfgFile$" "$InstallDir64$" ; icon_index: 2 ; end_link +[FileTypeAssoc_install] +; Sample Usage: +; Set Acrobat Reader DC as Default .pdf reader: +; +; SFTA AcroExch.Document.DC .pdf +; +; Set Sumatra PDF as Default .pdf reader: +; +; SFTA Applications\SumatraPDF.exe .pdf + [Sub_get_licensekey] comment "License management is enabled and will be used" diff --git a/sample/All/CLIENT_DATA/setup64.opsiscript b/sample/All/CLIENT_DATA/setup64.opsiscript index a8cb4cf..60d6646 100644 --- a/sample/All/CLIENT_DATA/setup64.opsiscript +++ b/sample/All/CLIENT_DATA/setup64.opsiscript @@ -84,6 +84,9 @@ else comment "Create shortcuts" LinkFolder_install + comment "File Type Association" + FileTypeAssoc_install + endif [Winbatch_install] @@ -163,6 +166,16 @@ copy "$IniCfgFile$" "$InstallDir$" ; icon_index: 2 ; end_link +[FileTypeAssoc_install] +; Sample Usage: +; Set Acrobat Reader DC as Default .pdf reader: +; +; SFTA AcroExch.Document.DC .pdf +; +; Set Sumatra PDF as Default .pdf reader: +; +; SFTA Applications\SumatraPDF.exe .pdf + [Sub_get_licensekey] if opsiLicenseManagementEnabled comment "License management is enabled and will be used" diff --git a/sample/All/OPSI/control b/sample/All/OPSI/control index e269718..fbd308e 100644 --- a/sample/All/OPSI/control +++ b/sample/All/OPSI/control @@ -36,3 +36,9 @@ requiredProduct: sereby.aio requiredStatus: installed requirementType: before +[ProductDependency] +action: setup +requiredProduct: danysys.sfta +requiredStatus: installed +requirementType: before +