MSFN Forum: Registry syntax wrong? - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Registry syntax wrong? Rate Topic: -----

#1 User is offline   neuro42 

  • Junior
  • Pip
  • Group: Members
  • Posts: 68
  • Joined: 19-December 04

Posted 20 December 2004 - 07:53 PM

Okay unattended installation CD is working splendidly... just a few bugs to iron out (most notable the partiton thing, a few programs that require interaction and the big one.

My registry files are not working correctly!

It is not installing at all! I dont get error messages but I guess that is one of the problems with UA installation...

I tried adding it via the cmdlines.txt file as well as adding it ot the runonceex.cmd file, and pointing it to the file of course ;)

So after install into VM Ware I figured, "Well I can manually put it in right?"

R-Click and selected "merge" after double clicking it did not work and I get this error

Posted Image

I modified the one posted in the tutorial (the big long one) to exclude some of the "unnecessary" tweaks, or things that I want. Like all of the components tweak since I edited them in the winnt.sif file.

Anyway...

A small snippet...

;Windows Registry Editor Version 5.00


;
;=======================================================================
;=======================================================================



;=======================================================================
; 	 Context Menus
;=======================================================================

 ;-----
 ;-----  Makes a right click option for unknown files (Open with notepad)
 ;-----
[HKEY_CLASSES_ROOT\*\shell]
@="\"notepad.exe %1\""
[HKEY_CLASSES_ROOT\*\shell\open]
@="Open &With Notepad"
[HKEY_CLASSES_ROOT\*\shell\open\command]
@="notepad.exe %1"

 ;-----  
 ;-----  Add register / unregister to the context menu for .dll files
 ;-----  
[HKEY_CLASSES_ROOT\.dll]
"Content Type"="application/x-msdownload"
@="dllfile"
[HKEY_CLASSES_ROOT\dllfile]
@="Application Extension"
[HKEY_CLASSES_ROOT\dllfile\Shell\Register\command]
@="regsvr32.exe \"%1\""
[HKEY_CLASSES_ROOT\dllfile\Shell\UnRegister\command]
@="regsvr32.exe /u \"%1\""
 ;-----  
 ;-----  Add register / unregister to the context menu for .ocx files
 ;-----  
[HKEY_CLASSES_ROOT\.ocx]
@="ocxfile"
[HKEY_CLASSES_ROOT\ocxfile]
@="OCX"
[HKEY_CLASSES_ROOT\ocxfile\Shell\Register\command]
@="regsvr32.exe \"%1\""
[HKEY_CLASSES_ROOT\ocxfile\Shell\UnRegister\command]
@="regsvr32.exe /u \"%1\""


Should I just convert this over to the runonceex.cmd file?

If so.. I am not really sure how to do that. I can understanding needing to set the key a couple of times, but the switches in the tutorial are not explained. (Just that they are used for any of the entries). A little research revealed this is basically how NT admins have been sending updates across network for years. Automatic updates via a registry. But does not say anything about registry changes, just additions.

Grr.

Any help please?

(BTW The rest of my Win XP pro SP2 slipstreamed Office 2003 slipstreamed Front Page 2003 slipstreamed, NOD32 Antivirus/ Sygate personal Firewall/ Spybot search and destroy and dec16 update file all install beautifully, as well as all the drivers except my display driver. (A quick fix no doubt that I will look into shortly, I think I need to add the GART installer before I add the ATI drivers)).

If I dont here back soon, I am going to strip all the comments from the reg file and use a utility to convert it to binary LOL

then try and manually update in VM Ware LOL

That will teach it to give me a binary error ;)


#2 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,195
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 20 December 2004 - 08:08 PM

Just remove the ; at the very first character of your file.
i.e.
Windows Registry Editor Version 5.00


#3 User is offline   neuro42 

  • Junior
  • Pip
  • Group: Members
  • Posts: 68
  • Joined: 19-December 04

Posted 20 December 2004 - 08:55 PM

WOOT!

Thanks I know it worked because one of the tweaks I installed (dont know why was prevent driver rollback... and an error came up while installing .NET framework saying it could not continue!!! WhooRah!!!

Thanks!

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy