Quantcast
Channel: Planet Object Pascal
Viewing all articles
Browse latest Browse all 1725

The road to Delphi: VCL Styles for NSIS

$
0
0

NSIS

The VCL Styles Utils project, now includes  a plugin (dll) to skin the installers created by NSIS (2.46 and 3.0). The current size of the plugin is about 1.6 mb, but when is included (and compressed) in the script only add ~550 Kb to the final installer.

ScreenShots

1

3

2

How to use it

To use the plugin in a NSIS installer you must call the LoadVCLStyleA function passing the skin name in the .onInit function.

Function .onInit
  InitPluginsDir
  ;Get the skin file to use
  File /oname=$PLUGINSDIR\Amakrits.vsf "..\Styles\Amakrits.vsf"
  ;Load the skin using the LoadVCLStyleA function
  NSISVCLStyles::LoadVCLStyleA $PLUGINSDIR\Amakrits.vsf
FunctionEnd

To use the plugin in a NSIS Uninstaller you must call the LoadVCLStyleA function passing the skin name in the un.onInit function.

Function un.onInit
  InitPluginsDir
  File /oname=$PLUGINSDIR\Amakrits.vsf "..\Styles\Amakrits.vsf"
  NSISVCLStyles::LoadVCLStyleA $PLUGINSDIR\Amakrits.vsf
FunctionEnd

For download and more info check the page of the plugin



Viewing all articles
Browse latest Browse all 1725

Trending Articles