Changeset 17426

Show
Ignore:
Timestamp:
01.10.2008 12:33:49 (11 years ago)
Author:
oranfry
Message:

setting up the flag file system for the uninstaller

Location:
release-kits/shared/uninstaller
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • release-kits/shared/uninstaller/Uninstall.bat

    r17420 r17426  
    1 bin\windows\search4j.exe -p %CD%\packages\java -j Uninstall.jar 
     1bin\search4j.exe -p %CD%\packages\java -j uninst.jar 
    22 
    3 if exist Uninstall.flag ( 
     3if exist uninst.flag ( 
    44    rd /s /q packages/jre 
    55    rmdir packages 
    6     rm Uninstall.jar 
    7     rm Uninstall.flag 
     6    rm uninst.jar 
     7    rm uninst.flag 
    88    rm Uninstall.bat 
    99) 
  • release-kits/shared/uninstaller/Uninstaller.java

    r17254 r17426  
    276276            return; 
    277277        } 
     278 
     279        //create the flag file to indicate the uninstaller wants jre and uninst.jar to be deleted 
     280        try { 
     281            (new File("uninst.flag")).createNewFile(); 
     282        } catch (Exception e) { 
     283            log.append( bundle.getString("couldnt-create-flagfile") + "\n" ); 
     284        } 
     285 
    278286        changeToFinishToolbar(); 
    279287        JOptionPane.showMessageDialog(frame, bundle.getString("finished"), bundle.getString("complete"), 1); 
  • release-kits/shared/uninstaller/Uninstaller.properties

    r17254 r17426  
    1818keep.collections:Keep Collections 
    1919are.you.sure:Are you sure you wish to Uninstall Greenstone 
    20 are.you.sure.collections:You have chosen to delete your collections.\nPlease backup any collections you wish to keep before continuing. 
    21 failed.to.figure.cd:Failed to figure out the current directory. 
     20are.you.sure.collections:You have chosen to delete your collections.\nPlease backup any collections you wish to keep before continuing 
     21failed.to.figure.cd:Failed to figure out the current directory 
    2222cancelled:Uninstall Cancelled 
    2323finished:Uninstall Finished 
     
    2525 
    2626info.skipping:INFO: Skipping {file} 
    27 info.no.startmenu:INFO: No StartMenu path found. Deleting a StartMenu group will not be part of this uninstall. 
     27info.no.startmenu:INFO: No StartMenu path found. Deleting a StartMenu group will not be part of this uninstall 
    2828warning.readonly:WARNING: {file} appears to be read-only 
    2929warning.couldnt.delete:WARNING: {file} could not be deleted 
    3030warning.nonexistent:WARNING: {file} does not exist 
    3131error.nonexistent:ERROR: {file} does not exist 
    32 error.couldnt.find.install.props:ERROR: Could not find the 'installation.properties' or 'etc/installation.properties' file.\nEither this is not a valid Greenstone installation, or the installation has been corrupted.\nUninstallation cannot proceed. 
     32error.couldnt.find.install.props:ERROR: Could not find the 'installation.properties' or 'etc/installation.properties' file.\nEither this is not a valid Greenstone installation, or the installation has been corrupted.\nUninstallation cannot proceed 
     33warning.couldnt.create.flagfile:WARNING: Couldn't create the flag file. You will have to delete the jre and loose uninstaller files manually 
  • release-kits/shared/uninstaller/compile.sh

    r17420 r17426  
    11javac Uninstaller.java 
    22jar -cmf manifest.mf gsdl-template/uninst.jar *.class *.properties 
     3cp Uninstall.bat gsdl-template 
    34rm *.class 
     5 
    46rm -rf gsdl startmenu 
    57cp -r gsdl-template gsdl 
  • release-kits/shared/uninstaller/gsdl-template

    • Property svn:ignore
      •  

        old new  
        11uninst.jar 
         2Uninstall.bat 
         3Uninstall.sh 
        24