![]() |
#1 |
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 |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,337
|
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 |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|