MSFN Forum: Disable conditions if Windows 98 is detected - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Disable conditions if Windows 98 is detected Rate Topic: -----

#1 User is offline   Sonic 

  • Sonic
  • Group: Patrons
  • Posts: 1,595
  • Joined: 04-December 03

Posted 30 December 2005 - 03:08 PM

Hi :hello:

I have writed all cond[pn] of each programs in config.js. Works like a charm in XP.
But in Windows98 the main part is blank ... same as nofile find ...
Windows 98 doesn't support JavaScript "SystemObjects" ?!


#2 User is offline   Sonic 

  • Sonic
  • Group: Patrons
  • Posts: 1,595
  • Joined: 04-December 03

Posted 30 December 2005 - 03:54 PM

My cond[pn] contain %cdrom% variable ... and it seems to bug with windows 98 ... with hardcoded path all are okay.

#3 User is offline   Sonic 

  • Sonic
  • Group: Patrons
  • Posts: 1,595
  • Joined: 04-December 03

Posted 31 December 2005 - 12:36 PM

It seems because drive is in fact a network drive, with a fixed drive this is okay :(

#4 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,652
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 31 December 2005 - 06:55 PM

WPI has been known to have issues with networking.

#5 User is offline   Sonic 

  • Sonic
  • Group: Patrons
  • Posts: 1,595
  • Joined: 04-December 03

Posted 01 January 2006 - 08:54 AM

To bypass this error, it's possble to ignore cond[pn] if win98 is detected ?

#6 User is offline   Sonic 

  • Sonic
  • Group: Patrons
  • Posts: 1,595
  • Joined: 04-December 03

Posted 01 January 2006 - 04:47 PM

I try to edit boxes.js ...

I have added
if (getOSver()!="XP") WhatCodeToInsertHereToIgnoreCond?
after line 66
if(cond[i] && cond[i][0]) {


When I replace "WhatCodeToInsertHereToIgnoreCond?" by continue all cond are treated to false ...

ps: I'm n00b in JavaScript ...

ps2: Edit title to Win98 : 'FileExist' doesn't work on network drive

This post has been edited by sonic: 01 January 2006 - 04:54 PM


#7 User is offline   Sonic 

  • Sonic
  • Group: Patrons
  • Posts: 1,595
  • Joined: 04-December 03

Posted 02 January 2006 - 02:06 PM

It done.

paste this before line 62 of boxes.js
if ( getOSver()!="2K" && getOSver()!="XP" && getOSver()!="03" ) { var dc=0; }
	else { var dc=1; }


paste this before line 66 of boxes.js
if (dc=="0") { }
  else {


paste this after line 77 (To close 'if')
}


These lines allow to ignore cond[pn] if os is different of windows 2k/xp/2k3.

kelsen: you can edit again the title ^^ to "Disable conditions if Windows 98 is detected"

and again big thanks to you and contrib. for wpi tool.

This post has been edited by sonic: 02 January 2006 - 02:14 PM


#8 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,652
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 02 January 2006 - 07:29 PM

Thanks m8.

#9 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,652
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 January 2006 - 05:05 PM

Can you elaborate on these changes so they can be added to WPI?

#10 User is offline   Sonic 

  • Sonic
  • Group: Patrons
  • Posts: 1,595
  • Joined: 04-December 03

Posted 18 January 2006 - 05:14 PM

I will confirm during this week, but the other topic about DriveType == 3 has fixed all my problems ...

btw, you can replace in your WPI.cmd
REM Make WPI directory the current directory.
for /f "delims=: tokens=1" %%i in ("%wpipath%") do %%i:
cd "%wpipath%"
to
REM Make WPI directory the current directory.
cd /d "%wpipath%"

it's just more clean "/d" allow to change path regardless current drive.

#11 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,652
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 January 2006 - 05:14 PM

Hey thanks.

#12 User is offline   Sonic 

  • Sonic
  • Group: Patrons
  • Posts: 1,595
  • Joined: 04-December 03

Posted 18 January 2006 - 05:17 PM

At the moment I have modified and I disabled conditions by switch passed by WPI.cmd .. it's based on method of Doc Symbiosis (for network share) and it uses regedit temp regkey ... I will inform you after several testsI prefer ...

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy