Click here to Skip to main content
Licence CPOL
First Posted 1 May 2003
Views 50,761
Bookmarked 29 times

gInstall & Mr Skinner

By | 1 May 2003 | Article
Demonstrates how to create a skinned setup application using gInstall.
This file only contains the installation script itself and is meant as an example only and will not build.

Introduction

I decided that it was about time that I bought a proper installation tool, after some deliberation, I went for the excellent Ghost Install application from gInstall Corporation of Germany. It has many benefits over Wise and InstallShield, both of which I have used, some of these are:
  • Costs a lot less than either of the two main industry standard installers.
  • Can create fully skinable setup applications.

This article shows how to create a skinned setup application using the sample skin supplied with gInstall.

Compiling the skin

The sample skin provided with gInstall can be found in the following folder, assuming of course that you installed it in the default location:
c:\Program Files\gInstall\Ghost Installer\Plugins\Skinner\
    Skin samples\StdUI

The first thing you need to do is compile the StdGUI.sml file to produce another file called, StdUI.gis, but to do this you need to copy the sml2gis.exe utility into the same folder, or refer to it using a relative path. At a command (DOS) prompt, type the following:

sml2gis StdGUI.sml

This produces the StdUI.gis file which is quite large in size (9 Mb), don't worry about that, it gets compressed down, a lot.

Creating the setup kit

If I am creating a setup kit for an application, I would normally put it within a subfolder of the actual project, called something like Setup. Copy the newly created file "StdUI.gis" into this folder and start gInstall Studio. Create a new project and save it in the same location, i.e. the Setup folder. Before we begin modifing the script to work with a particular skin, you must create the rest of the installation steps, i.e. which dialogs to display, etc, this is easy to do using the gInstall Studio interface.

Once this is done, test that your installation works with the standard user interface plugin.

Adding skin support

Firstly, we need to modify a setting within our setup, to enable the Mr Skinner plug in, as shown below.

Enable the Mr Skinner plugin

We now need to tell the setup script that we wish to use the MrSkinner plugin, so from the Project menu, select the View Source option.

You need to modify the script in two places, first add the following code to the <plugins> section of the xml script file.

<plugin id="GSkinner"/>

This section should now look something like this:

<plugins>
    <plugin id="StdUI">
        <config>
            // Code ommitted for brevity
        </config>
    </plugin>
    <plugin id="GSkinner"/>
</plugins>

Finally, we need to add a presetup section that tells gInstall which skin to use, so add the following code:

<presetup>
    <file src="StdUI.gis"/> // Include the path (full or relative) 
                            // to the "StdUI.gis" file
</presetup>

Your script should now look something like this:

<plugins>
    <plugin id="StdUI">
        <config>
            // Code ommitted for brevity
        </config>
    </plugin>
    <plugin id="GSkinner"/>
</plugins>
<presetup>
    <file src="StdUI.gis"/> // Include the path 
              // (full or relative) to the "StdUI.gis" file
</presetup>

The hard parts are done now, simple isn't it.

The final touches

When I got this far, things were not as expected, as you can see in the following screenshot.

It all went wrong!

Not quite right... there is a missing banner and the title text is too far over to the left.

This is easy to fix though, first add the banner which is the BANNER.bmp file in the sample skin folder.

Adding the banner

and finally move the title text over by 30 pixels.

Moving the title

All Done

Thats it you can now build it, here is a picture of the first page of the skinned setup.

The finished article

History

  • 1.00 - First public release.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Jonathan [Darka]



United Kingdom United Kingdom

Member

[DebugSPY]

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralAuthor of Ghost Installer is Ethalone Solutions Inc now PinsussAnonymous7:13 26 Oct '04  
QuestionWhich is the best skinned setup builder?? PinmemberJigar Mehta22:14 22 Jul '04  
AnswerRe: Which is the best skinned setup builder?? PinmemberDarka22:18 22 Jul '04  
GeneralUse InnoSetup instead! PinmemberRobert Buldoc11:35 2 May '03  
GeneralRe: Use InnoSetup instead! PinmemberDarka11:49 2 May '03  
GeneralRe: Use InnoSetup instead! PinmemberJohn M. Drescher13:19 2 May '03  
GeneralRe: Use InnoSetup instead! PinmemberMustafa Demirhan20:52 2 May '03  
GeneralUse NSIS2 instead ! PinmemberPixiGreg1:11 3 May '03  
GeneralRe: Use NSIS2 instead ! PinmemberMustafa Demirhan9:36 3 May '03  
GeneralRe: Use NSIS2 instead ! Pinmemberqcha0s8:51 29 Feb '04  
GeneralRe: Use NSIS2 instead ! PinmemberMustafa Demirhan11:08 29 Feb '04  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120517.1 | Last Updated 2 May 2003
Article Copyright 2003 by Jonathan [Darka]
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid