Changeset 979


Ignore:
Timestamp:
Apr 14, 2010 3:37:25 PM (11 years ago)
Author:
toby
Message:

registry fix

File:
1 edited

Legend:

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

    r974 r979  
    1 REM This file creates registry entries for GSAS & EXPGUI
     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 =======================================================
    25
    3 REM Get this script's directory
    4 set gsasloc=%~dp0
     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:\*=\%
    511
    612reg add HKLM\Software\Classes\.exp /ve /d EXPfile /f
    713reg add HKLM\Software\Classes\EXPfile /v "GSAS experiment file" /d "GSAS Experiment File" /f
    8 reg add HKLM\Software\Classes\EXPfile\DefaultIcon /ve /d %gsasloc%\gsas.ico,0 /f
    9 reg add HKLM\Software\Classes\EXPfile\Shell\EXPEDT\command /ve /d "%gsasloc%\exe\expedt.exe %%1" /f
    10 reg add HKLM\Software\Classes\EXPfile\Shell\EXPGUI\command /ve /d "%gsasloc%\exe\ncnrpack.exe %gsasloc%\expgui\expgui ""%%1""" /f
    11 reg add HKLM\Software\Classes\EXPfile\Shell\GENLES\command /ve /d "%gsasloc%\exe\genles.exe %%1" /f
    12 reg add HKLM\Software\Classes\EXPfile\Shell\PC-GSAS\command /ve /d "%gsasloc%\exe\PC-GSAS.exe %%1" /f
    13 reg add HKLM\Software\Classes\EXPfile\Shell\POWPLOT\command /ve /d "%gsasloc%\exe\powplot.exe %%1" /f
    14 reg add HKLM\Software\Classes\EXPfile\Shell\POWPREF\command /ve /d "%gsasloc%\exe\powpref.exe %%1" /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
    1521
    1622REM The following command can be edited to select the default command when a .EXP file is double clicked
    1723REM Choices are EXPGUI, EXPEDT, GENLES, PS-GSAS, POWPREF or POWPLOT
    1824reg add HKLM\Software\Classes\EXPfile\Shell /ve /d EXPGUI /f
     25
     26pause
Note: See TracChangeset for help on using the changeset viewer.