InnoSetup Script error line 1

  1. 8 months ago

    Arthur G

    21 Jan 2019 Pre-Release Testers, Xojo Pro

    I'm getting an error in the InnoSetup script on line 1 and it makes no sense.
    It is virtually the same as Eddies Electronics.
    I have also no experience with scripts.

    #define XojoAppName "ReviewCards"

    I also assume that is line 1

    If the next, then it is virtually the same problem.

    #define XojoProjectName "ReviewCards.xojo_XML_project"

    Actually comment lines start with a semi-colon.

    The #define is a pre-processor directive: http://www.jrsoftware.org/ispphelp/topic_define.htm

    I do not know why you'd get that error, though.

    Perhaps it is a copy/paste problem or a bogus character? Have you tried the actual sample files instead?

    Examples/Platform-Specific/Windows/Making Installers/XojoInstaller.iss
    Examples/Platform-Specific/Windows/Making Installers/XojoInstaller64bit.iss

  2. Wayne G

    21 Jan 2019 Pre-Release Testers, Xojo Pro New Zealand axisdirect.nz

    Any line beginning with # is a comment so look for the first line without the #

  3. Arthur G

    21 Jan 2019 Pre-Release Testers, Xojo Pro

    Then it would be the line for AppId

    I wondered because it starts with 2 brackets..
    From the manual:

    AppId={{27EFF741-9A5C-4C19-8841-E9F4B7E6BCFC}

    If it's 2 brackets, I wonder what else is wrong.

  4. Paul L

    22 Jan 2019 Xojo Inc, Third Party Store Answer http://docs.xojo.com

    Actually comment lines start with a semi-colon.

    The #define is a pre-processor directive: http://www.jrsoftware.org/ispphelp/topic_define.htm

    I do not know why you'd get that error, though.

    Perhaps it is a copy/paste problem or a bogus character? Have you tried the actual sample files instead?

    Examples/Platform-Specific/Windows/Making Installers/XojoInstaller.iss
    Examples/Platform-Specific/Windows/Making Installers/XojoInstaller64bit.iss

  5. Arthur G

    22 Jan 2019 Pre-Release Testers, Xojo Pro
    Edited 8 months ago

    Thanks Paul.

    Examples/Platform-Specific/Windows/Making Installers/XojoInstaller.iss
    Examples/Platform-Specific/Windows/Making Installers/XojoInstaller64bit.iss

    The 64bit is not included in the current set of examples. It is included in r3

    Edit: I copied the code from the manual. The code listed in the current pdf docs version has a title of:

    Inno Setup Script for 64-bit Apps

    No where in the docs does it mention that file extension should be .iss
    If I had seen that, I would not have a need for posting.
    It works.

    I'm not too sure what I should do with this complaint about files missing and suggested file names.

  6. Paul L

    22 Jan 2019 Xojo Inc, Third Party Store http://docs.xojo.com
    Edited 8 months ago

    @Arthur G I'm not too sure what I should do with this complaint about files missing and suggested file names.

    I see the XojoInstaller64bit.iss in the 2018r4 install on both Windows and Mac.

    The doc pages already show the location of the sample files in the Examples and also shows its extension as "iss".

  7. Tim P

    22 Jan 2019 Pre-Release Testers Rochester, NY

    Try using Inno Script Studio, it's got a guided wizard that can help you get an installer script made.
    https://www.kymoto.org/products/inno-script-studio

  8. Arthur G

    22 Jan 2019 Pre-Release Testers, Xojo Pro
    Edited 8 months ago

    Apologies about

    XojoInstaller64bit.iss

    .
    I think I was still expecting XojoScript extension.
    Thanks Tim. Downloaded for experimentation.
    Problem is solved with knowing it's not XojoScript.

  9. Jeff T

    22 Jan 2019 Pre-Release Testers Midlands of England, Europe

    AppId={{27EFF741-9A5C-4C19-8841-E9F4B7E6BCFC}

    If it's 2 brackets, I wonder what else is wrong.

    You need 2 on the end as well.

  10. Arthur G

    22 Jan 2019 Pre-Release Testers, Xojo Pro

    It doesn't show 2 pairs in any of the iss examples.

  11. Jeff T

    22 Jan 2019 Pre-Release Testers Midlands of England, Europe

    All the scripts I have , have 2 on either end.
    It think it happens when you insert a new GUID.
    But instead of telling me about their docs, have you tried adding the extra bracket?

  12. Michael D

    22 Jan 2019 Pre-Release Testers, Xojo Pro

    Another ISS gotchat: the semicolon for comment can't follow a variable assignment, e.g.

    ; delay is in msec
    SignToolRetryDelay=3000

    works but

    SignToolRetryDelay=3000  ; delay is in msec

    fails.

or Sign Up to reply!