home *** CD-ROM | disk | FTP | other *** search
- /*Installing win95key*/
-
- ModuleName="WIN95KEY"
-
- call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
- call SysLoadFuncs
-
- KeyValue=SysIni("USER", "SYS_DLLS", "LoadOneTime")
- Installed=0
-
- do i=1 to Length(KeyValue)
- if Substr(KeyValue, i, Length(ModuleName)) = ModuleName then
- Installed=1
- end
-
- if Installed = 0 then
- do
-
- NewKeyValue = Left(KeyValue, Length(KeyValue)-1) ModuleName||d2c(0)
-
- if SysIni("USER", "SYS_DLLS", "LoadOneTime", NewKeyValue) = '' then
- do
- say "Registered, copying.."
- "@copy .\win95key.dll c:\os2\dll >nul 2>nul"
- say "Done, please reboot."
- end
- else
- do
- say "Failed for unknown reason :("
- end
- end
- else
- do
- say "Already installed, updating"
- "@unlock c:\os2\dll\win95key.dll >nul 2>nul"
- "@copy .\win95key.dll c:\os2\dll >nul 2>nul"
- say "Probably done ;) Please reboot."
- end
-
-