Acad Install and Inno Setup

Discussion in 'AutoCAD' started by Kenny, Aug 4, 2003.

  1. Kenny

    Kenny Guest

    Has anyone had any experience with Acad Install and Inno Setup?
    I'm battling with an "Acad Install Error" that keeps on popping up during
    the installation process. My menu is loading correctly and my template file
    path is configured fine, but I cannot seem to get the "Support Path" feature
    to work.

    Inno Setup Compiler 3.0.6 (b)
    Acad Install 15.35
    AutoCAD 2004
    Win 2000
     
    Kenny, Aug 4, 2003
    #1
  2. Hi Kenny,

    It's not at all clear what your are trying to do.

    Can you post your commented Inno Setup Script so we can analyse it for you.

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au
     
    Laurie Comerford, Aug 4, 2003
    #2
  3. Kenny

    Kenny Guest

    The problem seems to lie within the AcadInst.ini file which I have included
    below :

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ; ;

    [PRODUCT]

    Name=AfraLisp2004_Custom_Menu
    RegPath=
    License=
    Silent=

    [AUTOCAD]

    Versions=R16.0
    Products=
    SerialNumbers=
    AddPath=<InstallPath>:1;<InstallPath>\Cadlib2k:2;<InstallPath>\Cadlisp2k:3;
    Silent=

    [AUTOCAD LT]

    Versions=
    Products=
    SerialNumbers=
    AddPath=
    Silent=

    [ARX]

    Install=
    Uninstall=
    Description=
    LoadCtrls=
    Loader=
    Groups=
    Commands=

    [ARX2]

    Install=
    Uninstall=
    Description=
    LoadCtrls=
    Loader=
    Groups=
    Commands=

    [MENU]

    MenuGroups=AFRALISP:AFRALISP:1:50

    [APPLOAD]


    [ACADDOC]


    [STARTAPP]

    [NEWPROFILE]
    Name=AfraLisp
    Description=AfraLisp 2002 Menu Profile.
    CopyFrom=<CURRENT>
    MakeDefault=T
    DesktopShortcut=T
    QuickLaunchButton=T

    [<PROFILE>General]

    TemplatePath=<STRING><InstallPath>\Templates

    ==================

    This is the corresponding "iss" file :

    ; Script generated by the Inno Setup Script Wizard.
    ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

    [Setup]
    AppName=AfraLisp 2004 Custom Menu
    AppVerName=AfraLisp 2004 Custom Menu - Version 1.1
    AppPublisher=AfraLisp
    AppPublisherURL=http://www.afralisp.com
    AppSupportURL=http://www.afralisp.com
    AppUpdatesURL=http://www.afralisp.com
    DefaultDirName={pf}\AfraLisp 2004 Custom Menu
    DisableDirPage=yes
    DefaultGroupName=AfraLisp 2004 Custom Menu
    DisableProgramGroupPage=yes
    LicenseFile=C:\afralisp2002_Install\license.txt
    InfoBeforeFile=C:\afralisp2002_Install\readme.txt
    InfoAfterFile=C:\afralisp2002_Install\install.txt

    [Files]
    Source: "C:\afralisp2002_Install\AcadInst.exe"; DestDir: "{app}"; Flags:
    ignoreversion
    Source: "C:\afralisp2002_Install\*.*"; DestDir: "{app}"; Flags:
    ignoreversion
    Source: "C:\afralisp2002_Install\Cadlib2k\*.*"; DestDir: "{app}\Cadlib2k";
    Flags: ignoreversion
    Source: "C:\afralisp2002_Install\Cadlisp2k\*.*"; DestDir: "{app}\Cadlisp2k";
    Flags: ignoreversion
    Source: "C:\afralisp2002_Install\Templates\*.*"; DestDir: "{app}\Templates";
    Flags: ignoreversion
    Source: "C:\afralisp2002_Install\AcadInst.exe"; DestDir: "{app}"
    ; NOTE: Don't use "Flags: ignoreversion" on any shared system files

    [INI]
    Filename: "{app}\AcadInst.url"; Section: "InternetShortcut"; Key: "URL";
    String: "http://www.afralisp.com"

    [Icons]
    Name: "{group}\AfraLisp 2004 Custom Menu"; Filename: "{app}\AcadInst.exe"
    Name: "{group}\AfraLisp 2004 Custom Menu on the Web"; Filename:
    "{app}\AcadInst.url"
    Name: "{group}\Uninstall AfraLisp 2004 Custom Menu"; Filename:
    "{uninstallexe}"

    [Run]
    Filename: "{app}\AcadInst.exe"; Description: "Launch AfraLisp 2004 Custom
    Menu"; Flags: nowait postinstall skipifsilent

    [UninstallDelete]
    Type: files; Name: "{app}\AcadInst.url"

    [UninstallRun]
    Filename: "{app}\AcadInst.exe"; Parameters: -U
     
    Kenny, Aug 4, 2003
    #3
  4. Are you using the latest version? if so then see below;

    Change the : to | (pipe symbol) ie
    "AddPath=<InstallPath>|1;<InstallPath>\Cadlib2k|2;<InstallPath>\Cadlisp2k|3;

    in the Help file:
    a.. Corrected incorrect use of colon in AddPath= key as delimiter between
    PATH:pOSTION to be PATH|POSITION instead.


    Also You may find IStool to be a little friendlier then plain Inno Setup, it
    a GUI that runs ontop Inno Setup - and it's free
    http://www.istool.org/

    HTH



     
    Albert Giuliano, Aug 4, 2003
    #4
  5. Good catch Albert :)

    Also, if you don't intend to install to LT you need to use some value for
    Versions= that doesn't make any sense. I normally use NONE.

    Kenny, was that the specific error you got ("Acad Install Error")? Was this
    text in the title bar of the message box or in the body? Does it occur before
    the dialog comes up or when you hit OK?

    --
    |
    ----+----------------------------------------------
    | Byron Blattel
    | CADwerx---Applications for AutoCAD
    | Autodesk Registered Developer
    | email:
    | web site: http://www.cadwerx.net
    |
     
    Byron Blattel, Aug 4, 2003
    #5
  6. Kenny

    Kenny Guest

    Kenny, was that the specific error you got ("Acad Install Error")? Was
    this
    I added the pipes ( | ) and the NONE but still get errors.
    The error occurs just after selecting the profile selection box.
    A message box pops up with the following :
    "AcadInst.exe has generated errors and will be closed by windows."
     
    Kenny, Aug 4, 2003
    #6
  7. I'm still unclear as to when the crash happens.

    It crashes when you select a profile in the list box?

    --
    |
    ----+----------------------------------------------
    | Byron Blattel
    | CADwerx---Applications for AutoCAD
    | Autodesk Registered Developer
    | email:
    | web site: http://www.cadwerx.net
    |
     
    Byron Blattel, Aug 4, 2003
    #7
  8. Kenny

    Kenny Guest

    The error occurs just after selecting the profile selection box.

    Just after selecting OK.
     
    Kenny, Aug 4, 2003
    #8
  9. Does it crash if you don't use the DesktopShortcut= and/or QuickLaunchButton=
    keys? Try removing each one and then both. They both run through the same
    code, if they both crash then the problem is in the common code.

    What OS are you testing on?

    --
    |
    ----+----------------------------------------------
    | Byron Blattel
    | CADwerx---Applications for AutoCAD
    | Autodesk Registered Developer
    | email:
    | web site: http://www.cadwerx.net
    |
     
    Byron Blattel, Aug 4, 2003
    #9
  10. Kenny

    Kenny Guest

    Sorry for the delay, but I'm on GMT and so am about 8 hours out of phase
    from the U S of A.
    I tried everything that was suggested and still get the error and no support
    paths set up.
    Mmm, let me try and remove the support path setup and see what happens.

    Ohh, OS - Win 2000
     
    Kenny, Aug 5, 2003
    #10
  11. Kenny

    Kenny Guest

    Okey doke. I removed the contents of AddPath from the AcadInst.ini e.g.

    AddPath=<InstallPath>|1;<InstallPath>\Cadlib2k|2;<InstallPath>\Cadlisp2k|3;

    became simply :

    AddPath=

    Installation now works perfect.

    Ideas anyone??
     
    Kenny, Aug 5, 2003
    #11
  12. Try removing the ending semi-colon.

    --
    |
    ----+----------------------------------------------
    | Byron Blattel
    | CADwerx---Applications for AutoCAD
    | Autodesk Registered Developer
    | email:
    | web site: http://www.cadwerx.net
    |
     
    Byron Blattel, Aug 5, 2003
    #12
  13. I'll get it fixed in the next update, it shouldn't be that finicky (and it
    certainly shouldn't crash).

    I'll also be adding foreign language support for the small number of strings
    used by the program.

    --
    |
    ----+----------------------------------------------
    | Byron Blattel
    | CADwerx---Applications for AutoCAD
    | Autodesk Registered Developer
    | email:
    | web site: http://www.cadwerx.net
    |
     
    Byron Blattel, Aug 5, 2003
    #13
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.