Menu

#12 #include not ok

open-accepted
5
2010-07-14
2010-05-31
Thomas W
No

The documentation says: "If the filename is enclosed in angle brackets, ISPP first searches for the file in the directory where current file resides."
However, it seems that the preprocessor uses the working directory instead of the the "current file" directory for looking up th include file.
Here's how to reproduce:
1. Download the attached 4 files (setup.iss, include.iss and two text files) and put them into a directory
2. Open a command line
3. Run C:> "C:\Program Files\Inno Setup 5\iscc.exe" "D:\temp\ispp bug\setup.iss"
Please specify correct path for ISCC and wherever you put the 4 files.
Be sure to run the command from a different directory that setup.iss.

Discussion

  • Thomas W

    Thomas W - 2010-05-31

    All 4 files in ZIP

     
  • Thomas W

    Thomas W - 2010-05-31

    Complete error message on my system:

    U:\>"C:\Programme\Inno Setup 5\iscc.exe" "E:\temp\ispp bug\setup.iss"
    Inno Setup 5 Command-Line Compiler
    Copyright (C) 1997-2009 Jordan Russell. All rights reserved.
    Portions by Martijn Laan
    Inno Setup Preprocessor
    Copyright (C) 2001-2002 Alex Yackimoff. All rights reserved.

    Compiler engine version: Inno Setup 5.3.9 (u) - ISPP 5.3.9 (u)

    [ISPP] Preprocessing.

    Error on line 11 in E:\temp\ispp bug\setup.iss: [ISPP] File not found: "include.iss".
    Compile aborted.

    --------------
    It works fine when I switch to the directory first, e.g. by
    cd /d "e:\temp\ispp bug"
    But unfortunately this is not possible when I want to build the setup e.g. from a build script.

     
  • Alex Yackimoff

    Alex Yackimoff - 2010-07-14
    • assigned_to: nobody --> yackimoff
    • status: open --> open-accepted
     

Log in to post a comment.