Changeset 1099 for gsas/win/dist/makeregistry.bat
- Timestamp:
- Dec 8, 2010 12:44:19 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.