Menu

#57 Invalid Destination Directory in install

open
nobody
None
5
2009-01-14
2009-01-14
derupe
No

Hi,

The default directory pre-populated in the installation jar (for ant-installer) is set to "C:\C:\Program Files\AntInstaller-beta0.8" on Windows XP.

The "C:\" is repeated twice and so it fails to create the folder ...

regards
Conrad

Discussion

  • derupe

    derupe - 2009-01-22
     
  • derupe

    derupe - 2009-01-22

    ok. here's the fix for this -

    Modify (in the svn repository) AntInstallerSvn / build / installer / antinstall-config-selfextract.xml

    Change the attribute defaultValueWin from
    defaultValueWin="C:\${env.ProgramFiles}\AntInstaller-@ant.install.version@"
    to
    defaultValueWin="${env.ProgramFiles}\AntInstaller-@ant.install.version@"

    <directory
    property="installDir"
    defaultValue="/usr/local/AntInstaller-@ant.install.version@"
    defaultValueWin="C:\${env.ProgramFiles}\AntInstaller-@ant.install.version@"
    displayText="Select an installation directory"
    create="true"
    checkExists="true"/>

    If you want to fix this in your jar file (that you downloaded). Make the same change in antinstall-config.xml (in the root of your jar archive).
    File Added: antinstall-config-selfextract.xml

     

Log in to post a comment.