Changeset 1099


Ignore:
Timestamp:
Dec 8, 2010 12:44:19 PM (10 years ago)
Author:
toby
Message:

update install scripts

Location:
gsas/win/dist
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • gsas/win/dist/bootstrap.bat

    r965 r1099  
    1 REM this will be run in the GSAS installation directory
    2 mkdir MyWork
     1@REM this script must be run from the GSAS installation directory
     2@echo *****************************************
     3@echo Press return to start GSAS/EXPGUI install
     4@echo *****************************************
     5@pause
     6@REM do on initial install
     7@mkdir MyWork
     8@ECHO Loading GSAS from subversion server
    39.\svn\bin\svn co https://subversion.xor.aps.anl.gov/EXPGUI/gsas/all .
     10@if exist expgui goto getexpgui
     11@ECHO *************************************************************************
     12@ECHO Load from repository failed. Perhaps internet access is blocked or down.
     13@ECHO Install failed!
     14@ECHO *************************************************************************
     15@pause
     16@exit
     17:getexpgui
    418@echo loading EXPGUI from repository
    519.\svn\bin\svn switch https://subversion.xor.aps.anl.gov/EXPGUI/trunk/ expgui
     
    822@echo loading pgplot
    923.\svn\bin\svn switch https://subversion.xor.aps.anl.gov/EXPGUI/gsas/win/pgl/ pgl
    10 pause
     24@echo **************************************************
     25@echo Install has completed. EXPGUI will now be started.
     26@echo **************************************************
     27@pause
     28%COMSPEC% /c "start exe\ncnrpack.exe expgui\expgui"
     29exit
  • gsas/win/dist/makeregistry.bat

    r979 r1099  
     1@ECHO OFF
    12@echo =======================================================
    23@echo This file creates registry entries for GSAS and EXPGUI
     
    1011set gsasloc=%gsasloc:\*=\%
    1112
    12 reg add HKLM\Software\Classes\.exp /ve /d EXPfile /f
    13 reg add HKLM\Software\Classes\EXPfile /v "GSAS experiment file" /d "GSAS Experiment File" /f
    14 reg add HKLM\Software\Classes\EXPfile\DefaultIcon /ve /d %gsasloc%gsas.ico,0 /f
    15 reg add HKLM\Software\Classes\EXPfile\Shell\EXPEDT\command /ve /d "%gsasloc%exe\expedt.exe %%1" /f
    16 reg add HKLM\Software\Classes\EXPfile\Shell\EXPGUI\command /ve /d "%gsasloc%exe\ncnrpack.exe %gsasloc%expgui\expgui ""%%1""" /f
    17 reg add HKLM\Software\Classes\EXPfile\Shell\GENLES\command /ve /d "%gsasloc%exe\genles.exe %%1" /f
    18 reg add HKLM\Software\Classes\EXPfile\Shell\PC-GSAS\command /ve /d "%gsasloc%exe\PC-GSAS.exe %%1" /f
    19 reg add HKLM\Software\Classes\EXPfile\Shell\POWPLOT\command /ve /d "%gsasloc%exe\powplot.exe %%1" /f
    20 reg add HKLM\Software\Classes\EXPfile\Shell\POWPREF\command /ve /d "%gsasloc%exe\powpref.exe %%1" /f
     13REM test if representative files are found
     14IF NOT EXIST %gsasloc%gsas.ico GOTO IconNotFound
     15IF NOT EXIST %gsasloc%exe  GOTO EXENotFound
     16IF NOT EXIST %gsasloc%exe\ncnrpack.exe  GOTO TclNotFound
     17
     18
     19REM changed from HKLM to HKCU due to problems on Vista(?)
     20@ECHO ON
     21reg add HKCU\Software\Classes\.exp /ve /d EXPfile /f
     22reg add HKCU\Software\Classes\EXPfile /v "GSAS experiment file" /d "GSAS Experiment File" /f
     23reg add HKCU\Software\Classes\EXPfile\DefaultIcon /ve /d %gsasloc%gsas.ico,0 /f
     24reg add HKCU\Software\Classes\EXPfile\Shell\EXPEDT\command /ve /d "%gsasloc%exe\expedt.exe %%1" /f
     25reg add HKCU\Software\Classes\EXPfile\Shell\EXPGUI\command /ve /d "%gsasloc%exe\ncnrpack.exe %gsasloc%expgui\expgui ""%%1""" /f
     26reg add HKCU\Software\Classes\EXPfile\Shell\GENLES\command /ve /d "%gsasloc%exe\genles.exe %%1" /f
     27reg add HKCU\Software\Classes\EXPfile\Shell\PC-GSAS\command /ve /d "%gsasloc%exe\PC-GSAS.exe %%1" /f
     28reg add HKCU\Software\Classes\EXPfile\Shell\POWPLOT\command /ve /d "%gsasloc%exe\powplot.exe %%1" /f
     29reg add HKCU\Software\Classes\EXPfile\Shell\POWPREF\command /ve /d "%gsasloc%exe\powpref.exe %%1" /f
    2130
    2231REM The following command can be edited to select the default command when a .EXP file is double clicked
    2332REM Choices are EXPGUI, EXPEDT, GENLES, PS-GSAS, POWPREF or POWPLOT
    24 reg add HKLM\Software\Classes\EXPfile\Shell /ve /d EXPGUI /f
     33reg add HKCU\Software\Classes\EXPfile\Shell /ve /d EXPGUI /f
    2534
    2635pause
     36exit
     37
     38:IconNotFound
     39echo Error: File %gsasloc%gsas.ico was not found. Was this batch file run from a location other than the GSAS directory?
     40pause
     41        exit
     42
     43:EXENotFound
     44echo ERROR: Directory %gsasloc%exe was not found. Was this batch file run from a location other than the GSAS directory?
     45pause
     46exit
     47
     48:TclNotFound
     49echo ERROR: File %gsasloc%exe\ncnrpack.exe was not found. Was this batch file run from a location other than the GSAS directory?
     50pause
     51exit
     52
Note: See TracChangeset for help on using the changeset viewer.