Talk:ConfigWrite: Difference between revisions
Instructor (talk | contribs) No edit summary |
No edit summary |
||
Line 43: | Line 43: | ||
SectionEnd | SectionEnd | ||
</highlight-nsis> | </highlight-nsis> | ||
When i want to use ConfigWrite compiler gives error message: | |||
<highlight-nsis> | |||
Invalid command: ${ConfigWrite} | |||
Error in script "stdin" on line 49 -- aborting creation process | |||
</highlight-nsis> | |||
I simply copy and paste the function and add refs | |||
<highlight-nsis>!include "TextFunc.nsh" | |||
!include "FileFunc.nsh" | |||
!include "WordFunc.nsh"</highlight-nsis> |
Revision as of 14:25, 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
When i want to use ConfigWrite compiler gives error message:
Invalid command: ${ConfigWrite} Error in script "stdin" on line 49 -- aborting creation process
I simply copy and paste the function and add refs
!include "TextFunc.nsh" !include "FileFunc.nsh" !include "WordFunc.nsh"