SketchUcation Plugin Store

 

 

nullsoft Installer for Plugins

nullsoft Installer for Plugins

Postby tdev » Wed Jul 16, 2008 2:11 pm

i created a nullsoft installer for sketchup plugins:
sc.png

it detects the sketchup installation directory and downloads sketchup if its not installed :)

sources:
installer.nsi.txt


should be easy to modify for your needs :)
Please, register (free) to access all the attachments on the forums.
tdev
 
Posts: 3
Joined: Wed Jul 16, 2008 2:06 pm

Re: nullsoft Installer for Plugins

Postby Jim » Thu Jul 17, 2008 12:44 am

Thanks tdev, this is cool.

For those who don't know - the attachment is not a plugin; it is a configuration file for the nullsoft installer which is a tool used to make executable installers.

(I've split this topic from the "Installer" thread.)
Jim
Global Moderator
 
Posts: 4126
Joined: Mon Nov 12, 2007 10:13 pm
Location: NEOH
Name: Jim
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: nullsoft Installer for Plugins

Postby Baker518 » Thu Jul 17, 2008 3:09 am

Jim, tell me how this works and how it will help, I have no idea I dont think

Mike
Don't worry about things you have no control over. Worry is a lack of Faith!
Baker518
 
Posts: 108
Joined: Wed Nov 14, 2007 12:56 am
Location: Alabama
Name: Mike

Re: nullsoft Installer for Plugins

Postby Juju » Thu Jul 17, 2008 10:16 am

I think it will be of use to (ruby) developers as the end user won't have to copy files (scripts and such) to the SketchUp folders manually anymore, it will be automated.
Save the Earth, it's the only planet with chocolate.



Keeping things organised is not a sin. ;)
Juju
 
Posts: 1127
Joined: Mon Oct 22, 2007 1:45 pm
Location: Durbanville, Cape Town, South Africa.
Name: Julian Smith

Re: nullsoft Installer for Plugins

Postby Juju » Thu Jul 17, 2008 11:36 am

Maybe collections can now be packaged together according to how appropriate they are to certain industries. Like having an installer package for architecture, etc.
Save the Earth, it's the only planet with chocolate.



Keeping things organised is not a sin. ;)
Juju
 
Posts: 1127
Joined: Mon Oct 22, 2007 1:45 pm
Location: Durbanville, Cape Town, South Africa.
Name: Julian Smith

Re: nullsoft Installer for Plugins

Postby tdev » Thu Jul 17, 2008 11:46 am

nice to see you like the idea :)

and yes it is intended to be used by ruby developers to ease the script installation for end users.(But it can be used to install anything in fact)
I just modified the winamp plugin example that ships with nsis into what you see :)

how to use:
1. download nsis: http://nsis.sourceforge.net/Download
2. put all your files you want to release into one directory
3. download that installer script into that direectory and rename to installer.nsi
4. modify the file installer.nsi with a text editor. Things you should change:

Line 7: The name of the software you want to install. (Add version information):
Code: Select all
Name "Ogre - Sketchup Plugin 1.1.0"


Line 53: What files to install:
change the File command (see here for more info)
Code: Select all
  File *.rb
  File lesser.txt
  File readme.txt
  File ogre_export.htm


if you want to change the output path you can use this function.
Code: Select all
  SetOutPath "c:\"


Line 73: The Instruction Website that is opened after the installation:
Code: Select all
  StrCpy $0 "http://wiki.rigsofrods.com/index.php?title=Sketchup_Plugins#introduction"


Line 10: Determines how the result executable will be named (not such important):
Code: Select all
OutFile "ogre-skechtup.exe"


5. after modifying the file, right click on it and select "Compile NSIS Script"

i hope that helps :)
nsis has a lot capabilities, so lots of possible ideas for extensions...


EDIT:
Juju: the Nsis system can create categories for installable content, like you know "install full" or "install minimal" or select single categories, so everything possible :)

also if you want to adopt this for all ruby plugins, we should use a common logo and icon, so the user recognizes it
tdev
 
Posts: 3
Joined: Wed Jul 16, 2008 2:06 pm

Re: nullsoft Installer for Plugins

Postby bianhai » Thu Jul 17, 2008 8:15 pm

Very good!Thanks! :family:
bianhai
Banned
 
Posts: 191
Joined: Fri Nov 30, 2007 3:05 pm
Location: Shanghai China
Name: Brian

Re: nullsoft Installer for Plugins

Postby plot-paris » Fri Jul 18, 2008 9:14 am

tdev wrote:also if you want to adopt this for all ruby plugins, we should use a common logo and icon, so the user recognizes it

another competition!!! :D
User avatar
plot-paris
 
Posts: 1553
Joined: Tue Apr 01, 2008 10:15 am
Location: London
Name: plot-paris
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: nullsoft Installer for Plugins

Postby tdev » Mon Feb 09, 2009 6:57 pm

well, good luck with this, im out :)
tdev
 
Posts: 3
Joined: Wed Jul 16, 2008 2:06 pm

Re: nullsoft Installer for Plugins

Postby Todd Burch » Mon Feb 09, 2009 9:32 pm

I must have missed the Mac version. :o
Todd Burch
 
Posts: 909
Joined: Mon Nov 12, 2007 2:43 pm
Location: Katy, Texas

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Are you a Premium Member? Get your freebies here. Are you not a Premium Member yet? Upgrade your account to grab these freebies instantly.

Ad Machine
Robot
 
Posts: 2012


Return to Developers' Forum

Who is online

Users browsing this forum: gustavososa15, NigeC and 3 guests