Added PEAddResource and PERemoveResource

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7079 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2019-02-10 20:45:40 +00:00
parent 797e745de5
commit 978ac79a5d
17 changed files with 561 additions and 103 deletions

View file

@ -327,6 +327,24 @@ Accepts variables. If variables are used, they must be initialized in \R{oninit}
Specifies the output file that the MakeNSIS should write the installer to. This is just the file that MakeNSIS writes, it doesn't affect the contents of the installer.
\S2{apeaddresource} PEAddResource
\c [/OVERWRITE|/REPLACE] file restype resname [reslang]
Adds \cw{file} as a resource to the installer and uninstaller. \cw{restype} specifies the resource type and can be any string or # followed by a standard type or number. \cw{resname} must be # followed by a number. \cw{reslang} is optional and specifies the language id of the resource. Replacing standard NSIS resource are not supported, you should use \R{aicon}{Icon} and \R{achangeui}{ChangeUI} instead.
\c PEAddResource "myimage.bmp" "#2" "#1337"
\c PEAddResource "mybonus.ico" "#Icon" "#200"
\c PEAddResource "myimage.png" "PNG" "#1234"
\S2{aperemoveresource} PERemoveResource
\c [/NOERRORS] restype resname reslang|ALL
Removes a resource added with \cw{PEAddResource}.
\c PERemoveResource "#Icon" "#200" ALL
\S2{arequestexecutionlevel} RequestExecutionLevel
\c none|user|highest|\\<b\\>admin\\</b\\>

View file

@ -8,6 +8,8 @@ Released on ? ?th, 201?
\S2{} Minor Changes
\b Added \R{apeaddresource}{PEAddResource} and \R{aperemoveresource}{PERemoveResource}
\b Added \R{loadandsetimage}{LoadAndSetImage}
\S2{} Translations