


// constructor
function Component()
{
    component.loaded.connect( this, Component.prototype.loaded );
    installer.installationFinished.connect( this, Component.prototype.installationFinished );
}

// called as soon as the component was loaded
Component.prototype.loaded = function()
{
   
}


Component.prototype.retranslateUi = function()
{
    // add some text to a label that comes from the welcome.ui file
    if(installer.isInstaller()) {
              //component.userInterface( "WelcomeWidget" ).label.text += "<br><br>This will install <b>Nokia SDK 1.0 for Java</b>";
	
    } else if(installer.isUninstaller()) {
  
        //component.userInterface( "WelcomeWidget" ).label.text += "<br><br>This will uninstall <b>Nokia SDK 1.1 for Java</b>";
    }
}

Component.prototype.installationFinished = function()
{
    text = "";
    if(installer.isInstaller()) {
        text += "Installation completed successfully.";
    } else if(installer.isUninstaller()) {
        text += "Uninstallation completed successfully.";
    }
    text += "<br>Click Finish to close this Wizard.";
    installer.setValue("FinishedText", text);
}

Component.prototype.createOperations = function()
{
     component.addOperation( "CreateShortcut", "@TargetDir@\\SDKManager.exe", "@StartMenuDir@/Nokia SDK 2.0 for Java/SDK Manager.lnk", "workingDirectory=@TargetDir@", "--manage-packages");
}
