home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / common / msdev98 / template / atl / snapin.rgs < prev    next >
Encoding:
Text File  |  1998-06-16  |  2.0 KB  |  113 lines

  1. HKLM 
  2. {
  3.     NoRemove Software
  4.     {
  5.         NoRemove Microsoft
  6.         {
  7.             NoRemove MMC
  8.             {
  9.                 NoRemove Snapins
  10.                 {
  11.                     ForceRemove {[!SnapInGUID]} =
  12.                         s '[!ShortName]' 
  13.                     {
  14.                         val NameString = s '[!ShortName]'
  15. [!if=(ISnapinAbout, "TRUE")]
  16.                         val About = s '{[!SnapInAboutGUID]}'
  17. [!endif]
  18. [!if=(EXTENSIONSNAPIN, "FALSE)]
  19.                         NodeTypes
  20.                         {
  21.                             {[!SnapInNodeType]}
  22.                         }
  23.                         StandAlone
  24. [!endif]
  25.                     }
  26.                 }
  27.                 NoRemove NodeTypes
  28.                 {
  29. [!if=(EXTENSIONSNAPIN, "FALSE)]
  30.                     ForceRemove {[!SnapInNodeType]}
  31.                     {
  32.                     }
  33. [!endif]
  34. [!if=(EXTENSIONSNAPIN, "TRUE)]
  35.                     NoRemove {[!EXTENDSNODE]}
  36.                     {
  37.                         NoRemove Extensions
  38.                         {
  39. [!if=(IComponentData, "TRUE")]
  40.                             NoRemove NameSpace
  41.                             {
  42.                                 val {[!SnapInGUID]} =
  43.                                 s '[!ShortName]'
  44.                             }
  45. [!endif]
  46. [!if=(IExtendContextMenu, "TRUE")]
  47.                             NoRemove ContextMenu
  48.                             {
  49.                                 val {[!SnapInGUID]} =
  50.                                 s '[!ShortName]'
  51.                             }
  52. [!endif]
  53. [!if=(IExtendPropertySheet, "TRUE")]
  54.                             NoRemove PropertySheet
  55.                             {
  56.                                 val {[!SnapInGUID]} =
  57.                                 s '[!ShortName]'
  58.                             }
  59. [!endif]
  60. [!if=(IExtendControlBar, "TRUE")]
  61.                             NoRemove ToolBar
  62.                             {
  63.                                 val {[!SnapInGUID]} =
  64.                                 s '[!ShortName]'
  65.                             }
  66. [!endif]
  67.                         }
  68.                     }
  69. [!endif]                                                
  70.                 }
  71.             }
  72.         }
  73.     }
  74. }
  75.  
  76.  
  77. HKCR
  78. {
  79.     [!ProgID] = s '[!TypeName]'
  80.     {
  81.         CLSID = s '{[!SnapInGUID]}'
  82.     }
  83.     [!VersionIndependentProgID] = s '[!TypeName]'
  84.     {
  85.         CLSID = s '{[!SnapInGUID]}'
  86.         CurVer = s '[!ProgID]'
  87.     }
  88.     NoRemove CLSID
  89.     {
  90.         ForceRemove {[!SnapInGUID]} = s '[!TypeName]'
  91.         {
  92.             ProgID = s '[!ProgID]'
  93.             VersionIndependentProgID = s '[!VersionIndependentProgID]'
  94. [!if=(Dual, "TRUE")]
  95.             ForceRemove 'Programmable'
  96. [!endif]
  97. [!if=(ProjectType, "DLL")]
  98.             InprocServer32 = s '%MODULE%'
  99.             {
  100. [!if=(ThreadingModel, "Single")]
  101. [!else]
  102.                 val ThreadingModel = s '[!ThreadingModel]'
  103. [!endif]
  104.             }
  105. [!else]
  106.             LocalServer32 = s '%MODULE%'
  107.             val AppID = s '{[!ProjectAppID]}'
  108. [!endif]
  109.             'TypeLib' = s '{[!LibGUID]}'
  110.         }
  111.     }
  112. }
  113.