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

Hi,

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.

Franz
FranzB is offline   Reply With Quote
Old 25th April 2016, 22:06   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,195
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
Reply
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