-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
A "Yes (Silent)" button is added in the update propt dialog, beside of button "Yes" which will trigger the classic update with GUI. Choose "Yes (Silent)" will download the package, close your Notepad++, then install new version of Notepad++ silently (without NEXT, NEXT...). After the installation, new version of Notepad++ will be launched. Fix notepad-plus-plus/notepad-plus-plus#8514, close #8514
- Loading branch information
There are no files selected for viewing
10 comments
on commit 069edc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect!
I'd like to test but this will also need the new N++ installer with the previously added '/closeRunningNpp' & '/runNppAfterSilentInstall' option available for download.
And it also seems that the downloaded GH Actions build of the GUP.exe cannot simply replace my installed N++ one (is there a security reason, probably unsigned GUP.exe ?)
So how one can properly test this feature?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xomx
You are welcome to test it.
Just download the new installer here:
http://download.notepad-plus-plus.org/repository/MISC/npp.8.6.8.Installer.x64.exe
Install it firstly so it will put the modified 'gup.xml' and new 'GUP.exe' into the installation destination.
Once it's installed, replace notepad++.exe of version 8.6.8 by any previous version's one.
Then launch notepad++.exe -> update Notepad++. The new package will be download from the same location:
http://download.notepad-plus-plus.org/repository/MISC/npp.8.6.8.Installer.x64.exe
Please let me know if it does work to you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And it also seems that the downloaded GH Actions build of the GUP.exe cannot simply replace my installed N++ one (is there a security reason, probably unsigned GUP.exe ?)
Notepad++ will check GUP.exe's certificate before launching it. So if GUP.exe is not signed, nothing will happen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@donho
Tested & works ok.
One minor glitch to fix:
- after a successful download, the progres-bar incorrectly stays opened at 100% and covers the next N++ dlg (Notepad++ is opened. Updater will close...):
- because of the GUP.exe cert-security I cannot patch & try so I only guess here what to do - I would add (at the end) autoclosing of the
hProgressBar
if the dl-percentage reaches 100%:
Line 532 in 3beed29
static size_t setProgress(HWND, double dlTotal, double dlSoFar, double, double)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xomx
Sorry but I don't get the glitch you mentioned. Mind to collaborate it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xomx
OK, I see. You're right.
I'll see what I can do about it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xomx
You can try 069edc2#commitcomment-143117163 again.
The glitch is fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@donho
I can confirm, now it is ok.
I see this Yes (Silent)
as a major improvement for the users using the installed N++!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see this Yes (Silent) as a major improvement for the users using the installed N++!
It's thanks to your "/closeRunningNppAutomatically" feature!
Should be …_INSTALL_… instead of …_INSALL_…