source: gsas/win/dist/makeregistry.bat @ 979

Last change on this file since 979 was 979, checked in by toby, 11 years ago

registry fix

File size: 1.5 KB
Line 
1@echo =======================================================
2@echo This file creates registry entries for GSAS and EXPGUI
3@echo = Run this from the directory where GSAS is installed =
4@echo =======================================================
5
6REM Get this script's directory; make sure that the path ends
7REM    with a single backslash
8set gsasloc=%~dp0\*
9set gsasloc=%gsasloc:\\*=\*%
10set gsasloc=%gsasloc:\*=\%
11
12reg add HKLM\Software\Classes\.exp /ve /d EXPfile /f
13reg add HKLM\Software\Classes\EXPfile /v "GSAS experiment file" /d "GSAS Experiment File" /f
14reg add HKLM\Software\Classes\EXPfile\DefaultIcon /ve /d %gsasloc%gsas.ico,0 /f
15reg add HKLM\Software\Classes\EXPfile\Shell\EXPEDT\command /ve /d "%gsasloc%exe\expedt.exe %%1" /f
16reg add HKLM\Software\Classes\EXPfile\Shell\EXPGUI\command /ve /d "%gsasloc%exe\ncnrpack.exe %gsasloc%expgui\expgui ""%%1""" /f
17reg add HKLM\Software\Classes\EXPfile\Shell\GENLES\command /ve /d "%gsasloc%exe\genles.exe %%1" /f
18reg add HKLM\Software\Classes\EXPfile\Shell\PC-GSAS\command /ve /d "%gsasloc%exe\PC-GSAS.exe %%1" /f
19reg add HKLM\Software\Classes\EXPfile\Shell\POWPLOT\command /ve /d "%gsasloc%exe\powplot.exe %%1" /f
20reg add HKLM\Software\Classes\EXPfile\Shell\POWPREF\command /ve /d "%gsasloc%exe\powpref.exe %%1" /f
21
22REM The following command can be edited to select the default command when a .EXP file is double clicked
23REM Choices are EXPGUI, EXPEDT, GENLES, PS-GSAS, POWPREF or POWPLOT
24reg add HKLM\Software\Classes\EXPfile\Shell /ve /d EXPGUI /f
25
26pause
Note: See TracBrowser for help on using the repository browser.