Jump to content

Recommended Posts

Posted

Hello everybody :)

I was thinking, is it possible to add a template ?

I mean the "NEW" menu when you right click empty space in windows explorer.

And can it be done through batch files or some others ?

I want to add some templates on more the 100 pc's, :)

Posted

I can do it using INF files just tell me what kind of ShellNew you want and maybe more details on how the new Command or FileName is created... What extension of file etc.

Posted

Why didn't you give me that info in the beginning, that would have made it so much easier.

You can use InstallWatch before you create a new template and trace the registry changes it made, then export them for me.

P.S. What program do you use for vpk files other than notepad?

I mean what do you install for vpk files to get added?

Posted

OK copy the FileName.vpk file you want to get added to %Systemroot%\ShellNew and right click on HKCR/.vkp/ShellNew add a new string value

Name it FileName and the Value data: should be the name of the file in %Systemroot%\ShellNew

Here is mine i did with a INF addon file

newaddonai5.png

newrk6.png

Posted

You can export and convert the reg strings to batch if you needed, just export and post what registry entries you think need to get added and I can convert them to batch if you wanted... You could copy the .vpk file to %SystemRoot%\ShellNew with the batch file also ;)

Posted

I know how to copy files. making dir's and stuff like that with batch files :P

Also, I can pack it in a .EXE file ;)

But I would be very happy if you could ADD the commands for registry ? :)

Give me a second, I will sniff out the strings it edits :)

Posted

Ahh, yes of course, sorry man :(

Everything should be "modified" in these two :)

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\vkp_auto_file]
@="VKP Patch"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\vkp_auto_file\shell]
@="VKP Patch"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\vkp_auto_file\shell\edit]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\vkp_auto_file\shell\edit\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\
00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\vkp_auto_file\shell\open]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\vkp_auto_file\shell\open\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\
00

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.vkp]
@="vkp_auto_file"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.vkp\ShellNew]
"FileName"="3152859.vkp"

Also ^^

i noticed that if I call it something and put it in the templates folder. it will work too :)

so I have a file named "3152859.vkp" in my "C:\Documents and Settings\All Users\Templates" folder.

Thank you Rick! :D

Posted

@Rick,

I have created 4 files.

1 .bat file.

2 .reg files.

1 .VKP file.

My batch file, is moving the VKP to the needed place, and calling the TWO reg files. After that, pause, and after pressing a key, it deletes the 4 files....

I just can't pack it in a .exe file!

Do you know any good program to make self-extracting archives which can launch the .BAT file after extraction?

Also without "YES" "NO" boxes. Like a silent installer.

Also, what is the command so it says "YES" to the two reg files ?

So it don't asks, about "DO YOU WANT TO ADD"... ? :)

If you can answer these questions, I WILL be very happy :D

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...