Install/Upgrade: TrID 2.10 - Windows
Log In or Register to download the BES file, and more.

0 Votes

Description

<enter a description of the task here>

Property Details

ID3896
StatusAlpha - Code that was just developed
TitleInstall/Upgrade: TrID 2.10 - Windows
DomainBESC
CategorySoftware Sharing
Download Size30602
SourceInternal
Source IDjgstew
Source Release Date10/15/2014 12:00:00 AM
Added by on 10/15/2014 12:51:48 PM
Last Modified by on 10/15/2014 12:51:48 PM
Counters 3449 Views / 3 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Windows Only (Relevance 2997197)
Used in 6452 fixlets and 32 analyses   * Results in a true/false
Show indented relevance
/* Windows Only */ windows of operating system
Used in 158 fixlets and 17 analyses   * Results in a true/false
Show indented relevance
/* Windows XP or Higher */ version of operating system >= "5.1"
Used in 1 fixlet   * Results in a true/false
Show indented relevance
not exists keys whose(value "DisplayName" of it as string contains "TrID" AND value "DisplayVersion" of it as string as version >= "2.10") of keys "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of registry

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
// -- START:DOWNLOADS -----------------------

// - This is the commandline 7zip console which is use to unpack installers
// - https://www.virustotal.com/en/file/2a3afe19c180f8373fa02ff00254d5394fec0349f5804e0ad2f6067854ff28ac/analysis
prefetch 7za.zip sha1:9ce9ce89ebc070fea5d679936f21f9dde25faae0 size:384846 http://softlayer-dal.dl.sourceforge.net/project/sevenzip/7-Zip/9.20/7za920.zip

// - This unzip is a compiled verion of unzip v5.52 fom http://info-zip.org/
// - https://www.virustotal.com/en/file/8d9b5190aace52a1db1ac73a65ee9999c329157c8e88f61a772433323d6b7a4a/analysis
prefetch unzip.exe sha1:e1652b058195db3f5f754b7ab430652ae04a50b8 size:167936 http://software.bigfix.com/download/redist/unzip-5.52.exe

// DOWNLOAD zipinst
// http://www.nirsoft.net/utils/zipinst.html
prefetch zipinst.exe sha1:6a1290fd85019dc80e34abeb4be5bcbbc742d012 size:39424 http://www.nirsoft.net/utils/zipinst.exe

// DOWNLOAD
prefetch trid_w32.zip sha1:63c395f363164de84033ff6e3fb1a9886800c73c size:30602 http://mark0.net/download/trid_w32.zip
prefetch triddefs.zip sha1:d1525aa9de2a4e677a798a36cce9c0ca88c2d9ae size:736657 http://mark0.net/download/triddefs.zip
// http://mark0.net/download/triddefs.trd.md5

// -- END:DOWNLOADS -------------------------


// ADD TO UTILITY CACHE (to use in multiple tasks)
utility __Download\zipinst.exe
utility __Download\unzip.exe
utility __Download\7za.zip

// EXTRACT using unzip: the 7zip command line utility
waithidden __Download\unzip.exe -o "{pathname of file "7za.zip" of folder "__Download" of client folder of current site}" 7za.exe -d "{pathname of folder "__Download" of client folder of current site}"

// EXTRACT using 7zip: the triddefs update
waithidden "{(pathname of file "7za.exe" of folder "__Download" of client folder of current site)}" e -y -o"{ pathname of folder "__Download" of client folder of current site }" "{pathname of file "triddefs.zip" of folder "__Download" of client folder of current site}"

// ADD new triddefs to trid_w32.zip
waithidden "{(pathname of file "7za.exe" of folder "__Download" of client folder of current site)}" a -y "{pathname of file "trid_w32.zip" of folder "__Download" of client folder of current site}" -ir!.\__Download\*.trd

// Create zipinst config file
// http://www.nirsoft.net/utils/zipinst.html
delete __createfile
delete __Download\zipinst.zic
createfile until END_OF_FILE
[install]
ProductName=TrID
ProductVersion=2.10
CompanyName=Marco Pontello
Description=http://mark0.net/soft-trid-e.html
ZipFile={ pathname of files whose(name of it = "trid_w32.zip") of folder "__Download" of client folder of current site }
AddUninstall=1
AddUninstallShortcut=0
DesktopShortcut=0
InstallTo=1
StartMenuShortcut=0
NoUserInteraction=1
NoExtraUninstallInfo=0
NoSuccessMessage=1
UninstallInDestFolder=1
END_OF_FILE

move __createfile "{pathname of client folder of current site}\__Download\zipinst.zic"

// INSTALL
waithidden __Download\zipinst.exe /cfg "{pathname of client folder of current site}\__Download\zipinst.zic"
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!