Old 25th April 2016, 18:47   #1
Junior Member
Join Date: Apr 2016
Posts: 1
Example NSIS script for a plug-in for another app?


I'm developing an Autodesk 3ds Max plugin for an open source renderer. I would like to make an installer for that plugin, but being completely new to NSIS scripting I could use a little help.

The requirements of the installer are actually much simpler than for a full application:
- Ability to either find the target application (3ds Max), or to provide typical installation location and the ability for the user to modify it
- Ability to copy the plug-ins files to the application's directory (so with administrator rights)

Does anyone have (or know where to find) a working script for such a plug-in installer?

Thanks all in advance.

FranzB is offline   Reply With Quote
Old 25th April 2016, 21:06   #2
Anders's Avatar
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,370
Set $InstDir with InstallDirRegKey if the app has a registry entry you can use, probably InstallLocation or UninstallString in the Uninstall key.

A directory page with app detection forced by http://nsis.sourceforge.net/Reference/.onVerifyInstDir

To install files you use the SetOutPath and File instructions. Use the RequestExecutionLevel attribute to control UAC...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump