代码之家  ›  专栏  ›  技术社区  ›  Sergio Acosta

帮助我的用户在CD上找到安装程序

  •  3
  • Sergio Acosta  · 技术社区  · 16 年前

    myapp.msi
    setup.exe
    sqlexpr32.exe
    dotnetfx.exe
    myapp.ico
    ...
    

    setup.exe .

    autorun.inf

    Install.exe

    autorun.inf   <-- launches Install.exe, if autorun is enabled for the drive.
    Install.exe   <-- launches contents/setup.exe
    contents/myapp.msi
    contents/setup.exe
    contents/sqlexpr32.exe
    contents/dotnetfx.exe
    contents/myapp.ico
    contents/...
    

    另一种选择是制作 Install.bat

    5 回复  |  直到 16 年前
        1
  •  5
  •   Sergio Acosta    16 年前

    另一种选择是制作Install.bat,但大多数用户不熟悉.bat扩展名,可能不会考虑双击它。用户会看到一个命令提示符窗口。


    我发现了如何解决相对路径问题:

    快捷方式的配置方式如下:

    Target:    %windir%\system32\cmd.exe "/C start contents\setup.exe"
    Start in:  %cd%
    Run:       Minimized
    Icon:      %SystemRoot%\system32\SHELL32.dll (and manually select the one that looks like a setup package.
    

    我已经测试过了,它有效。

        2
  •  2
  •   Sander Versluys    16 年前

    保持简单,不要考虑太多的布局,按照惯例,留下setup.exe或install.exe,并提供一个README.txt文件,在其中可以找到安装说明。大多数用户会选择install.exe或setup.exe,其他用户可能会阅读txt。

        3
  •  2
  •   Tomas Andrle    16 年前

        4
  •  1
  •   MaxVT    16 年前

    我认为你提到的最简单的选择是,制作一个新的Install.exe程序,只启动原始的引导程序,除了CD根目录上的自动运行外,没有其他任何东西,这是最好的选择。

    一个图标=无选项。真的不能比这更好了。

        5
  •  0
  •   Marc    14 年前

    Bat To Exe Converter
    这样,您的用户将看到一个标准外观的EXE,其中包含您想要的任何自定义图标。此外,您可以将其配置为不可见运行,这样甚至不会有最小化的CMD框。