Jump to content

Metapad in xpsp2


Recommended Posts


I'm using a WinRAR SFX for extracting metapad to %ProgramFiles%\Metapad, afterwards I run this .inf File:

[Version]Signature=$Windows NT$

[DefaultInstall]

AddReg=Txtfile

AddReg=Otherfiles

AddReg=Metapad

AddReg=StrangeStuff

[Txtfile]

;Open all textfiles with metapad

HKCR,"txtfile\DefaultIcon",,,"%16422%\Metapad\metapad.exe,0"

HKCR,"txtfile\shell"

HKCR,"txtfile\shell\open\command",,,"%16422%\Metapad\metapad.exe ""%1"""

[Otherfiles]

HKCR,"batfile\shell\edit\command","",0x00020000,"%16422%\Metapad\metapad.exe %1"

HKCR,"cmdfile\shell\edit\command","",0x00020000,"%16422%\Metapad\metapad.exe %1"

HKCR,"inffile\shell\open\command","",0x00020000,"%16422%\Metapad\metapad.exe %1"

HKCR,"inifile\shell\open\command","",0x00020000,"%16422%\Metapad\metapad.exe %1"

HKCR,"regfile\shell\edit\command","",0x00020000,"%16422%\Metapad\metapad.exe %1"

HKCR,"zapfile\shell\open\command","",0x00020000,"%16422%\Metapad\metapad.exe %1"

[Metapad]

;Settings for metapad

HKCU,"Software\metapad","m_Word Wrap",0x00010001,01,00,00,00

HKCU,"Software\metapad","m_Primary Font",0x00010001,01,00,00,00

HKCU,"Software\metapad","m_SmartSelect",0x00010001,01,00,00,00

HKCU,"Software\metapad","m_Hyperlinks",0x00010001,01,00,00,00

HKCU,"Software\metapad","m_ShowStatus",0x00010001,01,00,00,00

HKCU,"Software\metapad","m_ShowToolbar",0x00010001,01,00,00,00

HKCU,"Software\metapad","m_AlwaysOnTop",0x00010001,00,00,00,00

HKCU,"Software\metapad","m_Transparent",0x00010001,00,00,00,00

HKCU,"Software\metapad","bCloseAfterFind",0x00010001,00,00,00,00

HKCU,"Software\metapad","bNoFindHidden",0x00010001,01,00,00,00

HKCU,"Software\metapad","mru_Top",0x00010001,05,00,00,00

HKCU,"Software\metapad","bSystemColours",0x00010001,01,00,00,00

HKCU,"Software\metapad","bSystemColours2",0x00010001,01,00,00,00

HKCU,"Software\metapad","bNoSmartHome",0x00010001,00,00,00,00

HKCU,"Software\metapad","bNoAutoSaveExt",0x00010001,00,00,00,00

HKCU,"Software\metapad","bContextCursor",0x00010001,00,00,00,00

HKCU,"Software\metapad","bCurrentFindFont",0x00010001,00,00,00,00

HKCU,"Software\metapad","bPrintWithSecondaryFont",0x00010001,00,00,00,00

HKCU,"Software\metapad","bNoSaveHistory",0x00010001,00,00,00,00

HKCU,"Software\metapad","bNoFindAutoSelect",0x00010001,00,00,00,00

HKCU,"Software\metapad","bHideGotoOffset",0x00010001,00,00,00,00

HKCU,"Software\metapad","bRecentOnOwn",0x00010001,00,00,00,00

HKCU,"Software\metapad","bDontInsertTime",0x00010001,00,00,00,00

HKCU,"Software\metapad","bNoWarningPrompt",0x00010001,00,00,00,00

HKCU,"Software\metapad","bUnFlatToolbar",0x00010001,00,00,00,00

HKCU,"Software\metapad","bReadOnlyMenu",0x00010001,00,00,00,00

HKCU,"Software\metapad","bStickyWindow",0x00010001,00,00,00,00

HKCU,"Software\metapad","nSelectionMarginWidth",0x00010001,0a,00,00,00

HKCU,"Software\metapad","nMaxMRU",0x00010001,08,00,00,00

HKCU,"Software\metapad","nFormatIndex",0x00010001,00,00,00,00

HKCU,"Software\metapad","nTransparentPct",0x00010001,19,00,00,00

HKCU,"Software\metapad","bNoCaptionDir",0x00010001,00,00,00,00

HKCU,"Software\metapad","bAutoIndent",0x00010001,00,00,00,00

HKCU,"Software\metapad","bInsertSpaces",0x00010001,00,00,00,00

HKCU,"Software\metapad","bFindAutoWrap",0x00010001,00,00,00,00

HKCU,"Software\metapad","bQuickExit",0x00010001,00,00,00,00

HKCU,"Software\metapad","bSaveWindowPlacement",0x00010001,00,00,00,00

HKCU,"Software\metapad","bSaveMenuSettings",0x00010001,01,00,00,00

HKCU,"Software\metapad","bLaunchClose",0x00010001,00,00,00,00

HKCU,"Software\metapad","bNoFaves",0x00010001,00,00,00,00

HKCU,"Software\metapad","bLinkDoubleClick",0x00010001,00,00,00,00

HKCU,"Software\metapad","bHideScrollbars",0x00010001,01,00,00,00

HKCU,"Software\metapad","bSuppressUndoBufferPrompt",0x00010001,00,00,00,00

HKCU,"Software\metapad","nLaunchSave",0x00010001,00,00,00,00

HKCU,"Software\metapad","nTabStops",0x00010001,08,00,00,00

HKCU,"Software\metapad","nPrimaryFont",0x00010001,01,00,00,00

HKCU,"Software\metapad","nSecondaryFont",0x00010001,00,00,00,00

HKCU,"Software\metapad","PrimaryFont",1,f3,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,00,00,00,00,03,02,01,31,4c,75,63

,69,64,61,20,43,6f,6e,73,6f,6c,65,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

HKCU,"Software\metapad","SecondaryFont",1,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

[strangeStuff]

HKCR,"Applications\metapad.exe\shell\open\command","",0x00020000,"%16422%\Metapad\metapad.exe %1"

HKCR,"Applications\metapad.exe\shell\edit\command","",0x00020000,"%16422%\Metapad\metapad.exe %1"

HKCR,"*\OpenWithList\metapad.exe",,0x00000012

HKCR,"SystemFileAssociations\text\OpenWithList\metapad.exe",,0x00000012

HKCR,"SystemFileAssociations\text\DefaultIcon","",0x00020000,"%16422%\Metapad\metapad.exe,0"

HKCR,"SystemFileAssociations\text\shell\open\command","",0x00020000,"%16422%\Metapad\metapad.exe %1"

HKCR,"SystemFileAssociations\text\shell\edit\command","",0x00020000,"%16422%\Metapad\metapad.exe %1"

Works fine for me.

Link to comment
Share on other sites

Sorry guys slow to reply here kinda think it was wfp problem I had?

Heres the reg file for Filters for Metapad I have been using:

; This is an example of how to customize the filter in metapad's Open dialog.

; Make sure the syntax of the string below is absolutely correct (or else the

; behaviour is undefined). New drop down entries consist of two sub strings.

; The first is a description and the second is the actual filter. All

; substrings must be separated by the | symbol (which cannot be used in a

; description). The order here is the order they appear in the list. For

; example to have just one setting you would use the string:

; "FileFilter" = "Crap files|*.CRP;*.CRAP".

;

; NB: The filter string below is the one metapad uses by default.

[HKEY_CURRENT_USER\Software\metapad]

"FileFilter" = "All File Types|*.txt;*.htm;*.html;*.c;*.cpp;*.h;*.java|Text Files (*.txt)|*.txt|HTML (*.html; *.htm)|*.html;*.htm|Source Code (*.c; *.cpp; *.h; *.java)|*.c;*.cpp;*.h;*.java|All Files (*.*)|*.*"

Link to comment
Share on other sites

Sorry guys slow to reply here kinda think it was wfp problem I had?

Heres the reg file for Filters for Metapad I have been using:

; This is an example of how to customize the filter in metapad's Open dialog.

; Make sure the syntax of the string below is absolutely correct (or else the

; behaviour is undefined). New drop down entries consist of two sub strings.

; The first is a description and the second is the actual filter. All

; substrings must be separated by the | symbol (which cannot be used in a

; description). The order here is the order they appear in the list. For

; example to have just one setting you would use the string:

; "FileFilter" = "Crap files|*.CRP;*.CRAP".

;

; NB: The filter string below is the one metapad uses by default.

[HKEY_CURRENT_USER\Software\metapad]

"FileFilter" = "All File Types|*.txt;*.htm;*.html;*.c;*.cpp;*.h;*.java|Text Files (*.txt)|*.txt|HTML (*.html; *.htm)|*.html;*.htm|Source Code (*.c; *.cpp; *.h; *.java)|*.c;*.cpp;*.h;*.java|All Files (*.*)|*.*"

Since you have renamed the file metapade.exe to notepad.exe, what purpose would be served by applying Metapad filters to "[HKEY_CURRENT_USER\Software\metapad]"?

Also what do these filters do anyhow?

Thanks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...