Changeset 1099
- Timestamp:
- Dec 8, 2010 12:44:19 PM (13 years ago)
- 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 3 9 .\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 4 18 @echo loading EXPGUI from repository 5 19 .\svn\bin\svn switch https://subversion.xor.aps.anl.gov/EXPGUI/trunk/ expgui … … 8 22 @echo loading pgplot 9 23 .\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" 29 exit -
gsas/win/dist/makeregistry.bat
r979 r1099 1 @ECHO OFF 1 2 @echo ======================================================= 2 3 @echo This file creates registry entries for GSAS and EXPGUI … … 10 11 set gsasloc=%gsasloc:\*=\% 11 12 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 13 REM test if representative files are found 14 IF NOT EXIST %gsasloc%gsas.ico GOTO IconNotFound 15 IF NOT EXIST %gsasloc%exe GOTO EXENotFound 16 IF NOT EXIST %gsasloc%exe\ncnrpack.exe GOTO TclNotFound 17 18 19 REM changed from HKLM to HKCU due to problems on Vista(?) 20 @ECHO ON 21 reg add HKCU\Software\Classes\.exp /ve /d EXPfile /f 22 reg add HKCU\Software\Classes\EXPfile /v "GSAS experiment file" /d "GSAS Experiment File" /f 23 reg add HKCU\Software\Classes\EXPfile\DefaultIcon /ve /d %gsasloc%gsas.ico,0 /f 24 reg add HKCU\Software\Classes\EXPfile\Shell\EXPEDT\command /ve /d "%gsasloc%exe\expedt.exe %%1" /f 25 reg add HKCU\Software\Classes\EXPfile\Shell\EXPGUI\command /ve /d "%gsasloc%exe\ncnrpack.exe %gsasloc%expgui\expgui ""%%1""" /f 26 reg add HKCU\Software\Classes\EXPfile\Shell\GENLES\command /ve /d "%gsasloc%exe\genles.exe %%1" /f 27 reg add HKCU\Software\Classes\EXPfile\Shell\PC-GSAS\command /ve /d "%gsasloc%exe\PC-GSAS.exe %%1" /f 28 reg add HKCU\Software\Classes\EXPfile\Shell\POWPLOT\command /ve /d "%gsasloc%exe\powplot.exe %%1" /f 29 reg add HKCU\Software\Classes\EXPfile\Shell\POWPREF\command /ve /d "%gsasloc%exe\powpref.exe %%1" /f 21 30 22 31 REM The following command can be edited to select the default command when a .EXP file is double clicked 23 32 REM Choices are EXPGUI, EXPEDT, GENLES, PS-GSAS, POWPREF or POWPLOT 24 reg add HK LM\Software\Classes\EXPfile\Shell /ve /d EXPGUI /f33 reg add HKCU\Software\Classes\EXPfile\Shell /ve /d EXPGUI /f 25 34 26 35 pause 36 exit 37 38 :IconNotFound 39 echo Error: File %gsasloc%gsas.ico was not found. Was this batch file run from a location other than the GSAS directory? 40 pause 41 exit 42 43 :EXENotFound 44 echo ERROR: Directory %gsasloc%exe was not found. Was this batch file run from a location other than the GSAS directory? 45 pause 46 exit 47 48 :TclNotFound 49 echo ERROR: File %gsasloc%exe\ncnrpack.exe was not found. Was this batch file run from a location other than the GSAS directory? 50 pause 51 exit 52
Note: See TracChangeset
for help on using the changeset viewer.