Menu

Fixed Notepad++ Launcher

przemoc
2008-11-14
2012-11-13
  • przemoc

    przemoc - 2008-11-14

    Hi,

    I improved Stepho's Notepad++ launcher.
    You can read about it here:
    http://news.przemoc.net/2008/11/notepad-launcher.html

    I hope it will be useful for you.

    Regards,
    Przemoc

     
    • oh-nice

      oh-nice - 2008-11-15

      That´s pretty cool, really! That did the trick.

      At MSFN-Forum made a Guy a Replacer with a Grafical User Interface.
      http://www.msfn.org/board/index.php?showtopic=110556&view=findpost&p=727131

      Could you also do this in one Exefile?
      This were great and perheps Donho drop to his downloadpage.

      Best Regards, Oh-nice.

       
    • oh-nice

      oh-nice - 2008-11-15

      Would say, please look in Jollis Posting at MSFN.

       
    • oh-nice

      oh-nice - 2008-11-16

      Here is a little Difference!

      Open a folder, open a document and the Notepad++ window stays behind the folder! It should come up in forground, isn´t it?

      Best Regards, Oh-nice.

       
      • przemoc

        przemoc - 2008-11-16

        Thanks for the report. I think I've fixed this, can you test it?
        Launcher autoinstallation (copying to 4 Windows' directories) will be added in next versions.

        Regards,
        Przemoc

         
    • oh-nice

      oh-nice - 2008-11-17

      That´s ok.
      But now runs at Startup 4-5 Sec. the Curser with the Sandbox and
      a 2. Prozess is running in Task-manager!
      1. notepad++.exe and 2. notepad.exe (your Launcher?)!

      So i guess, the best Way is you released
      1. only little Launcher (18kb)
      2. Launcher with (like in MSFN-Forum)
      - GUI - Iinstallation with Question if yes replace or no not and Exit,
      - Logfile, were we can look in wich Location the ms-notepad.exe stays,
      - Backup-folder with the orginal ms-notepad.exe and
      - when you setup your Autoinstallation twice the ms-notep.exe will be with number
      - ms-notepad01.exe or so

      Only my Suggestion.
        
      Best Regards, Oh-nice.

       
      • przemoc

        przemoc - 2008-11-17

        In yesterday's v.0.2 archive I put wrong executable of WaitForInputIdle() version (that waits only for Notepad++ initialization) with test MessageBox. However, second exec with WaitForSingleObject() (that waits for Notepad++ exit, and therefore exists as long as Notepad++ does) was right one. Strange, but please accept my apologies. Now there is a correct version.

        Launcher with autoinstallation built-it won't be bigger than, let's say, 30 KB, so I think that this is still acceptable.
        I'll use name trigger, which means that installation will start only if the name of the executable is 'install.exe'. There won't be any so-called GUI apart from some MessageBoxes (beginning, end of installation). Log and backup are of course good ideas, but they aren't crucial IMHO.

        I have some problems with SFC/WFP currently. Disabling it using undocumented SetSfcFileException() function for given notepad.exe paths works for me only in %WINDIR%, but not in subdirectories. I'm using Windows XP x64 and maybe that's why. Nevertheless the solution should be universal and at this moment I cannot guarantee it.

        Regards,
        Przemoc

         
    • oh-nice

      oh-nice - 2008-11-18

      Hey nothing wrong, you don´t have to apologies you.
      Thank you, for your work.
      We all stay tuned and waiting for your next release.

      Best Regards, Oh-nice. 

       
    • Harry

      Harry - 2008-11-19

      >>I have some problems with SFC/WFP currently. Disabling it using undocumented SetSfcFileException() function for given notepad.exe paths works for me only in %WINDIR%, but not in subdirectories.

      Could this have anything to do with the filesystem redirection for 32 bit apps? If you can, try disabling it and retry (that is, assuming the subdirectories are in system32, I have no idea otherwise).

      http://msdn.microsoft.com/en-us/library/aa384187.aspx

       
      • przemoc

        przemoc - 2008-11-22

        I wasn't  aware of this file system redirector. It looks like the source of my problem. Thank you Harry for a great tip.
        So there should be also 64-bit version of Notepad++ Launcher to be fully compatible.
        In spare time I'll see what I can do in this subject.

         
  • przemoc

    przemoc - 2009-10-18

    I have updated my . New features: built-in installer, 64-bit version. I fixed also the problem of losing window focus, at least I think so.

    Regards,
    Przemoc
    http://wiki.przemoc.net/projects/start#notepad_launcher