You are here

InkscapePortable - First try at NSIS

3 posts / 0 new
Last post
krTsukasa
Offline
Last seen: 15 years 1 month ago
Joined: 2007-06-17 18:10
InkscapePortable - First try at NSIS

Ok, before anyone says this, I know that InkscapePortable is already in delopment.

A few days ago, I decided to try my hand at learning some NSIS. When I was looking through my PortableApps folder, I discovered that the current version of InkscapePortable is written in au3, and decided that it would be the perfect candidate (that and the fact that, being a Linux program originally, it doesn't use the registry).

Well, here's what I got:

InkscapePortable.exe (Self-Extracting 7-Zip)

I'd appreciate any feedback I can get on the NSIS code.

Also, the launcher is all I've modified, the app itself was just taken from the existing development version of InkscapePortable. I used this version because it was stripped down from the full version or something (80-something MB vs a few hundred for a normal Inkscape installation).

Oh, and the Splash Screen was just something I made for the fun of it, I know it's not official or anything, and I don't mean it to be.

Again, I'd appreciate any feedback I can get.

Kevin Porter
Kevin Porter's picture
Offline
Last seen: 10 years 2 months ago
Developer
Joined: 2007-01-10 19:25
I haven't had a chance to

I haven't had a chance to take a look at it closely yet, but here are some first things that you might want to change.

This topic would fall under the beta testing forum, instead of the general discussion forum. Keeps things organized. Wink

Also, you might want to take a look at the PortableApps.com Format Spec Outline to get all of your stuff in line with that. Once again, that will make everything a little neater and (with future versions of the Platform) will be necessary to work correctly. Also, it just keeps things consistent so we don't have to go around looking for things in oddball directories, etc.

Hopefully that helps for now. Smile

EDIT: Also, I believe Inkscape is a GTK application, no? If it is, then you're going to have to package the GTK environment in order for it to work on all machines. Take a look at Pidgin or GIMP for the code to do that.

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

krTsukasa
Offline
Last seen: 15 years 1 month ago
Joined: 2007-06-17 18:10
Thanks for the link.

Thanks for the link. I think everything format wise should be in order, but I haven't really checked it over. The main thing there would be the appinfo.ini file... which I just copied from the existing InkscapePortable.

I'm not sure whether I have to do anything for GTK or not. Inkscape is a GTK application, but I think it has GTK in it's lib folder (App\Inkscape\lib). Not sure if it has to be specified in the code or not (I'll look at GIMP or Pidgin for that). The original au3 code didn't seem to address it though, and so far both the original au3 and my NSIS version have worked on all the computers I've tested it on.

Also, to go along with the packaging subject, I've been trying to get GhostScript to work with InkscapePortable (the original development version that is). The main problem I'm running into is that the Inkscape .inx export instructions want to send the file to "gs" (the Linux GhostScript command) instead of to gswin32x.exe (the windows gs executable). I think I can make it work if I package them together and have the NSIS create a registry entry telling Windows that "gs" = "path_to_gs\gswin32c.exe". I see some studying of the NSIS manual in my near future.

Log in or register to post comments