notepad-plus-plus / nppShell

Provide Explorer context menu entry "Edit with Notepad++"
GNU General Public License v3.0
25 stars 13 forks source link

Improved cleanup script, to not move the file away, but just schedule them for deletion on next reboot #15

Closed GurliGebis closed 1 year ago

GurliGebis commented 1 year ago

This improves upon #14 by scheduling the files to be deleted on the next reboot. It also unregisters the old menu on Windows 11, since we have double entries otherwise.

donho commented 1 year ago

@GurliGebis Thank you for the PR. Please check out the TEST12 here: http://download.notepad-plus-plus.org/repository/MISC/nppShell.TEST12/

ps: It's OK for this time, but please always create a new branch for a new PR in the future.

donho commented 1 year ago

Test results of updating from v8.4.9 (NppShell_06.dll) to TEST12 (new NppShell.dll):

GurliGebis commented 1 year ago

@donho I created a new branch for this based on the master branch? (Or am I misunderstanding?)

GurliGebis commented 1 year ago

I just tested on Windows 11, seems to be working, testing on Windows 10 as we speak 🙂

GurliGebis commented 1 year ago

Windows 10 test installing 8.4.9 and then upgrading to TEST12:

I think this is finally working.

donho commented 1 year ago

Bravo @GurliGebis! You did it! Yes, I think we have done. I'll do v8.5.2 RC this weekend.

Thank you again for fixing that.

GurliGebis commented 1 year ago

@donho can you merge this, close the #14 PR (just to cleanup), and then create a new installer where the msix xml tag is removed from notepad++.exe.manifest

There seems to be some issues with it and people who have services disabled. From what I can see, we should be able to run without it, but I would like a TEST13 if possible with it disabled, to get people to verify that it works without it 🙂

I'm thinking about these two:

GurliGebis commented 1 year ago

From what I can read, the msix tag is only relevant in the application manifest, if the application is distributed within an MSIX package, which we aren't doing.

donho commented 1 year ago

@GurliGebis

I created a new branch for this based on the master branch? (Or am I misunderstanding?)

Yes.

donho commented 1 year ago

create a new installer where the msix xml tag is removed from notepad++.exe.manifest

Are you talking about the following tag to be removed?

<msix xmlns="urn:schemas-microsoft-com:msix.v1"
    publisher="CN=Notepad++, O=Notepad++, L=Saint Cloud, S=Ile-de-France, C=FR"
    packageName="NotepadPlusPlus"
    applicationId="NotepadPlusPlus"
/>
GurliGebis commented 1 year ago

create a new installer where the msix xml tag is removed from notepad++.exe.manifest

Are you talking about the following tag to be removed?

<msix xmlns="urn:schemas-microsoft-com:msix.v1"
    publisher="CN=Notepad++, O=Notepad++, L=Saint Cloud, S=Ile-de-France, C=FR"
    packageName="NotepadPlusPlus"
    applicationId="NotepadPlusPlus"
/>

Exactly, I would like to see if everything still works without it (it should) and if it solves those two issues (it might - they will have to test)

GurliGebis commented 1 year ago

I have to go cook dinner, I'll be back later tonight - if you can build TEST13 with that one removed, please update those two issues and ask them to test with that one (after verifying that it works on Windows 11 with it removed).

donho commented 1 year ago

@GurliGebis TEST13 is ready here: http://download.notepad-plus-plus.org/repository/MISC/nppShell.TEST13/

FYI, due to notepad++.exe.manifest has been modified, all the notepad++.exe binaries are recompiled.

Please let me know if these packages work as expected.

GurliGebis commented 1 year ago

@donho they work as expected, and even work with those two services disabled. So it would say it is safe to merge this PR and then do another one that cleans up the manifest file in the other repo.

GurliGebis commented 1 year ago

I'm closing this PR, since it has been merged in 9efecd71bad1d5a0278aa5fce401a1f44a3a8f2a

donho commented 1 year ago

https://github.com/notepad-plus-plus/nppShell/commit/9efecd71bad1d5a0278aa5fce401a1f44a3a8f2a