zoukankan      html  css  js  c++  java
  • Predefining the Installation Folder in the NetBeans Installer Framework

    http://blogs.oracle.com/geertjan/entry/predefining_the_installation_folder_in

    ————————————————————————————————————————————————————————————-——————

    Derek, who I suspect of being Derek Witt from the Jewelry Customer Manager on the NetBeans Platform, recently left a comment in this blog about the NetBeans Installer framework (NBI):
    "I would like to use NBI, but we need to have our application install in C:\\Documents and Settings\\user\\Application Data\\Custom App instead of C:\\Program Files\\Custom App. If I could figure out how to change the default installation directory and not allow them to change it, that would make our lives a bit easier."

    I asked Dmitry Lipin, the NBI guru, about this and he told me about the following. When you follow the steps below to the end, you'll be able to run "Package as | Installers" and then the installer created will consist of the following two panels, nothing more than that, in exactly the size shown below:

    As you can see, the user is not able to specify the installation folder, since we have removed the panel enabling them to do so and we have predefined the folder for them. To get to the above, you need to make changes to three files in "harness/nbi":

    • Hardcode the installation folder. Do so by setting the "product.properties.2.value" (which is for Windows, other os settings are in the same section in the same file) in this file:

      The file is: harness/nbi/stub/ext/infra/build/products/helloworld/build.properties

    • Remove the destination panel. Do so by commenting out (or deleting) the registration of the destionation panel in this file, which means the user will not be able to set the installation folder themselves:

      The file is: harness/nbi/stub/ext/components/products/helloworld/src/org/mycompany/wizard.xml

    • Set the size of the installer wizard. Do so by changing the ints found in this file:

      The file is: harness/nbi/stub/ext/engine/src/data/engine.properties

    There's actually a LOT of information about NBI available, if you start here: http://wiki.netbeans.org/NBI

    Hope that helps, Derek, and that you'll now be able to use NBI for your applications.

     

  • 相关阅读:
    接口的幂等性怎么设计?
    python 实现批量 WKT 转 KML
    火星坐标(GCJ02)高精度反算
    GDAL RasterIO 速度测试程序
    linux下 QtCreator 运行不显示 qDebug 输出的问题
    我使用的 clang-format 配置文件
    cephadm 离线安装部署 ceph 集群记录
    解决vcpkg无法交叉编译arm64版本 HDF5 库的问题
    QEMU 虚拟 aarch64(arm64) 记录
    DE-9IM 空间关系模型
  • 原文地址:https://www.cnblogs.com/cuizhf/p/2189956.html
Copyright © 2011-2022 走看看