zoukankan      html  css  js  c++  java
  • 著名的安装制作软件InnoSetup的源码及示例源码-The installation of a well-known software s source code and sample InnoSetup source

    @echo off
    
    rem  Inno Setup
    rem  Copyright (C) 1997-2007 Jordan Russell
    rem  Portions by Martijn Laan
    rem  For conditions of distribution and use, see LICENSE.TXT.
    rem
    rem  Batch file to compile all projects
    rem
    rem  $jrsoftware: issrc/compile.bat,v 1.15 2007/01/30 01:18:24 jr Exp $
    
    setlocal
    
    if exist compilesettings.bat goto compilesettingsfound
    :compilesettingserror
    echo compilesettings.bat is missing or incomplete. It needs to be created
    echo with the following lines, adjusted for your system:
    echo.
    echo   set DELPHIROOT=c:delphi2              [Path to Delphi 2 (or later)]
    echo   set DELPHI3ROOT=c:delphi3             [Path to Delphi 3 (or later)]
    echo   set SYNEDITPATH=c:syneditsource      [Path to SynEdit]
    echo   set ROPSPATH=c:
    opssource            [Path to ROPS]
    goto failed2
    
    :compilesettingsfound
    set DELPHIROOT=
    set DELPHI3ROOT=
    set SYNEDITPATH=
    set ROPSPATH=
    call .compilesettings.bat
    if "%DELPHIROOT%"=="" goto compilesettingserror
    if "%DELPHI3ROOT%"=="" goto compilesettingserror
    if "%SYNEDITPATH%"=="" goto compilesettingserror
    if "%ROPSPATH%"=="" goto compilesettingserror
    
    rem -------------------------------------------------------------------------
    
    cd Projects
    if errorlevel 1 goto exit
    
    rem  Compile each project separately because it seems Delphi
    rem  carries some settings (e.g. $APPTYPE) between projects
    rem  if multiple projects are specified on the command line.
    
    echo - Compil32.dpr
    "%DELPHI3ROOT%indcc32.exe" -Q -B -H -W %1 -U"%DELPHI3ROOT%lib;..Components;%ROPSPATH%;%SYNEDITPATH%" -I"%SYNEDITPATH%" -E..Files -DPS_MINIVCL;PS_NOWIDESTRING;PS_NOINT64;PS_NOGRAPHCONST Compil32.dpr
    if errorlevel 1 goto failed
    
    echo - ISCC.dpr
    "%DELPHIROOT%indcc32.exe" -Q -B -H -W %1 -U"%DELPHIROOT%lib;..Components;%ROPSPATH%" -E..Files -DPS_MINIVCL;PS_NOWIDESTRING;PS_NOINT64;PS_NOGRAPHCONST ISCC.dpr
    if errorlevel 1 goto failed
    
    echo - ISCmplr.dpr
    "%DELPHIROOT%indcc32.exe" -Q -B -H -W %1 -U"%DELPHIROOT%lib;..Components;%ROPSPATH%" -E..Files -DPS_MINIVCL;PS_NOWIDESTRING;PS_NOINT64;PS_NOGRAPHCONST ISCmplr.dpr
    if errorlevel 1 goto failed
    
    echo - SetupLdr.dpr
    "%DELPHIROOT%indcc32.exe" -Q -B -H -W %1 -U"%DELPHIROOT%lib;..Components" -E..Files SetupLdr.dpr
    if errorlevel 1 goto failed
    
    echo - Setup.dpr
    "%DELPHIROOT%indcc32.exe" -Q -B -H -W %1 -U"%DELPHIROOT%lib;..Components;%ROPSPATH%" -E..Files -DPS_MINIVCL;PS_NOWIDESTRING;PS_NOINT64;PS_NOGRAPHCONST Setup.dpr
    if errorlevel 1 goto failed
    
    echo - Renaming files
    cd ..Files
    if errorlevel 1 goto failed
    move SetupLdr.exe SetupLdr.e32
    if errorlevel 1 goto failed
    move Setup.exe Setup.e32
    if errorlevel 1 goto failed
    
    echo - StripReloc'ing
    stripreloc /b- Compil32.exe ISCC.exe SetupLdr.e32 Setup.e32
    if errorlevel 1 goto failed
    
    echo Success!
    cd ..
    goto exit
    
    :failed
    echo *** FAILED ***
    cd ..
    :failed2
    exit /b 1
    
    :exit
  • 相关阅读:
    Oracle学习笔记--Oracle启动过程归纳整理
    Oracle 11g rac开启归档
    Oracle 11g rac中关于crsctl stop cluster/crs/has的区别
    Linux环境下安装MySQL 5.7.28
    将root用户权限赋予普通用户
    用Navicat Premium 连接mysql数据库时报错 -- 1130 Host xxxx is not allowed to connect to this MySQL server
    PCoIP vs HDX (CITRIX ICA)远程访问协议对比
    systemctl
    组播查询命令
    默认路由ip default-network和ip route 0.0.0.0 0.0.0.0区别
  • 原文地址:https://www.cnblogs.com/joean/p/4881199.html
Copyright © 2011-2022 走看看