Deploy - Paint.Net - 4.0.9.0 - Windows
Log In or Register to download the BES file, and more.

0 Votes

Description

This fixlet is for Deploy - Paint.Net - 4.0.9.0 - Windows and was generated by William Easton as part of the C3 Patch offering. Access to this content is granted for free. If you make improvements to this fixlet please share them on BigFix.Me or on the orginal content on BigFix.Me. If you have paid for access to this content or if you have issues with this fixlet please contact Strawgate on forum.bigfix.com or comment on this piece of content on BigFix.Me.

Property Details

ID20315
TitleDeploy - Paint.Net - 4.0.9.0 - Windows
SourceC3 Patch
Source ID!FixletID!
Source SeverityUnspecified
Source Release Date1/1/2016 12:00:00 AM
CVENamesUnspecified
Added by on 4/27/2016 9:55:47 PM
Last Modified by on 7/13/2016 7:40:16 PM
Counters 2354 Views / 65 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

Used in 1 fixlet   * Results in a true/false
Show indented relevance
(windows of operating system) and (version of operating system >= "5.1") and (if exists property "in proxy agent context" then ( not in proxy agent context ) else true) and (free space of drive of client > 6978915 * 2) and (not exists (((keys of keys "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall" of ( x32 registry; (if exists x64 registry then x64 registry else nothing) )) whose (value "DisplayName" of it as string starts with "paint.net")))) and (exists (keys of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP" of native registry) whose (value "Version" of key "Full" of it as string as version >= "4.6" as version))

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
//Comment

prefetch 77715CB9FCC10BD907840DA8A460D14973869FD1 sha1:77715CB9FCC10BD907840DA8A460D14973869FD1 size:6978915 http://www.dotpdn.com/files/paint.net.4.0.9.install.zip sha256:6BF20D70B74F701037ED603F681F6C8E04B1815AA740A0F264F60934FFE565D0
prefetch unzip.exe sha1:e1652b058195db3f5f754b7ab430652ae04a50b8 size:167936 http://software.bigfix.com/download/redist/unzip-5.52.exe
prefetch 7z-1514.zip sha1:0ab816b68b33b26c640c7a3484229977ea391e41 size:1710815 https://raw.githubusercontent.com/strawgate/Patching-Tools/master/Downloads/7-Zip/7z-1514.zip

utility __Download\unzip.exe
utility __Download\7z-1514.zip

parameter "baseFolder" = "__Download/"

// Unzip Paint.Net Zip
waithidden __Download\unzip.exe -o "{pathname of client folder of current site}\{parameter "baseFolder"}77715CB9FCC10BD907840DA8A460D14973869FD1" -d "{pathname of client folder of current site}\__Download"

// Unzip 7-Zip
waithidden __Download\unzip.exe -o "{pathname of file "7z-1514.zip" of folder "__Download" of client folder of current site}" -d "{pathname of folder "__Download" of client folder of current site}"

// Unzip Paint.Net Installer
waithidden "{ (pathname of file "7z.exe" of folder "7z" 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 whose (name of it contains "paint") of folder "__Download" of client folder of current site}"

parameter "logFolder" = "{parent folder of client folder of current site | data folder of client}/__Global/PGWLogs"
folder create "{parameter "logFolder"}"
parameter "logFile" = "PGW.log"

delete __createfile
delete run.bat

createfile until _end_
@ECHO OFF
cd "{parameter "baseFolder"}"
mkdir "{parameter "logFolder"}"

echo %DATE:~10,4%_%DATE:~4,2%_%DATE:~7,2% %time% - Action ID: {id of active action as string | "Debugger" as string} - Paint.Net >> "{parameter "logFolder"}/{parameter "logFile"}"

msiexec /i "{if (x64 of operating system) then ("PaintDotNet_x64.msi") else ("PaintDotNet_x86.msi")}" /qn USINGWIZARD=1

echo Return code: %errorlevel% >> "{parameter "logFolder"}/{parameter "logFile"}"
echo. >> "{parameter "logFolder"}/{parameter "logFile"}"

_end_

move __createfile run.bat

override wait
hidden=true
completion=job
wait run.bat
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!