Reference/AddBrandingImage: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(Created page with "=AddBrandingImage= (left|right|top|bottom) (width|height) [padding] Adds a branding image on the top, bottom, left, or right of the installer. Its size will be set according t...")
 
mNo edit summary
Line 12: Line 12:
AddBrandingImage bottom 35
AddBrandingImage bottom 35
AddBrandingImage left 100 5</highlight-nsis>
AddBrandingImage left 100 5</highlight-nsis>
''Command introduced with NSIS v2.0''

Revision as of 11:13, 3 June 2013

AddBrandingImage

(left|right|top|bottom) (width|height) [padding]

Adds a branding image on the top, bottom, left, or right of the installer. Its size will be set according to the width/height specified, the installer width/height and the installer font. The final size will not always be what you requested; have a look at the output of the command for the actual size. Because this depends on the installer font, you should use SetFont before AddBrandingImage. The default padding value is 2.

AddBrandingImage only adds a placeholder for an image. To set the image itself on runtime, use SetBrandingImage.

AddBrandingImage left 100
AddBrandingImage right 50
AddBrandingImage top 20
AddBrandingImage bottom 35
AddBrandingImage left 100 5

Command introduced with NSIS v2.0