MSFN Forum: Autorun on different OSes... - MSFN Forum

Jump to content



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

Autorun on different OSes... Possible? Rate Topic: -----

#1 User is offline   Nakatomi2010 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 381
  • Joined: 28-June 05

Posted 31 December 2005 - 01:26 PM

I use WPI as a general software install CD, basically I through a bunch of software on it, then have WPI called through the autorun and then install software through the WPI prompt. It's damned convenient in cases where you didn't get to use your custom XP CD.

However, I also use this thing on Windows 9x based machines, and while I can manually start WPI, I'd like the ability to stick it in the machine and it'd automatically start for me, recognizing the difference between a 9x and NT machine, starting WPI appropriatly either way....

Thoughts?


#2 User is offline   Doc Symbiosis 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 333
  • Joined: 03-August 04

Posted 06 January 2006 - 03:38 PM

You could make two version of WPI, put it in different directories, e.g. "WPIXP" and "WPI98". Now edit the autorun.inf located in the root of your CD, if not, create one, containing the following
[AutoRun]
open=autorun.bat
icon=WPI.ico

Create a file autorun.bat in the root of your CD, containing:
if %OS%==Windows_NT ( %~dp0\WPIXP\WPI.cmd)

Add an adequate entry for Win98, but I don't know, what %OS% is on a Win98 System.
I didn't test anything of this, but I think, that I should work this way.

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