NsPython plug-in: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
No edit summary
Line 5: Line 5:


== Description ==
== 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.
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.
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.

Revision as of 23:55, 1 May 2008

Author: KiCHiK (talk, contrib)


Links

NSIS-Python.zip (42 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.

Python License.

Taken from: 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.