View Single Post
Old 1st May 2001, 03:36   #4
dTomoyo
Junior Member
 
Join Date: Mar 2001
Location: South Korea
Posts: 26
Send a message via ICQ to dTomoyo
Quote:
Originally posted by yazno
code:

Section "Driver 0.1"
SectionIn 12
IfFileExists $SYSDIR\drive.ax CheckFile InstFile

CheckFile:
CompareDLLVersions files\file.ax $SYSDIR\drive.ax InstFile SkipFile

InstFile:
SetOverwrite try
SetOutPath $SYSDIR
File files\drive.ax
RegDLL $SYSDIR\drive.ax
ReadINIStr $0 $WINDIR\system.ini 386enh ebios
IfErrors Win2000Reg Win98Reg

Win98Reg:
WriteRegStr HKLM "1..." "a..." "x..."
WriteRegStr HKLM "2..." "b..." "y..."
WriteRegStr HKLM "3..." "c..." "z..."
GoTo SkipFile

Win2000Reg:
WriteRegStr HKLM "4..." "d..." "v..."
WriteRegStr HKLM "5..." "e..." "w..."

SkipFile:
SectionEnd


Didn't work...
Registry has both settings.

I guess 'ReadIniStr' & 'IfErrors' command has some bug.


dTomoyo is offline   Reply With Quote