REGEDIT
; This .REG file may be used by your SETUP program.
;   If a SETUP program is not available, the entries below will be
;   registered in your InitInstance automatically with a call to
;   CWinApp::RegisterShellFileTypes and COleObjectFactory::UpdateRegistryAll.

[!if HAS_SUFFIX && !HTML_EDITVIEW]
[!if !MINI_SERVER]
HKEY_CLASSES_ROOT\.$fileextension$ = $filetypeid$
HKEY_CLASSES_ROOT\$filetypeid$\shell\open\command = $projectname$.EXE %1
HKEY_CLASSES_ROOT\$filetypeid$\shell\open\ddeexec = [open("%1")]
HKEY_CLASSES_ROOT\$filetypeid$\shell\open\ddeexec\application = $projectname$
    ; note: the application is optional
    ;  (it defaults to the app name in "command")
[!endif]
[!endif]

[!if APP_TYPE_DLG]
HKEY_CLASSES_ROOT\$safeprojectidentifiername$.Application = $safeprojectidentifiername$ Application
[!else]
HKEY_CLASSES_ROOT\$filetypeid$ = $filenewnamelong$
[!endif]

[!if MINI_SERVER || FULL_SERVER || CONTAINER_SERVER]

HKEY_CLASSES_ROOT\$filetypeid$\protocol\StdFileEditing\server = $projectname$.EXE
HKEY_CLASSES_ROOT\$filetypeid$\protocol\StdFileEditing\verb\0 = &Edit
HKEY_CLASSES_ROOT\$filetypeid$\Insertable =
HKEY_CLASSES_ROOT\$filetypeid$\CLSID = {$guid_app_clsid$}

HKEY_CLASSES_ROOT\CLSID\{$guid_app_clsid$} = $filenewnamelong$
HKEY_CLASSES_ROOT\CLSID\{$guid_app_clsid$}\DefaultIcon = $projectname$.EXE,1
HKEY_CLASSES_ROOT\CLSID\{$guid_app_clsid$}\LocalServer32 = $projectname$.EXE
HKEY_CLASSES_ROOT\CLSID\{$guid_app_clsid$}\ProgId = $filetypeid$
HKEY_CLASSES_ROOT\CLSID\{$guid_app_clsid$}\MiscStatus = 32
HKEY_CLASSES_ROOT\CLSID\{$guid_app_clsid$}\AuxUserType\3 = $projectname$
HKEY_CLASSES_ROOT\CLSID\{$guid_app_clsid$}\AuxUserType\2 = $filenewnameshort$
HKEY_CLASSES_ROOT\CLSID\{$guid_app_clsid$}\Insertable =
HKEY_CLASSES_ROOT\CLSID\{$guid_app_clsid$}\verb\1 = &Open,0,2
HKEY_CLASSES_ROOT\CLSID\{$guid_app_clsid$}\verb\0 = &Edit,0,2
HKEY_CLASSES_ROOT\CLSID\{$guid_app_clsid$}\InprocHandler32 = ole32.dll

[!else]
[!if AUTOMATION]

[!if APP_TYPE_DLG]
HKEY_CLASSES_ROOT\$safeprojectidentifiername$.Application\CLSID = {$guid_app_clsid$}

HKEY_CLASSES_ROOT\CLSID\{$guid_app_clsid$} = $safeprojectidentifiername$ Application
HKEY_CLASSES_ROOT\CLSID\{$guid_app_clsid$}\ProgId = $safeprojectidentifiername$.Application

[!else]
HKEY_CLASSES_ROOT\$filetypeid$\CLSID = {$guid_app_clsid$}

HKEY_CLASSES_ROOT\CLSID\{$guid_app_clsid$} = $filenewnamelong$
HKEY_CLASSES_ROOT\CLSID\{$guid_app_clsid$}\ProgId = $filetypeid$
[!endif]

HKEY_CLASSES_ROOT\CLSID\{$guid_app_clsid$}\LocalServer32 = $projectname$.EXE
[!endif]
[!endif]
