Jump to content
Ketarin forum

shawn

Moderators
  • Content Count

    1,016
  • Joined

  • Last visited

About shawn

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. what is your simultaneous download setting?
  2. Here's a working template for the x86 version (the only one that reliably supports TextFX): <?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="071dc699-15b5-4a76-8296-d1d9b91d2449"> <Category>Editors</Category> <WebsiteUrl>https://notepad-plus-plus.org/</WebsiteUrl> <UserAgent>wget</UserAgent> <UserNotes /> <LastFileSize>3982472</LastFileSize> <LastFileDate>2019-11-03T11:08:19.2683762</LastFileDate> <IgnoreFileInformation>false</IgnoreFileInformation> <DownloadBeta>Default</DownloadBeta> <DownloadDate>2009-03-29T18:49:42</DownloadDate> <CheckForUpdatesOnly>false</CheckForUpdatesOnly> <VariableChangeIndicator>version</VariableChangeIndicator> <HashVariable /> <HashType>None</HashType> <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>&gt;v([\d\.]+)&lt;</Regex> <Url>https://img.shields.io/github/v/release/notepad-plus-plus/notepad-plus-plus.svg</Url> <Name>version</Name> </UrlVariable> </value> </item> <item> <key> <string>sdownload</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>http://download.notepad-plus-plus.org/repository/{version:split:.:0}.x/{version}/npp.{version}.Installer.x64.exe</TextualContent> <Name>sdownload</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand /> <ExecutePreCommand /> <ExecuteCommandType>Batch</ExecuteCommandType> <ExecutePreCommandType>Batch</ExecutePreCommandType> <SourceType>FixedUrl</SourceType> <DeletePreviousFile>true</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <LastUpdated>2019-11-03T11:08:19.2683762</LastUpdated> <TargetPath>..\{category}\{appname:regexreplace:([\s\t\r\n\-\&amp;]+):_}-{version}.{url:ext}</TargetPath> <FixedDownloadUrl>{sdownload}</FixedDownloadUrl> <Name>Notepad++ (x86)</Name> </ApplicationJob> </Jobs>
  3. @jokerfool can you at least pin down whether they're FH or standard jobs? Does it happen every time? Can you select 5 or 10 jobs at a time and see if you can recreate the error to track down whether it's the same jobs? If you can get it to repeat on one or more jobs, please post the job XML here.
  4. With Cloudflare you're pretty well stuck unless you can find a consistent pattern for the download files since the downloads themselves are rarely behind Cloudflare. In this case there is a pattern so you're good. You can get the current version number from this using this pattern: >v([^'"]+)</ You can then construct the download URL by inserting the version numbers in these patterns: http://download.notepad-plus-plus.org/repository/{version:split:.:0}.x/{version}/npp.{version}.Installer.x64.exe http://download.notepad-plus-plus.org/repository/{version:split:.:0}.x/{version}/npp.{version}.Installer.exe The download URL does not support HTTPS, but will download once you've injected the version numbers (and major version number in the first field).
  5. Added as a new feature request now. https://ketarin.userecho.com/communities/1/topics/116-add-option-to-disable-errors-page-after-updates-complete-with-errors
  6. Bug report: Since I added new variables to my general structure I wanted to update my default app template. I clicked 'add new application'. I clicked on 'variables'. I added several variables and set most of them to regex, since that's what I almost always use for those, and two as text. I clicked OK then went to 'advanced settings' and attempted to assign version as the change indicator. It wasn't listed. I had set version as a regex variable. I revisited the variables page and recreated it, noticing that all the regex variables I created were lost. All the text ones were still there. I had not assigned a URL to the regex variables, but IMHO it should never delete variables on me. Worst case scenario it should nag/warn me or provide an idiot prompt ("are you sure you don't want to add a URL for this variable?") and then ignore the variable during processing or automatically disable it when I save it.
  7. Not really. I've been trying to trim down the process in order to make a simple test case and I might have found a way around it. The issue is that *new* Textual variables are not being parsed correctly when using the ReplaceAllInString syntax: $sdownload = $app.variables.ReplaceAllInString("{sdownload}", $sfiletime, $sfilename, $true); I'm currently working around this by testing the type of variable each time and only using ReplaceAllInString for non-Textual variables, and using TextualContent for the Textual variables that do not have curly braces in them. If it has a curly brace I'm pushing it through ReplaceAllInString anyway for safety, but for new Textual variables always returns an empty string at that point. I haven't added many new apps recently so can't say whether this is affecting non-Textual variables. I don't think it is. Unfortunately, this TextualContent-only parsing means that embedded variables are not processed. Thus if I set myvar to "This is version {version}" then {myvar} is not being parsed to "This is version 1.0" but instead appears literally as "This is version {version}".
  8. Hi, @aldric87, You can find the current beta attached to the first post in the current thread.
  9. I tried exporting & importing and it's still not seeing the new variable.
  10. Bug: Using latest 1.8.11 beta posted June 15 and seeing strange behavior. It looks like new variables may not be parsed the same way as variables that already exist for a job. I created a new variable on a job, "svendor". I populated it with a text value (Nirsoft). I use the following PS code in after update to populate a field in a database: $svendor = $app.variables.ReplaceAllInString("{svendor}", $sfiletime, $sfilename, $true); if($svendor -eq "{svendor}"){$svendor = '';} echo 'svendor:'$svendor; Unfortunately, svendor always returns empty. 2019-09-21 11:59:38: PowerShell: svendor: 2019-09-21 11:59:38: PowerShell: 2019-09-21 11:59:38: PowerShell: swebsite: 2019-09-21 11:59:38: PowerShell: https://www.nirsoft.net/utils/browsing_history_view.html I changed svendor in the first param of ReplaceAllInString to swebsite (another variable I use in all my jobs) and it parsed it correctly. 2019-09-21 11:59:03: PowerShell: svendor: 2019-09-21 11:59:03: PowerShell: https://www.nirsoft.net/utils/browsing_history_view.html 2019-09-21 11:59:03: PowerShell: swebsite: 2019-09-21 11:59:03: PowerShell: https://www.nirsoft.net/utils/browsing_history_view.html I've closed and reopened Ketarin and deleted and recreated the variable. I've tried a different variable name. Nothing is getting this value to populate into the powershell script. I've tried this on three jobs now and each is failing. Two are based on a template and I thought that might be the problem, but I tried with one that isn't based on a template and it didn't work either. Any ideas?
  11. The user variables are listed within the left side column. There are some special internal variables, and other values that aren't variables but are usable in your user variables and scripts such as internal values and functions. The functions can be found here and a method for parsing for internal values can be found here.
  12. I was experiencing a problem with the new global "On update failed" command. I'm leaving this comment to help others that might experience the same issue. I'm using it to log issues with apps and record as much about the event as possible. It was working pretty well most of the time, but randomly raised a file access error to the text file I was logging to. EVEN WITH error handling it still raised an error and locked up Ketarin at that point during a deadlock on the log file. It only erred when parallel downloads > 1. If I reduced it to 1 then I had no problems. I switched out the code from using Add-Content to piping to Out-File -Append. That works fine. The revised code I'm using is below. #### Append current log details Try{ ( "`nERROR:`t$($scategory)`t$($sslug)`t$($sname)`t$($sversion)" | Out-File Updates.txt -Append ) } Catch{ echo 'Can not write to Updates.txt'; echo "`nERROR:`t$($scategory)`t$($sslug)`t$($sname)`t$($sversion)"; } #### With the Out-File -Append method I am able to hike parallel downloads back up to 4 without problems. Still hoping for a more descriptive error handler so I can record much the same text that appears in the popup directly to the log. Also, will there be an option to disable the post-check-for-updates error popup? Thanks, @floele!
  13. Is there a way of trapping the specific error message for logging? I'd like to completely eliminate my reliance on the post-update-cycle popup.
  14. The short answer for Chrome is that they haven't updated their download locations in that long. They're doing it right. As for the search feature, I could have sworn it indicated whether you had individual results already installed. Maybe that needs a feature request?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.