Ignore:
Timestamp:
2010-11-01T10:49:32+13:00 (13 years ago)
Author:
sjm84
Message:

More uninstaller modifications

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/release-kits/shared/core/uninstaller/Uninstaller.java

    r23242 r23257  
    4444    public static final ResourceBundle bundle = ResourceBundle.getBundle("resources.LanguagePack");
    4545
    46     public static final File gs2InstallProps = new File("../etc/installation.properties");
    47     public static final File gs3InstallProps = new File("../installation.properties");
     46    public static final File gs2InstallProps = new File("etc/installation.properties");
     47    public static final File gs3InstallProps = new File("installation.properties");
    4848
    4949    boolean keepCollections = true;
     
    335335
    336336            //never delete the things we are currently running
    337             exceptions.add( new File("../bin/search4j.exe") );
    338             exceptions.add( new File("../bin/search4j") );
    339 
    340             exceptions.add( new File("../bin/windows/search4j.exe") );
    341             exceptions.add( new File("../bin/linux/search4j") );
    342             exceptions.add( new File("../bin/darwin/search4j") );
    343 
    344             exceptions.add( new File("../packages/jre") );
    345             exceptions.add( new File("../uninstall") );
     337            exceptions.add( new File("bin/search4j.exe") );
     338            exceptions.add( new File("bin/search4j") );
     339
     340            exceptions.add( new File("bin/windows/search4j.exe") );
     341            exceptions.add( new File("bin/linux/search4j") );
     342            exceptions.add( new File("bin/darwin/search4j") );
     343
     344            exceptions.add( new File("packages/jre") );
     345            exceptions.add( new File("uninstall") );
    346346
    347347            if ( keepCollections ) {
    348                 exceptions.add( new File("../web/sites/localsite/collect") );
    349                 exceptions.add( new File("../collect") );
     348                exceptions.add( new File("web/sites/localsite/collect") );
     349                exceptions.add( new File("collect") );
    350350            }
    351351
     
    446446               
    447447                for(int j=0; j < paths.length; j++) {
    448                     recursiveDelete( new File(".." + File.separator + paths[j]), exceptions );
     448                    recursiveDelete( new File(paths[j]), exceptions );
    449449                }
    450450            }
Note: See TracChangeset for help on using the changeset viewer.