u2111 Posted January 15, 2011 Report Share Posted January 15, 2011 Here's a template to keep updated Piriform portable apps, which only require app name and 7zip/7za somewhere to extract application. Website URL field require v1.6, else you can use this instead : <WebsiteUrl>http://www.piriform.com/<placeholder name="Lowercase appname" variable="appname:tolower" /></WebsiteUrl> It include a Guid (prototype template).* Globals : ketarin-version=1.6.0.400 7za=..\7-Zip\7za.exe Template : <?xml version="1.0" encoding="utf-8"?> <Jobs> <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="dffa70a5-b3bf-4cc6-8d1c-18ee1a8790e2"> <SourceTemplate><![CDATA[]]></SourceTemplate> <WebsiteUrl>http://www.piriform.com/{appname:tolower}</WebsiteUrl> <UserAgent>Ketarin/{ketarin-version}</UserAgent> <UserNotes /> <LastFileSize>0</LastFileSize> <LastFileDate xsi:nil="true" /> <IgnoreFileInformation>true</IgnoreFileInformation> <DownloadBeta>Default</DownloadBeta> <CheckForUpdatesOnly>false</CheckForUpdatesOnly> <VariableChangeIndicator>version</VariableChangeIndicator> <CanBeShared>true</CanBeShared> <ShareApplication>false</ShareApplication> <ExclusiveDownload>false</ExclusiveDownload> <HttpReferer /> <SetupInstructions /> <Variables> <item> <key> <string>version</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>Version\s+([0-9.]{2,})</Regex> <Url>http://www.piriform.com/{appname:tolower}/download</Url> <Name>version</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand>pushd "{file:directory}" {7za} e -y "{file:filename}" del "{file:filename}" popd</ExecuteCommand> <ExecutePreCommand /> <ExecuteCommandType>Batch</ExecuteCommandType> <ExecutePreCommandType>Batch</ExecutePreCommandType> <Category /> <SourceType>FixedUrl</SourceType> <DeletePreviousFile>true</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <TargetPath>{root-soft}\{appname}\</TargetPath> <FixedDownloadUrl>http://www.piriform.com/{appname:tolower}/download/portable/downloadfile</FixedDownloadUrl> <Name><placeholder name="Piriform application" /></Name> </ApplicationJob> </Jobs> *: Any way to differentiate topic templates with and without Guid ? Link to comment Share on other sites More sharing options...
Omniferum Posted January 16, 2011 Report Share Posted January 16, 2011 You can just use these lines of code <FixedDownloadUrl>http://www.piriform.com/<placeholder name="Name of application" />/builds/standard/downloadfile</FixedDownloadUrl> <Name><placeholder name="Name of application" /></Name> Type in your application name and away you go. Defraggler/ccleaner etc. however I prefer actually just copying and pasting URL's into it and populating it that way. Put this in between the <variables> </variables> tags <item> <key> <string>name</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex><title>(.*?) \-</Regex> <Url><placeholder name="Homepage URL"/></Url> <Name>name</Name> </UrlVariable> </value> </item> And use these pieces of code instead. <FixedDownloadUrl>http://www.piriform.com/<placeholder name="Name of application" variable="name" />/builds/standard</FixedDownloadUrl> <Name><placeholder name="Name of application" variable="name" /></Name> And then all you need to do is just paste any URL from the app page and it will populate the entire thing itself. Link to comment Share on other sites More sharing options...
u2111 Posted January 16, 2011 Author Report Share Posted January 16, 2011 My way only require the app name, and will also populate the entire thing itself . So I'm keeping mine. Link to comment Share on other sites More sharing options...
u2111 Posted January 16, 2011 Author Report Share Posted January 16, 2011 Update to use variable in website field (require 1.6) and correct version detection. Link to comment Share on other sites More sharing options...
Guest Dameek Posted October 21, 2011 Report Share Posted October 21, 2011 I'm new to this....but I couldn't find where the install files were at. Error message at Installing. 4:24 PM CCleaner: Skipped since no setup instructions exist Link to comment Share on other sites More sharing options...
shawn Posted October 24, 2011 Report Share Posted October 24, 2011 This particular template assumes you have a global variable named "root-soft" that's setup as the path where you want all your downloads to be stored. If that variable isn't assigned, it should be placing the files relative to (in the same folder or child folders of) wherever you have the Ketarin application running from. Link to comment Share on other sites More sharing options...
Tomorrow Posted November 7, 2011 Report Share Posted November 7, 2011 I'm new to this....but I couldn't find where the install files were at. Error message at Installing. 4:24 PM CCleaner: Skipped since no setup instructions exist Means you have to define setup instructions in Edit - Commands to have it install.I use this for CCleaner: "{file}" /S Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now