Use textpad for writing NSIS scripts

Usage tips, posted by users. No questions here please.

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
OnlyTextPad
Posts: 41
Joined: Sat May 20, 2006 9:10 pm
Location: Helsinki
Contact:

Use textpad for writing NSIS scripts

Post by OnlyTextPad »

This assumes you installed NSIS with default settings if not search the makensis.exe and apply its path:
Add new DOS commad:
Parameters:"C:\Program Files\NSIS\makensis.exe" /V4 $FileName
Initial Folder:$FileDir
check: Save All Documents first
check: Capture output
Regex to match output:
^.+in script "(.+)" on line ([0-9]+)[.,]?
Registers:
File 1 Line 2

For the laziest (on your own risk ; ).Change the num of tools also ; )
===================COPY PASTE START

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Helios\TextPad 4\Tools\13]
"Properties"=hex:01,00,00,00,68,80,00,00,e8,49,00,00
"MenuText"="\"C:\\Program Files\\NSIS\\makensis.exe\" /V4 $FileName"
"Command"="cmd.exe"
"Parameters"="\"C:\\Program Files\\NSIS\\makensis.exe\" /V4 $FileName"
"Folder"="$FileDir"
"RE"="^.+in script \"(.+)\" on line ([0-9]+)[.,]?"
===================COPY PASTE END
Post Reply