NsPython plug-in: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
Line 2: Line 2:


== Links ==
== Links ==
<attach>NSIS-Python.zip</attach>
Version vor python 2.3 <attach>NSIS-Python.zip</attach>
 
Version vor python 2.5 <attach>NSIS-Python25.zip</attach>


== Description ==
== Description ==

Revision as of 08:50, 13 August 2009

Author: KiCHiK (talk, contrib)


Links

Version vor python 2.3 NSIS-Python.zip (42 KB)

Version vor python 2.5 NSIS-Python25.zip (994 KB)

Description

Using NSIS installer and want some advanced scripting? Deploying a Python application and want to execute Python code during setup? Here is a solution.

Supported commands by this plug-in are eval, exec and execFile. A special nsis module is exposed to Python which supports writing to the log, display a message box and get/set the NSIS variables. The win32 parent handle of the installer can also be read so it's open for extensions that use win32all or ctypes.

Supports Python 2.3, 2.5 Other Python Versions may work but the nsPython.dll has to be rebuild for them.

Python License.

Original Authors site: http://homepage.hispeed.ch/py430/python/index.html

A version that supports Python 2.2 is available at the above address.

Problems ?

There is a comment about a problem where no modules are found. See the "comment" link at the top of the page.