------------------------------
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
StrCmp $0 "*ebios" Win98Reg Win2000Reg
Win98Reg:
WriteRegStr HKLM "1..." "a..." "x..."
WriteRegStr HKLM "2..." "b..." "y..."
WriteRegStr HKLM "3..." "c..." "z..."
Nop
Win2000Reg:
WriteRegStr HKLM "4..." "d..." "v..."
WriteRegStr HKLM "5..." "e..." "w..."
Nop
SkipFile:
SectionEnd
(1) Installation success.
(2) but, Registry has Win98 and Win2000 both Reg entries.
(3) I'm using system.ini's '386enh-ebios' element for detecting Windows Version.
If exist 'ebios', it's Win9x. else Win2000.
(4) I want install a part of reg keys, Win98 or Win2000.
How do that?
Need help....
[Edited by dTomoyo on 04-30-2001 at 09:33 AM]