Author Topic: Anyone use NSIS installers for CAD user updates?  (Read 2368 times)

0 Members and 1 Guest are viewing this topic.

JohnK

  • Administrator
  • Seagull
  • Posts: 10170
Anyone use NSIS installers for CAD user updates?
« on: February 02, 2010, 12:07:17 PM »
A while back i started using NSIS installers for some of my CAD updates. I built custom installers for a lot of what i needed to install on peoples machines like Ghostscript, modified (hand hacked) default AutoCAD .dll's and such but i wrote those about 2 computer updates ago and lost all my TEMPLATE NSIS scripts since then. I moved on to .bat files but .bat files are just to...crappy.

Yesterday i had some time so i rebuilt two of my template scripts (dialog box and silent) Anyone care to collaborate with me on some generic installers?
TheSwamp.org (serving the CAD community since 2003)

Donate to TheSwamp.org

JohnK

  • Administrator
  • Seagull
  • Posts: 10170
Re: Anyone use NSIS installers for CAD user updates?
« Reply #1 on: February 03, 2010, 09:01:22 AM »
Attached is my customized silent installer and my customized Dialog box installer scripts.

The dialog box script has extra notes in it for some other common tasks (Sorry if you dont use Vim--i folded up those 500 or so lines--but you will have to scroll down a bit to get to the actual script).


EDIT:
Removed the Dialogbox Installer. See Below.
« Last Edit: April 19, 2010, 10:45:16 AM by Se7en »
TheSwamp.org (serving the CAD community since 2003)

Donate to TheSwamp.org

nivuahc

  • Guest
Re: Anyone use NSIS installers for CAD user updates?
« Reply #2 on: February 03, 2010, 09:15:40 AM »
Thanks, John.

I've been considering something like this for the past couple of weeks so I'll definitely look into it.

JohnK

  • Administrator
  • Seagull
  • Posts: 10170
Re: Anyone use NSIS installers for CAD user updates?
« Reply #3 on: February 22, 2010, 04:50:51 PM »
this is post is a FYI/note/info.

NOTE:
NSIS and the Registry on win_x64
http://msdn.microsoft.com/en-us/library/ms724072(VS.85).aspx
TheSwamp.org (serving the CAD community since 2003)

Donate to TheSwamp.org

JohnK

  • Administrator
  • Seagull
  • Posts: 10170
Re: Anyone use NSIS installers for CAD user updates?
« Reply #4 on: April 19, 2010, 10:44:28 AM »
To add to the PATH environment variable:
Code: [Select]
;
; add path to PATH environment variable.
 ReadEnvStr $REGPATH "PATH"
 StrCpy $REGPATH "$REGPATH;$INSTDIR;"
 WriteRegStr HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" "PATH" $REGPATH

This should go in the ``InstallFiles'' function of the `Generic Dialogbox' installer.
See attached.
TheSwamp.org (serving the CAD community since 2003)

Donate to TheSwamp.org