Published — v. 5
/

最小限のリブランディング


こちらの例では、最小限の作業で、インストーラーのリブランディングを行います。インストーラーのユーザーインターフェースにおける「Yellowfin」の参照は置き換えられ、一部のイメージもリブランディングバージョンに置き換えられます。


まずは、インストーラーに表示されるアプリケーションの名前を設定します。

installer.appname=Real Reports

Yellowfin」を参照するテキストプロパティを上書きします。

installer.footer.msg= -= www.realreports.com =-
installer.licencefilepanel.msg=A valid licence file is required to install and use Real Reports. If you do not have a licence file, please see your software provider.
installer.finishpanel.supportlink.url=http://www.example.com/support

Windowsサービスの名前と、説明を上書きします。

installer.winservice.name=Real Reports
installer.winservice.description=This service starts the Real Reports Server

Yellowfinブランドのサンプルコンテンツをインストールしないように、インストーラーを設定します。

action.yellowfincontent=false

グラフィックインストーラーの起動時に表示する新しいhtmlファイルを作成し、その新しいhtmlを使用するためのプロパティを追加します。
resource.infopanel.html=resources/installsplash.html

グラフィックインストーラーでパックアイコンとして使用する新しいイメージを作成します(パックごとに1つずつ)。これらの新しいイメージを使用するために、プロパティを追加します。

resource.pack.core.img=resources/corepack.png
resource.pack.tutorial.img=resources/tutorialpack.png
resource.pack.geopack.us.img=resources/usgeopack.png
resource.pack.geopack.world.img=resources/worldgeopack.png

上記すべてのプロパティを、「custom.propertiesという名前のファイルに記述します。

# text properties
installer.appname=Real Reports
installer.footer.msg= -= www.realreports.com =-
installer.licencefilepanel.msg=A valid licence file is required to install and use Real Reports. If you do not have a licence file, please see your software provider.
installer.finishpanel.supportlink.url=http://www.example.com/support
installer.winservice.name=Real Reports
installer.winservice.description=This service starts the Real Reports Server

# installer actions
action.yellowfincontent=false

# resources
resource.infopanel.html=resources/installsplash.html
resource.pack.core.img=resources/corepack.png
resource.pack.tutorial.img=resources/tutorialpack.png
resource.pack.geopack.us.img=resources/usgeopack.png
resource.pack.geopack.world.img=resources/worldgeopack.png

カスタマイズされたインストーラーを作成するためには、

  1. 既存のインストーラーjarファイルのコンテンツを抽出します。

    jar xvf /path/to/yellowfin-yyyymmdd-full.jar
    
  2. resources」という名前の新しいディレクトリを作成し、そこに新しいhtmlファイル、およびイメージファイルをコピーします。
  3. 上述のカスタムプロパティファイルを、インストールフォルダー構造のルートディレクトリにコピーします。
    ディレクトリには、以下のように、インストーラーアーカイブからの既存ファイルと、新しいファイルが含まれます。

    META-INF/MANIFEST.MF
    custom.properties
    com/
    default.properties
    resources/corepack.png
    resources/tutorialpack.png
    resources/usgeopack.png
    resources/worldgeopack.png
    resources/installsplash.html
    ...
    
  4. 変更されたjarファイルを作成します。

    jar cvmf META-INF/MANIFEST.MF /path/to/yellowfin-modified.jar
    

リブランドされたアプリケーション