Problem reg/unreg ocx on right mouse button

From: Simon Woods (simonDELETECAPSjwoods_at_hotmaiIl.com)
Date: 09/20/04

  • Next message: Mbear: "Batch scripting, special character"
    Date: Mon, 20 Sep 2004 09:28:30 +0100
    
    

    Hi

    I'm using this .reg script to modify my right mouse button behaviour. I'm
    finding for DLLs, EXEs and OLBs everything is ok but for OCXs I'm not
    getting the context menu options. I've checked the registry entries and they
    seem okay. Could anyone point to a bug in this script for OCXs ... thanks

    Simon

    REGEDIT4

    [HKEY_CLASSES_ROOT\.exe]
    @="exefile"

    [HKEY_CLASSES_ROOT\.dll]
    @="dllfile"

    [HKEY_CLASSES_ROOT\.ocx]
    @="ocxfile"

    [HKEY_CLASSES_ROOT\.olb]
    @="olbfile"

    [HKEY_CLASSES_ROOT\exefile\shell\Register\command]
    @="%1 /register"

    [HKEY_CLASSES_ROOT\dllfile\shell\Register\command]
    @="regsvr32.exe %1"

    [HKEY_CLASSES_ROOT\ocxfile\shell\Register\command]
    @="regsvr32.exe %1"

    [HKEY_CLASSES_ROOT\olbfile\shell\Register\command]
    @="regsvr32.exe %1"

    [HKEY_CLASSES_ROOT\dllfile\shell\Silent Register\command]
    @="regsvr32.exe /s %1"

    [HKEY_CLASSES_ROOT\ocxfile\shell\Silent Register\command]
    @="regsvr32.exe /s %1"

    [HKEY_CLASSES_ROOT\olbfile\shell\Silent Register\command]
    @="regsvr32.exe /s %1"

    [HKEY_CLASSES_ROOT\exefile\shell\UnRegister\command]
    @="%1 /unregister"

    [HKEY_CLASSES_ROOT\dllfile\shell\UnRegister\command]
    @="regsvr32.exe /u %1"

    [HKEY_CLASSES_ROOT\ocxfile\shell\UnRegister\command]
    @="regsvr32.exe /u %1"

    [HKEY_CLASSES_ROOT\olbfile\shell\UnRegister\command]
    @="regsvr32.exe /u %1"

    [HKEY_CLASSES_ROOT\dllfile\shell\Silent UnRegister\command]
    @="regsvr32.exe /u /s %1"

    [HKEY_CLASSES_ROOT\ocxfile\shell\Silent UnRegister\command]
    @="regsvr32.exe /u /s %1"

    [HKEY_CLASSES_ROOT\olbfile\shell\Silent UnRegister\command]
    @="regsvr32.exe /u /s %1"


  • Next message: Mbear: "Batch scripting, special character"
    Loading