如何在Inno Setup上使用botva2.dll?

时间:2012-09-10 23:25:21

标签: inno-setup

如何通过glass image.png更改Inno Setup上的InnerNotebook? 我知道我必须使用dll botva2,但我不知道代码。

这是我的安装程序: http://img196.imageshack.us/img196/160/imageawi.jpg

但是我想把这个效果放在所有页面上: http://img571.imageshack.us/img571/2479/image2mr.jpg

1 个答案:

答案 0 :(得分:0)

您需要添加2张图片:

  1. 背景

  2. 透明图片(.png),高于背景。

  3. 所有组件必须是透明的(Labels或TNewStatictexts支持此)

    如何使用botva2.dll并调用它的函数如下所示。

    a)声明插件导出:

    procedure GdiPlusShutdown; external 'gdipShutdown@{tmp}\botva2.dll stdcall delayload';
    

    b)将botva2.dll添加到您的安装程序中:

    [Files]
    Source: botva2.dll;       Flags: dontcopy;
    

    c)将.dll解压缩到Temp目录中(最好是在一些Init函数中执行此操作,如InitializeWizard();

      

    ExtractTemporaryFile( 'botva2.dll');

    d)调用你的函数:

    procedure MyFunc();
    begin
    // Unload ComCtrls functions
      GdiPlusShutdown; // Function from botva2.dll
    end;
    

    如果您需要这样的完整解决方案:Graphical Installer

    我可以推荐一下名为Graphical Installer的Inno Setup扩展:Graphical Installer website