Page 1 of 1

ShellNew PB Template (New Menu)

Posted: Thu Aug 24, 2006 2:28 pm
by eJan
I need some advice how to create: New PB Template - right click menu. I have tried Using TweakUI and methods described here: http://windowsxp.mvps.org/shellnewadd.htm , but none of them doesn't create 'New PB Template'. Please help!
Image
Reg export: ('Template.pb' is at %Userprofile%\Templates)

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.pb\ShellNew]
"FileName"="Template.pb"
"NullFile"=""

Posted: Sat Aug 26, 2006 5:32 am
by Sparkie
Can I see an Reg export on your HKEY_CLASSES_ROOT\.pb :?:

Here's what I have...

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.pb]
@="pb_auto_file"

[HKEY_CLASSES_ROOT\.pb\ShellNew]
@=""
"FileName"="C:\\Documents and Settings\\Owner\\Templates\\Template.pb"

Posted: Sat Aug 26, 2006 5:37 am
by ..::Origin::..

Posted: Sat Aug 26, 2006 4:11 pm
by eJan
Sparkie wrote:Can I see an Reg export on your HKEY_CLASSES_ROOT\.pb :?:

Here's what I have...

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.pb]
@="pb_auto_file"

[HKEY_CLASSES_ROOT\.pb\ShellNew]
@=""
"FileName"="C:\\Documents and Settings\\Owner\\Templates\\Template.pb"
Originaly it was only:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.pb] 
@="pb_auto_file"
after I've added

Code: Select all

[HKEY_CLASSES_ROOT\.pb\ShellNew] 
"FileName"="Template.pb" 
"NullFile"=""
and PureBasic class

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Applications\PureBasic.exe]

[HKEY_CLASSES_ROOT\Applications\PureBasic.exe\shell]
@=""

[HKEY_CLASSES_ROOT\Applications\PureBasic.exe\shell\open]

[HKEY_CLASSES_ROOT\Applications\PureBasic.exe\shell\open\command]
@=""C:\\Program Files\\PureBasic\\PureBasic.exe" "%1""

Posted: Sat Aug 26, 2006 4:21 pm
by Sparkie
I had to add a Shell > Open > Command key in order to get the template to appear in the New menu on my Win XP.

Try this for HKEY_CLASSES_ROOT\pb_auto_file. Just make sure to change the path C:\\PureBasic400\\PureBasic\\Purebasic.exe to your correct path.

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\pb_auto_file]
@="PureBasic Sourcecode"
"EditFlags"=dword:00000000
"BrowserFlags"=dword:00000008

[HKEY_CLASSES_ROOT\pb_auto_file\Shell]
@=""

[HKEY_CLASSES_ROOT\pb_auto_file\Shell\Open]

[HKEY_CLASSES_ROOT\pb_auto_file\Shell\Open\Command]
@="C:\\PureBasic400\\PureBasic\\Purebasic.exe \"%1\""

Posted: Sat Aug 26, 2006 8:06 pm
by eJan
Sparkie wrote:I had to add a Shell > Open > Command key in order to get the template to appear in the New menu on my Win XP.

Try this for HKEY_CLASSES_ROOT\pb_auto_file. Just make sure to change the path C:\\PureBasic400\\PureBasic\\Purebasic.exe to your correct path.

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\pb_auto_file]
@="PureBasic Sourcecode"
"EditFlags"=dword:00000000
"BrowserFlags"=dword:00000008

[HKEY_CLASSES_ROOT\pb_auto_file\Shell]
@=""

[HKEY_CLASSES_ROOT\pb_auto_file\Shell\Open]

[HKEY_CLASSES_ROOT\pb_auto_file\Shell\Open\Command]
@="C:\\PureBasic400\\PureBasic\\Purebasic.exe "%1""
Thanks a million Sparkie! :D
NullFile or Template Filename should be added to make it work.

Code: Select all

[HKEY_CLASSES_ROOT\.pb\ShellNew]
"NullFile"=""
Image