Topic: Webget: IOHandler problem  (Read 3221 times)

Webget: IOHandler problem
« on: October 13, 2015, 08:09:12 PM »

surfmaxx

  • Jr. Chef
  • **
  • Date Registered: Jan 2014
  • Posts: 12
Hi there,

I am absolutely uncertain whether I chose the right topic, but I did not find any suitable at reboot.pro as well so...  :embarrassed:

In Win8.1 PESE x86 project I use an older modified notepad++ script that should download the current version from notepad-plus-plus.org:
Code: [Select]
WebGetIfNotExist,%DownloadURL%,%Installer%

Half a year ago, when I developed it, it worked fine!
But now the script throws an error:
Quote
WebGetIfNotExist - [http://notepad-plus-plus.org/repository/6.x/6.8.3/npp.6.8.3.Installer.exe] to directory: [%BaseDir%\Workbench\Downloads\Notepad++\npp.6.8.3.Installer.exe] IOHandler value is not valid

The link is fully correct. If I insert it manually in Firefox the download starts.

I've googled around, but haven't found anything in context with winbuilder.
There are just hits concering Delphi and a problem with https.

Is this a known bug in winbuilder?
Any chance to workaround this?

Many thanks in advance.

Re: Webget: IOHandler problem
« Reply #1 on: October 13, 2015, 08:59:40 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Is this a known bug in winbuilder?
Yes, like many others, low skilled Delphi programmers have this issues  :wink:

Half a year ago, when I developed it, it worked fine!
pure luck  :lol: this bug depends on many things....

Any chance to workaround this?
We can work on this.

Open a topic for your NotePad++ plugin
  http://theoven.org/index.php?board=31.0
    with your attached plugin NotePadPP_surfmaxx.script

so one can see what is going on at a free time  :cool:

:turtle:

Re: Webget: IOHandler problem
« Reply #2 on: October 13, 2015, 09:41:57 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
In CodeBox, It works with wget by adding --no-check-certificate (= don't validate the server's certificate)

Code: [Select]
[variables]
%ProgramFolder%=Notepad++
%SetupFile%=npp.6.8.3.Installer.exe
%nppInstallerURL%=https://notepad-plus-plus.org/repository/6.x/6.8.3/npp.6.8.3.Installer.exe

[process]
Call,DirDeleteMake,%GlobalTemplates%\%ProgramFolder%
ShellExecute,Open,cmd.exe, "/C wget.exe -t 6 -O #$q%GlobalTemplates%\%ProgramFolder%\%SetupFile%#$q %nppInstallerURL% --no-check-certificate",%Tools%


Have you seen Mikka's Notepad++ universal here http://theoven.org/index.php?topic=596.0 ?
The latest setup file seems searched via AutoIt.
« Last Edit: October 13, 2015, 09:50:01 PM by ChrisR »

Re: Webget: IOHandler problem
« Reply #3 on: October 14, 2015, 04:36:26 PM »

surfmaxx

  • Jr. Chef
  • **
  • Date Registered: Jan 2014
  • Posts: 12
Wow! What a great and instant support!!  :great:

Thanks for the wget code line with the --no-check-certificate option!
It works pretty well, certainly.

As far as I can see from my version history, I needed to correct Mikka's script v008 since it wants to delete a folder that obviously does not exist anymore in current np++ installations.
Actually his most current script v012 (downloaded from reboot.pro) has no download option any more, as far as I can see. It requires a locally stored install file.

I am now happy with the (double) modified v8 script.  :smile:

Re: Webget: IOHandler problem
« Reply #4 on: October 14, 2015, 05:07:47 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Hi surfmaxx,

I am now happy with the (double) modified v8 script.  :smile:

As suggested earlier
Have you seen Mikka's Notepad++ universal here http://theoven.org/index.php?topic=596.0 ?
The latest setup file seems searched via AutoIt.

If you contact to Mikka on its own Notepad++ topic,
 and share your findings, requests
  you don't need to modify plugin  :wink:

Mikka recently seem to start rewrite Firefox plugin with new features etc.
 I am sure Mikka would update notepad++ too  :cheers:

:turtle:

Re: Webget: IOHandler problem
« Reply #5 on: November 08, 2015, 01:27:07 PM »

Mikka

  • Code Baker
  • Chef
  • ***
  • Location: Germany
  • Date Registered: May 2012
  • Posts: 256
I use an older modified notepad++ script that should download the current version from notepad-plus-plus.org:
Current cross reference available :thumbsup:

 

Powered by EzPortal