I am attempting to write a NSIS launcher for a portable App. I have created the launcher temporarily with a debug mode to assist me inknowing where i am going wrong.
So here is the problem, I launch the launcher and get an error message.
The Log of the file states:
Usage: rednotebook.exe [options] [journal-path]
rednotebook.exe: error: no such option: -c
My question is is this an error in my launcher or does it relate to the specific program I am launching?
Any help would be appreciated!
Edited--this is in trying to create a modified launcher from the Pidgin launchers source code for the Program RedNoteBookPOrtable that i am working on
Please include your *launcher.ini file your using !!!
Would make it a bit eassier to help you !
Formerly Gringoloco
Windows XP Pro sp3 x32
I don't think he's using the PA.c launcher; I think he means to create his own.
As ScriptDameon has said I am trying to create/modify a launcher. Basically I am taking the source code from Pidgin Portable since it has 2 key features I need in alauncher and modifying the nsi file to fit and work fo rmy program...if that makes any sense
“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss
Send your script to http://pastebin.com/
and supply a link.
Isn't PAL good enough for you anymore???
Formerly Gringoloco
Windows XP Pro sp3 x32
Thanks will let you know PA Launcher is great but not sure how to modify a few things which the Pidgin launcher already had in place, sow was hoping to modify it HOWEVER right now i ma working on maybe fixing everything by modifying the Python code will let you know how I make out.
“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss
DON"T HACK THE BASE APP'S CODE!
Unless you can get those changes merged into the main development branch, you'll have to redo it every time. And maybe break things in the process.
You may also want to look at the source code for this app http://patrickpatience.com/nascent-project/oliverkrystal/Geany/GeanyPort...
It has the GTK and passing of commandline variables that you need
Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world
I promise I won't change the open source Code and will look at what you sent, BTW I need to catch you sometime in IRC to chat privately
“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss
Hey, as long as it stays open source, you're welcome to
That's why its opensource
Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world
Can someone tell me what the -c in the following line does?
StrCpy $EXECSTRING `"$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" -c "$SETTINGSDIRECTORY\.purple" $0`
is it considered to be a command line item?
“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss
All that stuff is application-specific. This is just one of the reasons why using the PortableApps.com Launcher is a good idea - this copying of launchers, modifying, leaving irrelevant bits in, makes an enormous mess very often. Due to the lack of code in using it PAL is much cleaner, more useful and less likely to go wrong.
I am a Christian and a developer and moderator here.
“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1
I agree with you Chris, however in using the PA Launcher I was having some difficulty setting the GTK directory as well as removing the .xbel. It was suggested that I look at some other Apps that had these features such as Pidgin. The problem is those apps have their own launchers not the PA Launcher.
So I am stuck in a conundrum, which do I se? What do I do?
“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss
What I don't understand is the issue you're having. Could you please explain it more? The handling of .recently-used.xbel tends to be a simple FilesMove operation. (I'm not entirely sure how it's location is handled; in Inkscape setting INKSCAPE_PORTABLE_PROFILE_DIR handles the location of .recently-used.xbel as well. I've got a feeling it's got something to do with the XDG directories [don't worry if you don't understand!].)
I am a Christian and a developer and moderator here.
“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1
I think I have it figured out now. Appears the launcher.ini I had may have been the issue. I recreated one and it appear to work well. Now just need to tweak a program setting and should be good to go.
Thanks for your time and patience.
“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss
Yeah, but with PAL you don't learn a single thing about programming.
Just fill in the blanks until it works.
I take offense at that statement. Learning to do anything can be messy.
Far better to make a mess and learn how to do it, then not to.
Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world
You and Zach just don't like to make things easy, eh?
Nope. Get messy, make mistakes.
It may be more work, but the final product is more polished.
Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world
ditto.
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
Not to debate with you about the PA.c launcher, but while you don't learn much about programming (unless you mess around with the current builds of the launcher in Hg), you still do learn a lot about portability and *how* programs work, which I think is the point. Learning how to program takes time (especially for those with little to no experience), but learning how a program works, why it works, and how to make it portable I feel is a more important lesson in this context.
I did not realize I would cause this much debate. All I was trying to do was understand and grasp the concept of what I was doing. I was not trying to put one launcher against the other. I felt that it was imperative to get the App up and running in a timely fashion, at first I did not understand how I could get PA Launcher to work for me instead of just becoming frustrated with it. So I thouhg tI would delve out onto my own and try to learn how to do what I wanted in a way I could understand. As it turned out by doing this I was able to get a better understanding of how PA Launcher worked and in the end that is what I went with. All in all it was a learning experience.
I will say though it has made me a little disheartened to ask any other questions as I want no battles, I just want to improve my skills at App packaging!
“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss
Do not be discouraged. No negativity was directed toward you (or caused because of you) in any way. You are certainly free to use whatever form of launcher you like (some developers here even use AutoHotkey instead of NSIS or the PA.c Launcher).
I guess what brought it up was how the PA.c Launcher had failed to do what you wanted it to accomplish, so that (if you were still interested in using it) we could help you understand how to make it do that, or add in that functionality to the launcher.
As scriptdaemon said, none of this was directed at you. Far be it from me to tell you which tool to use!
Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world