Skip to content

Commit

Permalink
work in progress KVRT
Browse files Browse the repository at this point in the history
  • Loading branch information
jgstew committed Jun 5, 2024
1 parent 2b63477 commit 29020e2
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Test_Changed_Recipes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:

- name: Install prereq
if: steps.changed-files.outputs.any_changed == 'true'
run: apt-get install msitools -y
run: sudo apt-get install msitools -y

- name: run recipe autopkg
if: steps.changed-files.outputs.any_changed == 'true'
Expand Down
53 changes: 53 additions & 0 deletions Kaspersky/KasperskyVirusRemovalTool-Win-Run.bes.mustache
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<BES xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BES.xsd">
<{{TypeTaskOrFixlet}}{{^TypeTaskOrFixlet}}Task{{/TypeTaskOrFixlet}}>
<Title>Run: {{DisplayName}} v{{version}} - Windows</Title>
<Description><![CDATA[
This task will run {{DisplayName}} on the system.
]]></Description>
<Relevance>windows of operating system</Relevance>
<Relevance><![CDATA[ TRUE ]]></Relevance>
<Category></Category>
<DownloadSize>{{DownloadSize}}{{^DownloadSize}}0{{/DownloadSize}}</DownloadSize>
<Source>{{DisplayName}}</Source>
<SourceID>jgstew</SourceID>
<SourceReleaseDate>{{SourceReleaseDate}}</SourceReleaseDate>
<SourceSeverity></SourceSeverity>
<CVENames></CVENames>
<SANSID></SANSID>
<MIMEField>
<Name>action-ui-metadata</Name>
<Value>{ {{#version}}"version":"{{version}}",{{/version}}"size":{{DownloadSize}}{{^DownloadSize}}0{{/DownloadSize}}{{^patch}}{{#icon_base64}},"icon":"data:{{icon_type}}{{^icon_type}}image/png{{/icon_type}};base64,{{icon_base64}}"{{/icon_base64}}{{/patch}} }</Value>
</MIMEField>
<MIMEField>
<Name>x-fixlet-modification-time</Name>
<Value>{{x-fixlet-modification-time}}</Value>
</MIMEField>
<Domain>BESC</Domain>
<DefaultAction ID="Action1">
<Description>
<PreLink>Click </PreLink>
<Link>here</Link>
<PostLink> to deploy {{DisplayName}} v{{version}}.</PostLink>
</Description>
<ActionScript MIMEType="application/x-Fixlet-Windows-Shell"><![CDATA[
// Download:
{{{prefetch}}}
parameter "RunFolder" = "{ (it & "\KVRT") of pathnames of folders "temp" of windows folder }"
folder delete "{ parameter "RunFolder" }"
folder create "{ parameter "RunFolder" }"
// Copy to RunFolder
copy __Download\KVRT.exe "{parameter "RunFolder"}\KVRT.exe"
// https://support.kaspersky.com/kvrt2015/howto/8537
// Run:
run "{parameter "RunFolder"}\KVRT.exe" -accepteula -d "{parameter "RunFolder"}" -silent -adinsilent -processlevel 1
// End]]></ActionScript>
<SuccessCriteria Option="OriginalRelevance"></SuccessCriteria>
</DefaultAction>
</{{TypeTaskOrFixlet}}{{^TypeTaskOrFixlet}}Task{{/TypeTaskOrFixlet}}>
</BES>
24 changes: 24 additions & 0 deletions Kaspersky/KasperskyVirusRemovalTool-Win.bigfix.recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
Description: Generates a BigFix Task for the latest KasperskyVirusRemovalTool
Identifier: com.github.jgstew.bigfix.KasperskyVirusRemovalTool-Win
Input:
NAME: KasperskyVirusRemovalTool-Win
DisplayName: KasperskyVirusRemovalTool
MinimumVersion: "2.3"
ParentRecipe: com.github.jgstew.download.KasperskyVirusRemovalTool-Win
Process:
- Processor: com.github.jgstew.SharedProcessors/BigFixPrefetchItem

- Processor: com.github.jgstew.SharedProcessors/BigFixSetupTemplateDictionary
# Arguments:
# template_version: "%version_maximum%"

- Processor: com.github.jgstew.SharedProcessors/TemplateDictionaryAppendInput

- Processor: com.github.jgstew.SharedProcessors/ContentFromTemplate
Arguments:
# use UNIX style paths so this works on Windows and non-Windows:
template_file_path: ./DataDog/DataDogAgent-Win-Install_Update.bes.mustache
content_file_pathname: "%RECIPE_CACHE_DIR%/%NAME%-InstallUpdate.bes"

- Processor: com.github.jgstew.SharedProcessors/BESImport
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
Description: Downloads the latest DataDog Agent for Windows
Description: Downloads the latest KasperskyVirusRemovalTool for Windows
Identifier: com.github.jgstew.download.KasperskyVirusRemovalTool-Win
Input:
NAME: KasperskyVirusRemovalTool-Win
Expand Down

0 comments on commit 29020e2

Please sign in to comment.