Jump to content

Recommended Posts


Posted

hi :D

HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default

i assume u can figure it out from there :)

Tip: dont delete the key.. just delete the value :rolleyes:

regards

Posted

You can do this by going to the control panel and clicking sounds and audio and the clicking the sound tab. If you want to do this during an unattended install you would have to write a batch script or some kind of script to move you sound files to C:\windows\media

Posted

xcopy "%systemdrive%\Install\Sounds\sound.wav" "%windir%\Media" /Y

of course change the directories if it isnt what u use :)

  • 2 weeks later...
Posted

to remove a value in a reg file do like that

[THE_KEY]

"thevalue"=-

the - means to remove the value

to remove a whole key (be carefull)

just use that

[-THEKEY]

here, the - means to remove the key

hope it helps

Posted
to remove a value in a reg file do like that

[THE_KEY]

"thevalue"=-

the - means to remove the value

to remove a whole key (be carefull)

just use that

[-THEKEY]

here, the -  means to remove the key

hope it helps

Thanks aknott. Works perfectly! :thumbup

Posted

My god people. Why complicate your lives so much? There's a very slick and SIMPLE solution. :D

Open \I386\HIVEDEF.INF.

All your sound scheme settings are at the very top.

To assist you with editing the registry hive INF file, here's some more information.

Entries take the following format:

BASEHIVE, KEY, VALUENAME, DATATYPE, VALUE

If you take the following line:

HKCU,"AppEvents\Schemes\Apps\.Default\DeviceDisconnect\.Current","",0x00020000,"%SystemRoot%\media\%WINDOWS_XP_HARDWARE_REMOVE%"

HKCU means that this registry entry will be added to HKEY_CURRENT_USER (which is .Default user during setup and eventually copies over to each user created).

"AppEvents\Schemes\Apps\.Default\DeviceDisconnect\.Current" is the registry key in which to add the value.

"" is the value name (being that it is blank, (Default) will be used.) to add.

0x00020000 is the value data type (REG_EXPAND_SZ).

"%SystemRoot%\media\%WINDOWS_XP_HARDWARE_REMOVE%" is the value to add.

The data types you can use are:

; Registry Data Types
;
; Types with NOCLOBBER don't overwrite existing values
; Types with APPEND appends the specified value to the existing value
;
; REG_ADDREG_APPEND = 0x00010008

; REG_BINARY = 0x00000001 (or 1)
; REG_BINARY_NOCLOBBER = 0x00000003 (or 3)
; Binary data in any form.

; REG_MULTI_SZ = 0x00010000
; REG_MULTI_SZ_APPEND = 0x0001000A
; REG_MULTI_SZ_NOCLOBBER = 0x00010002
; REG_MULTI_SZ_DELVAL = 0x00010006
; Array of null-terminated strings that are terminated by two null characters.

; REG_SZ = 0x00000000 (or 0)
; REG_SZ_NOCLOBBER = 0x00000002 (or 2)
; Null-terminated string. It will be a Unicode or ANSI string, depending on whether you use the Unicode or ANSI functions.

; REG_EXPAND_SZ = 0x00020000
; REG_EXPAND_SZ_NOCLOBBER = 0x00020002
; Null-terminated string that contains unexpanded references to environment variables (for example, "%PATH%"). It will be a Unicode or ANSI string, depending on whether you use the Unicode or ANSI functions.

; REG_DWORD = 0x00010001
; REG_DWORD_NOCLOBBER = 0x00010003
; 32-bit number.

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...