You are here

Notepad++ Portable

31 posts / 0 new
Last post
John Bentley
John Bentley's picture
Offline
Last seen: 14 years 9 months ago
Developer
Joined: 2006-01-24 13:26
Notepad++ Portable

I have created a Notepad++ launcher.

OK, I know Notepad++ itself is portable, but I have some good reasons to make a launcher.

1. It makes it in the PAF format.
2. It keeps it from saving the history.

Notepad++ Portable Page: http://www.mi3soft.info/Software/Portable/notepadpp-portable

Edit: Updated to version 4.1.2

Edit2: Could a mod lock this topic please, now that I have started a new topic.

[Moderator RM: Locked topic, new official version at 7793]

Simeon
Simeon's picture
Offline
Last seen: 9 years 7 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Nice proggy

I'm amazed how many things you can change...
Is it possible to change the language (from english to german)?

It leaves stuff in my Registry:

HKLM\SOFTWARE\Classes\Notepad++_file
HKLM\SOFTWARE\Classes\Notepad++_file\shell
HKLM\SOFTWARE\Classes\Notepad++_file\shell\open
HKLM\SOFTWARE\Classes\Notepad++_file\shell\open\command

“Science is the belief in the ignorance of the experts” - Richard P. Feynman

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

John Bentley
John Bentley's picture
Offline
Last seen: 14 years 9 months ago
Developer
Joined: 2006-01-24 13:26
No reg for me

Hmm, I don't get those registry entries.

About the language, I'm not sure. I didn't write Notepad++ after all and I didn't see anything on the Notepad++ site.

cowsay Moo
cowthink 'Dude, why are you staring at me.'

Zach Thibeau
Zach Thibeau's picture
Offline
Last seen: 1 year 7 months ago
Developer
Joined: 2006-05-26 12:08
Anything

Anything left in the classes section of the registry cannot be modified unless you have full administration privileges. So if your using a computer account that has no admin privilidges then basically the app is going to write something to the classes section whether you like it or not
-----------------------------
Finally after 2 years I am going for my Learners permit so I can drive...Look out world here I come

your friendly neighbourhood moderator Zach Thibeau

rich.bradshaw
Offline
Last seen: 10 years 11 months ago
Joined: 2006-10-05 08:41
Remember to change the

Remember to change the references to aviscreen on that page...

John Bentley
John Bentley's picture
Offline
Last seen: 14 years 9 months ago
Developer
Joined: 2006-01-24 13:26
Oops... Fixed.

Oops... Fixed.

cowsay Moo
cowthink 'Dude, why are you staring at me.'

rich.bradshaw
Offline
Last seen: 10 years 11 months ago
Joined: 2006-10-05 08:41
Not quite, still one

Not quite, still one reference on there!

Might as well let you know before too many people get confused!

RustyMuppet
RustyMuppet's picture
Offline
Last seen: 10 years 2 weeks ago
Joined: 2007-03-02 05:44
Passing arguments ..

.. doesnt work.

I have set notepad++ portable to be my default editor for filezilla and it doesnt work. It used to work when i just had notepad++ on the drive, so I have to assume the filename as a parameter is being ignored on your portable version (it must be possible to fix as I pass parameters to firefox portable and that works).

Is it likely this app will make it to the main apps on this site?

John Bentley
John Bentley's picture
Offline
Last seen: 14 years 9 months ago
Developer
Joined: 2006-01-24 13:26
Thankyou! that was a bug in

Thankyou! that was a bug in the code library that I wrote to build portable programs.

I don't know if this will get into the PA directory, it could but I would like to get a response from John on Dev-C++ p first.

Edit: Fixed.

cowsay Moo
cowthink 'Dude, why are you staring at me.'

Deuce
Offline
Last seen: 13 years 7 months ago
Developer
Joined: 2005-12-24 16:32
It Doesn't...

work as his does not include the function to accept parameters.

Here is one I just threw together with the parameters function. It will allow you to send the parameters to notepad++ in Filezilla and on the command line, or anything else.

Download it here:
http://www.sendspace.com/file/ek29hz

Hope this helps.

EDIT: Ahh... he beat me by three minutes. Oh well. For Info Purposes: Mine is in NSIS and does not need any settings, so it is self-contained. (No Appdata folder copying, I mean. Notepad++ does need this, it is self contained. Though they both do the same thing. Smile

***********************************
Deuce {The Core}{Dev Blog}
Portable Software: Just the beginning.

Deuce
Portable Software: Just the beginning.

arqbrulo
arqbrulo's picture
Offline
Last seen: 4 years 3 months ago
Joined: 2006-08-10 16:38
Suggestion

The xml files inside Data\settings are there just to comply with the paf specs since Notepad++ does not read the info directly from those files. So how about if the source is modified to read the "modified date", and if the xml files generated by Notepad++ are newer than the ones inside "Data\settings" then it will replace the old with the new, but if the date are the same, the files will not be moved. This will help those people using flash drives who are worried of all the writing being done. If you like, I can make the changes and forward it to you, it's just using "FileGetTime" function.

EDIT: the code is the following, just change the info for every xml file

$config_orig = FileGetTime(@scriptdir & "\" & $AppDir & "\config.xml", 0, 1)
$config_back = FileGetTime(@scriptdir & "\" & $DataDir & "\config.xml", 0, 1)
If $config_orig > $config_back then FileCopy(@scriptdir & "\" & $AppDir & "\config.xml", 
@scriptdir & "\" & $DataDir & "\config.xml", 1)

---------------
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
"Sometimes I worry about being a success in a mediocre world." -- Lily Tomlin

"In three words I can sum up everything I've learned about life: it goes on." -- Robert Frost
"In three words I can sum up everything I've learned about life: baby ain't mine." -- Adam Holguin

John Bentley
John Bentley's picture
Offline
Last seen: 14 years 9 months ago
Developer
Joined: 2006-01-24 13:26
With the way I have it the

With the way I have it the confing files are moved so there are no setting files in the application directory. Intresting idea though.

cowsay Moo
cowthink 'Dude, why are you staring at me.'

Dijaboro
Dijaboro's picture
Offline
Last seen: 1 year 6 months ago
Joined: 2007-04-19 02:49
is it possible ?

sorry for OT but is it possible to use the script for notepad++ also for scite ? both editors base on scintalla and quite similar (seems so to me).

thanks in advance for infos

John Bentley
John Bentley's picture
Offline
Last seen: 14 years 9 months ago
Developer
Joined: 2006-01-24 13:26
Not that I know of. John H.

Not that I know of. John H. has a SciTE Portable package in the Beta forum though. Search.

cowsay Moo
cowthink 'Dude, why are you staring at me.'

Dijaboro
Dijaboro's picture
Offline
Last seen: 1 year 6 months ago
Joined: 2007-04-19 02:49
yes i know search ;-)

yes you are right, but meanwhile version 1.73 is available and I search for an easy way to get this on my stick

edit: found a solution ... now I have 1.73 on my stick

wsm23
Offline
Last seen: 12 years 3 months ago
Joined: 2006-01-09 22:05
How to upgrade?

Is there an easy way to upgrade Notepad++Portable within the .paf format?

There is a new version 4.1.2. I am NOT asking you to post the upgrade just a how to for future releases.

--
Life is about the journey not the destination!

My site * My Blog

The Kazoo Spartan

Life is about the journey not the destination!

The Kazoo Spartan

John Bentley
John Bentley's picture
Offline
Last seen: 14 years 9 months ago
Developer
Joined: 2006-01-24 13:26
You just replace all the

You just replace all the files in App/notepad++/ except the xml files. (UPX the executables if you want.) I was planning on upgrading to that sometime anyway.

cowsay Moo
cowthink 'Dude, why are you staring at me.'

albertsj1
Offline
Last seen: 16 years 10 months ago
Joined: 2007-06-28 15:02
WARNING: Deletes Important Registry Keys

Warning
This app deleted all extension information in the registry under HKCR on all 4 of 4 computers that I tried it on.
When this happens, the computer is pretty much useless. You can't run any file, because Windows no longer knows what to do with that extension. This even includes .exe files and .lnk files. I couldn't even run a virus scanner on the machine after this happened. All I did was run the app once and close it for it to delete all of the registry keys.
Notepad++ is an excellent program and I have been using it for years. This portable version needs a little more testing I would say.

arqbrulo
arqbrulo's picture
Offline
Last seen: 4 years 3 months ago
Joined: 2006-08-10 16:38
Funny you should mention that

Something was happening to my work computer where it would delete all everything in "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\" and I would have to restore the computer to an earlier state. Well, I did that until I found out what was being deleted from the registry, so I just made a backup of that section and now run it whenever the extensions are not recognized. But now that you mention that it's Notepad++ that's doing it, I will try to investigate a little more and see what's going on. Now that I think about it, most of the time it would delete the extension info I was running Notepad++. hummm.

EDIT: Someone from above stated that it left stuff at "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Notepad++" so the creator of the portable version added at the end if his script

If IsAdmin() And $localRegExists Then
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Classes");

but forgot to add the "\Notepad++" at the end.

@MISIIM, would you mind fixing that for the rest of the people? Thanks.
---------------
"Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river." -- Cyril Connolly

"In three words I can sum up everything I've learned about life: it goes on." -- Robert Frost
"In three words I can sum up everything I've learned about life: baby ain't mine." -- Adam Holguin

albertsj1
Offline
Last seen: 16 years 10 months ago
Joined: 2007-06-28 15:02
LOL That's a pretty big

LOL
That's a pretty big oversight. How do you not notice that after you run a program your computer pretty much stops working. Smile
Looks like all I need to do is modify the file Notepad++Portable.au3 in the \Notepad++Portable\Other\Notepad++ Portable Source directory.
Thanks

arqbrulo
arqbrulo's picture
Offline
Last seen: 4 years 3 months ago
Joined: 2006-08-10 16:38
Yup

Now that I know what's going on I can laugh about it. You might not believe me but I had to reinstall windows on my work computer 2 times, I was about to call gateway to let them know what was going on, in fact, the computer tech from work had no idea what was causing it, and he just gave up also. I was about to erase all of my (portable) apps and reinstall them just in case something had a virus in there somewhere. But like I said, now that the mystery is solved (thanks to you), I can laugh about it.
---------------
"Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river." -- Cyril Connolly

"In three words I can sum up everything I've learned about life: it goes on." -- Robert Frost
"In three words I can sum up everything I've learned about life: baby ain't mine." -- Adam Holguin

albertsj1
Offline
Last seen: 16 years 10 months ago
Joined: 2007-06-28 15:02
Nope

I guess after you change that one file you have to recompile the app with AutoIT, because I changed the file and it deleted everything again.
Now that I did this, it makes sense why the change didn't work without compiling again.
This is my first experience using a portable app, and I wasn't really sure how things worked.

John Bentley
John Bentley's picture
Offline
Last seen: 14 years 9 months ago
Developer
Joined: 2006-01-24 13:26
??? Lateset version

??? Doesn't the latest version take care of the regkey? If not I guess I didn't update it.

cowsay Moo
cowthink 'Dude, why are you staring at me.'

albertsj1
Offline
Last seen: 16 years 10 months ago
Joined: 2007-06-28 15:02
I used version 4.1.2, which

I used version 4.1.2, which looks like the latest, and it had this problem.

John Bentley
John Bentley's picture
Offline
Last seen: 14 years 9 months ago
Developer
Joined: 2006-01-24 13:26
Well I have has this fix

Well I have has this fix implemented (although I'm using vista so it is hard to tell with limited user privliges). I'll re-release it in a bit.

cowsay Moo
cowthink 'Dude, why are you staring at me.'

ripcrd
Offline
Last seen: 15 years 18 hours ago
Joined: 2006-09-06 15:57
when will updated pkg be ready

I see you posted to the forum on Friday. Is the updated pkg ready yet? I just looked on SF.net and the latest avail. is from May 22. I don't want to blow up my PC. Hahaha. Good luck.

Somewhere there is a village missing an idiot.

consul
consul's picture
Offline
Last seen: 7 months 2 weeks ago
Joined: 2007-05-02 13:47
eagerly awaiting

Me too. I've finally been convinced of the niceness of this program, and I go to download it and here is this wacked bug. Smile

Neat logo too ... EAT that bug!

Oh, and is there any problems with the plugins, or should they all work?
"... respect, all good works are not done by only good folk. For here, at the end of all things, we shall do what needs to be done."

Don't be an uberPr∅. They are stinky.

John Bentley
John Bentley's picture
Offline
Last seen: 14 years 9 months ago
Developer
Joined: 2006-01-24 13:26
Sorry. I'm not home for the

Sorry. I'm not home for the rest of the week. I'll get it up next week.

cowsay Moo
cowthink 'Dude, why are you staring at me.'

otti
Offline
Last seen: 12 years 12 months ago
Joined: 2007-07-05 08:13
Me too, I walked right into

Me too, I walked right into the trap Sad

But there is no need to install windows from scratch. I fixed my pc by exporting the classes from a running pc and importing them on my corrupt pc.

When do you think to release a corrected version?

spikeleebebop
Offline
Last seen: 16 years 2 months ago
Joined: 2007-07-05 09:38
Me as well

Had the same problem with the same fix. Should have read all the forum posts before downloading. BTW, I don't want this to sound like a flame post because now that it's fixed I'm not mad, but this is a VERY critical error and should have been discovered in the development stage before even posting. It also would be a good idea to take down the download link until the problem is fixed in case less savvy users download it and don't know what's going on. It should be an easy fix and otherwise it was an excellent piece of software.

John Bentley
John Bentley's picture
Offline
Last seen: 14 years 9 months ago
Developer
Joined: 2006-01-24 13:26
I have fixed the problem and

I have fixed the problem and there is a new forum topic.

cowsay Moo
cowthink 'Dude, why are you staring at me.'

Topic locked