You are here

Third party exeopens wrong?

9 posts / 0 new
Last post
M60Berserker
Offline
Last seen: 17 years 2 months ago
Joined: 2007-07-21 18:18
Third party exeopens wrong?

I dont really have much knowledge about this but heres the problem.

I wanted to put some games in the menu, and one of my favorite games is the freeware game called little fighter 2...

I copied it to the usb drive\portableapps\LF2

I doubleclicked the exe and the game worked perfectly... BUT when opened from the Menu the game comes with an error... Do you know if i can solve this problem in any way?

roamer
roamer's picture
Offline
Last seen: 14 years 10 months ago
Joined: 2007-02-21 16:01
What version of PAM do you have?

Some apps won't launch in Beta3 and mods of said beta (the menu with Theme support). If that is the case, you can code a launcher for it.
Download Notepad++ Portable (it's a good program to have anyway)
Download Portable Application Template
Open the template in Notepad++
Fill the blanks with correct info (looks like this "" ,but leave the quotes when done)
Save it
Open it in NSIS's MakeNSIS tool
Put it and the other app data in correct folders

This should work, if it is beta 3. It's worked for me before.
__________________________________________
Long Live the Wiki[INSERT WORD HERE]

OliverK> you don't live on a cow
IRC: It brings out the best in all of us...Especially when tired.

M60Berserker
Offline
Last seen: 17 years 2 months ago
Joined: 2007-07-21 18:18
Okay i did as you said but

Okay i did as you said but NSIS gives me an error while tryin to compile...
Error in script "C:\Documents and Settings\M60Berserker\Dokumenter\Downloads\Portable Applications\LF2 Portable.nsi" on line 121 -- aborting creation process
Maybe it has something to do with theres no registry keys... So i didnt fill out the registry area... What should i do... i dont know very much about this.

My PAM version is the newest, i downloaded it from this site yesterday Smile

EDIT: I installed the mods, now theres an error at line 647, i have no idea what wrong Sad

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 9 months ago
Developer
Joined: 2006-12-06 18:07
My guess is that you are

My guess is that you are missing one of the NSIS plugins that is needed to compile any of these launchers.

You need the Registry plugin, the NewAdvSplash plugin, and FindProcDll plugin. After you download these, in the NSIS plugins directory put Registry.dll, NewAdvSplash.dll, FindProcDll.dll. And in the Include directory, you need Registry.nsh and GetParameters.nsh.

There might be other needed plugins, but these were the only ones packaged in Ryan's Portable Plugins set. Might be outdated, which is why I didn't post the link for it.
_____________________________
I don't believe in signatures

The developer formerly known as ZGitRDun8705

M60Berserker
Offline
Last seen: 17 years 2 months ago
Joined: 2007-07-21 18:18
I got all those plugins i

I got all those plugins
i still get an error on line 647

Heres the line[line 645,646,647]
!ifdef EXEPARMS
StrCmp $R0 "" 0 +2
StrCpy $R0 ${EXEPARMS} ; this is 647

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 9 months ago
Developer
Joined: 2006-12-06 18:07
I'm not really sure

I'm not really sure then....are you positive that you have GetParameters.nsh in the Include directory?
_____________________________
I don't believe in signatures

The developer formerly known as ZGitRDun8705

M60Berserker
Offline
Last seen: 17 years 2 months ago
Joined: 2007-07-21 18:18
Yes i took it from the

Yes i took it from the portable firefox...

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 9 months ago
Developer
Joined: 2006-12-06 18:07
ok...i can't help you then,

ok...i can't help you then, maybe somebody a bit more knowledgeable about NSIS can step in here?
_____________________________
I don't believe in signatures

The developer formerly known as ZGitRDun8705

roamer
roamer's picture
Offline
Last seen: 14 years 10 months ago
Joined: 2007-02-21 16:01
Here's my very simple launcher code.

(I thought the one I gave you would work just like mine, but I was wrong.)

OutFile "[program name].exe"
VIProductVersion "[version number in this format 0.0.0.0]"
VIAddVersionKey FileDescription "[description]"
SilentInstall silent
Section
Exec "$EXEDIR\[directory where the main exe is]"
SectionEnd

If this doesn't work, then I can't help you anymore. I'm still learning NSIS myself, I given all the help I can with what I know how to do.

__________________________________________
Long Live the Wiki[INSERT WORD HERE]

OliverK> you don't live on a cow
IRC: It brings out the best in all of us...Especially when tired.

Log in or register to post comments