Talk:ConfigWrite: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
(No difference)

Latest revision as of 14:31, 7 August 2005

CONFIG.SYS >

device=c:\windows\himem.sys /testmem:off device=c:\windows\EMM386.EXE NOEMS dos=high,umb files=80 deviceHIGH=c:\windows\SETVER.EXE deviceHIGH=c:\windows\COMMAND\display.sys con=(ega,,1) Country=090,857,c:\windows\COMMAND\country.sys

I need to change config.sys like above but there are two keys device so is it work if i simply call function as

Section ${ConfigWrite} "C:\config.sys" "device=c:\windows\himem.sys " " /testmem:off" $R0 ;$R0=CHANGED SectionEnd

Section ${ConfigWrite} "C:\config.sys" "device=c:\windows\EMM386.EXE " " NOEMS" $R0 ;$R0=CHANGED SectionEnd Section ${ConfigWrite} "C:\config.sys" "deviceHIGH=c:\windows\SETVER" ".EXE" $R0 ;$R0=CHANGED SectionEnd

Why not just try :) Looks not so well (reflected not for files with identical keys), but should work.

Section
	${ConfigWrite} "C:\config.sys" "device=c:\windows\himem.sys" " /testmem:off" $R0
	;$R0=CHANGED
SectionEnd 
 
Section
	${ConfigWrite} "C:\config.sys" "device=c:\windows\EMM386.EXE" " NOEMS" $R0
	;$R0=CHANGED
SectionEnd
 
Section
	${ConfigWrite} "C:\config.sys" "deviceHIGH=c:\windows\SETVER" ".EXE" $R0
	;$R0=CHANGED
SectionEnd