NsPython plug-in: Difference between revisions
Line 9: | Line 9: | ||
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. | ||
Supports Python 2.3. | Supports Python 2.3, 2.5 | ||
Other Python Versions may work but the nsPython.dll has to be rebuild for them. | |||
Python License. | 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. | A version that supports Python 2.2 is available at the above address. | ||
Revision as of 08:39, 13 August 2009
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, 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.