You are here

Creating a NSIS launcher Help **Resolved**

22 posts / 0 new
Last post
vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 4 months ago
Developer
Joined: 2010-02-13 17:10
Creating a NSIS launcher Help **Resolved**

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

Mark Sikkema
Offline
Last seen: 12 years 5 months ago
Developer
Joined: 2009-07-20 14:55
Please include your

Please include your *launcher.ini file your using !!!

Would make it a bit eassier to help you ! Wink

Formerly Gringoloco
Windows XP Pro sp3 x32

scriptdaemon
Offline
Last seen: 4 years 3 months ago
Developer
Joined: 2008-10-10 17:40
I don't think he's using the

I don't think he's using the PA.c launcher; I think he means to create his own.

vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 4 months ago
Developer
Joined: 2010-02-13 17:10
My 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

Mark Sikkema
Offline
Last seen: 12 years 5 months ago
Developer
Joined: 2009-07-20 14:55
Ambitiouse !!!

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

vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 4 months ago
Developer
Joined: 2010-02-13 17:10
I appreciate the offer and will let you know

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

OliverK
OliverK's picture
Offline
Last seen: 2 years 8 months ago
Developer
Joined: 2007-03-27 15:21
DON"T HACK THE BASE APP'S

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 Smile

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

vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 4 months ago
Developer
Joined: 2010-02-13 17:10
OK I won't

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

OliverK
OliverK's picture
Offline
Last seen: 2 years 8 months ago
Developer
Joined: 2007-03-27 15:21
Hey, as long as it stays open

Hey, as long as it stays open source, you're welcome to Smile

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

vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 4 months ago
Developer
Joined: 2010-02-13 17:10
NSIS Code can some one tell me

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

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 8 months ago
Joined: 2007-04-15 21:08
Naturally

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

vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 4 months ago
Developer
Joined: 2010-02-13 17:10
I agree Chris

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

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 8 months ago
Joined: 2007-04-15 21:08
Explain

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

vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 4 months ago
Developer
Joined: 2010-02-13 17:10
I think I have it figured out

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

OliverK
OliverK's picture
Offline
Last seen: 2 years 8 months ago
Developer
Joined: 2007-03-27 15:21
Yeah, but with PAL you don't

Yeah, but with PAL you don't learn a single thing about programming.

Just fill in the blanks until it works.

this copying of launchers, modifying, leaving irrelevant bits in, makes an enormous mess very often

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

scriptdaemon
Offline
Last seen: 4 years 3 months ago
Developer
Joined: 2008-10-10 17:40
You and Zach just don't like

You and Zach just don't like to make things easy, eh? Blum

OliverK
OliverK's picture
Offline
Last seen: 2 years 8 months ago
Developer
Joined: 2007-03-27 15:21
Nope. Get messy, make

Nope. Get messy, make mistakes. Biggrin

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

Simeon
Simeon's picture
Offline
Last seen: 9 years 4 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
just

ditto.

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

scriptdaemon
Offline
Last seen: 4 years 3 months ago
Developer
Joined: 2008-10-10 17:40
Not to debate you about the

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.

vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 4 months ago
Developer
Joined: 2010-02-13 17:10
Wow

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

scriptdaemon
Offline
Last seen: 4 years 3 months ago
Developer
Joined: 2008-10-10 17:40
Do not be discouraged. No

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.

OliverK
OliverK's picture
Offline
Last seen: 2 years 8 months ago
Developer
Joined: 2007-03-27 15:21
As scriptdaemon said, none of

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

Log in or register to post comments