You are here

Help with System Plugin (system.dll)

16 posts / 0 new
Last post
gluxon
gluxon's picture
Offline
Last seen: 3 years 6 months ago
Developer
Joined: 2008-06-21 19:26
Help with System Plugin (system.dll)

Hello guys.

I'm trying to get the System Plugin work with me.

Everything I use it I, the EXE always that it's used in crashes.

http://pastebin.com/f281a5362

My theory is that either I'm not putting some needed stuff in the script for the System Plugin to work or I've got a corrupt system.dll file.

So if somebody could either look at my script or link to a new download of the system plugin (I can't find it anywhere, I've googled and it does NOT come with NSIS).

Thanks.

wraithdu
Offline
Last seen: 10 years 9 months ago
Developer
Joined: 2007-06-27 20:22
System plugin does come with

System plugin does come with NSIS - NSIS\Plugins\System.dll

Anyway, if I had to guess, you can't set an environment variable named '~'

gluxon
gluxon's picture
Offline
Last seen: 3 years 6 months ago
Developer
Joined: 2008-06-21 19:26
???

I got that from TaffinFoxCroft's Python Portable code.

The system plugin does NOT come with it. I've looked and it's not in there, I've tried the portable version and the regular.

Thanks anyway.

OliverK
OliverK's picture
Offline
Last seen: 2 years 9 months ago
Developer
Joined: 2007-03-27 15:21
System::Call

System::Call 'Kernel32::SetEnvironmentVariableA(t, t) i("~", "$EXEDIR\$SETTINGSDIRECTORY").r0'

I've never heard of the ~ variable. If you run phenny via python portable, it does work portable. At least one that I used worked.

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

TaffinFoxcroft
TaffinFoxcroft's picture
Offline
Last seen: 10 years 3 months ago
Developer
Joined: 2006-12-14 17:24
Hello gluxon. First things

Hello gluxon. First things first: the C isn't a capital in my name.
Second of all, the system plugin does actually come with NSIS, chances are it got deleted somewhere down the line. Try re-installing the latest version.
The reason to why Python Portable redirects ~ is because a lot of python apps are written to be cross-platform (but mainly linux) so they use ~ which on linux is your home directory, but on windows is the equivalent to USERPROFILE. So by redirecting ~ not only is it making IDLE work properly, its also letting a lot of python apps work portably as well.

But there’s no sense crying over every mistake,
You just keep on trying till you run out of cake.

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

It is accessed as ~ under *nix, but the environment variable is HOME (%HOME%, $HOME). DON'T try setting ~ - it won't (or at least shouldn't) work.

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

gluxon
gluxon's picture
Offline
Last seen: 3 years 6 months ago
Developer
Joined: 2008-06-21 19:26
Still, that doesn't really

Still, that doesn't really help.

Zach Thibeau
Zach Thibeau's picture
Offline
Last seen: 1 year 5 months ago
Developer
Joined: 2006-05-26 12:08
actually it does to be

actually it does to be honest, your problem is that you are not understanding the said solution Smile see the HOME, TEMP are all Windows Variables, so using ~ is not a valid variable in windows, your best bet is to use HOME

your friendly neighbourhood moderator Zach Thibeau

gluxon
gluxon's picture
Offline
Last seen: 3 years 6 months ago
Developer
Joined: 2008-06-21 19:26
Yes, I've gotten rid of that

Yes, I've gotten rid of that but the EXE still crashes on launch.

Bart.S
Offline
Last seen: 7 months 2 weeks ago
Developer
Joined: 2008-07-23 07:56
...

Alright, I haven't seen your script (just read the comments here), but are you using the following code?

system::Call 'Kernel32::SetEnvironmentVariableA(t, t) i("~", "$EXEDIR\$SETTINGSDIRECTORY").r0'

I guess that "$EXEDIR\$SETTINGSDIRECTORY" causes the problem, because its something like "X:\PortableApps\ExampleApp\X:\PortableApps\ExampleApp\Data\settings".

Try that:

System::Call 'Kernel32::SetEnvironmentVariableA(t, t) i("HOME", "$SETTINGSDIRECTORY").r0'
gluxon
gluxon's picture
Offline
Last seen: 3 years 6 months ago
Developer
Joined: 2008-06-21 19:26
Actually, no. This is a

Actually, no.

This is a launcher I'm not really planning on releasing for PortableApps.com

And I prefer making $SettingsDirectory "Data\settings" instead of "[x]:\PortableApps\[AppName]Portable\Data\settings"

Thanks for helping though.

Bart.S
Offline
Last seen: 7 months 2 weeks ago
Developer
Joined: 2008-07-23 07:56
Ah, I see

*looks at script now*
Maybe it crashes because you redirect APPDATA and HOME. Some apps don't like that, so try redirecting only HOME.

gluxon
gluxon's picture
Offline
Last seen: 3 years 6 months ago
Developer
Joined: 2008-06-21 19:26
Actually... I tried this

Actually...

I tried this yesterday but forgot to post.

All my plugins are crashing.

I took the system.dll calls out of the script and tried it (3rd time I've done this, but with a different result), the FindProcDLL crashes, then, I take that out and the newadvsplash.dll crashes.

I know it's crashing because windows vista is reporting it, with the plugin's name.

What is up?

This isn't happening with any of my other 4 or 5 Launchers.

OliverK
OliverK's picture
Offline
Last seen: 2 years 9 months ago
Developer
Joined: 2007-03-27 15:21
NSIS Portable or NSIS

NSIS Portable or NSIS installed?

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

gluxon
gluxon's picture
Offline
Last seen: 3 years 6 months ago
Developer
Joined: 2008-06-21 19:26
BOTH!!!

BOTH!!!

I've even reinstalled... like 3 times.

wraithdu
Offline
Last seen: 10 years 9 months ago
Developer
Joined: 2007-06-27 20:22
Are you somehow using unicode

Are you somehow using unicode plugins with an ANSI version of NSIS or vice versa?

Log in or register to post comments