MSFN Forum: %cdrom% variable problem - MSFN Forum

Jump to content



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

%cdrom% variable problem Rate Topic: -----

#1 User is offline   Nox71 

  • Group: Members
  • Posts: 7
  • Joined: 19-May 06

Posted 10 December 2008 - 10:44 AM

I just start using WPI 7.2.1 and now all my application failed to install and when i look into the WPI logs there is a bug with the path for the programs to install, the variable %cdrom% return nothing so the cdrom drive letter is missing from the command to run.

Anyone have an idea ?


#2 User is offline   Wesmosis 

  • Just Call Me Doctor Just Call Me Pain!
  • PipPipPipPipPip
  • Group: Members
  • Posts: 787
  • Joined: 20-September 04

Posted 10 December 2008 - 11:03 AM

same here :(

#3 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 11 December 2008 - 05:15 PM

Post a section of log so I can see what it says.

#4 User is offline   Nox71 

  • Group: Members
  • Posts: 7
  • Joined: 19-May 06

Posted 12 December 2008 - 10:47 AM

Here is mine.

Attached File(s)



#5 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 12 December 2008 - 07:07 PM

That is correct. When run WPI from harddrive, %cdrom% is blank. When run from a cd/dvd %cdrom% will be set accordingly. If you want to do installs from desktop, you need to start WPI from the CD, not from C:.

#6 User is offline   Nox71 

  • Group: Members
  • Posts: 7
  • Joined: 19-May 06

Posted 15 December 2008 - 10:15 AM

OK so the file you send me solve nothing so i tried to start WPI directly from the CDROM and still no luck with it. I am starting WPI from a batch file and i think the problem came from there because if i go directly in the WPI folder on the CDROM and start WPI.HTA by myself it work but i need to start it from a batch file any workaround for that ?

#7 User is offline   Kelsenellenelvian 

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

Posted 15 December 2008 - 10:17 AM

What does your batch file say in it?

#8 User is offline   Nox71 

  • Group: Members
  • Posts: 7
  • Joined: 19-May 06

Posted 15 December 2008 - 10:25 AM

Echo off
for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\win51ip.sp3 set CDR=%%i:
echo Found CD-Rom as drive %CDROM%
start /wait %CDR%\WPI\WPI\WPI.hta
start /wait %systemdrive%\clean.bat
CMD /C del %systemdrive%\clean.bat

#9 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 15 December 2008 - 01:50 PM

Dunno, man. I sent the same file to another guy, works fine for him in same situation.

I would download my $OEM$ scripts from the main version post to set the reg keys needed for some programs.

Your script is fine. I will think some more about it.............

#10 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 15 December 2008 - 06:33 PM

Start WPI from CD and post the log file for that install process.

#11 User is offline   paraffin 

  • Junior
  • Pip
  • Group: Members
  • Posts: 58
  • Joined: 15-December 08

Posted 15 December 2008 - 07:11 PM

win51ip.sp3

this is the section of the script you have to worry about, it looks for this file on the CD if it is there then the %CDROM% parameter is set but if it does not find it then it will not be set.

Change this to the file on the CD you have and it will work

Don't worry I am on a steep learning curve with creating unattended installs so if this is wrong shoot me!!!!

#12 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 16 December 2008 - 12:16 AM

It has nothing to do with the file existing or not. Nox71 is having a problem with the internal %CDROM% WPI variable. His batch file is fine.

#13 User is offline   Nox71 

  • Group: Members
  • Posts: 7
  • Joined: 19-May 06

Posted 16 December 2008 - 12:16 PM

Here a C&P of my logs when i directly start WPI from the CD-Rom:

Fichier log d'installation WPI

Début d'installation à: 16 décembre 2008 11:57:08

Variables Globales :
%OSLANG%=
%WPIPATH%=D:\$OEM$\$1\WPI
%ROOT%=D:\$OEM$\$1
%CDROM%=D:
%DOSPATH%=
%SYSDRV%=C:
%WINDIR%=C:\WINDOWS
%PROGRAMFILES%=C:\Program Files
%TEMP%=C:\DOCUME~1\UTILIS~1\LOCALS~1\Temp
%SYSDIR%=C:\WINDOWS\system32
%ALLUSERSPROFILE%=C:\Documents and Settings\All Users
%USERPROFILE%=C:\Documents and Settings\Utilisateur standard
%APPDATA%=C:\Documents and Settings\Utilisateur standard\Application Data
%COMMONPROGRAMFILES%=C:\Program Files\Fichiers communs

Liste des programmes à installer:
.NET Framework 2.0
.NET Framework 3.5
.NET Framework 1.1
Mises-à-jour Diverses
Office 2007 Home & Student
PowerDVD 7.0
Nero 7.x OEM
Kaspersky Antivirus 2009
Flash/Shockwave pour IE7

9 Items, 12 Commandes

-----

16 décembre 2008 11:57:08
Program: .NET Framework 2.0
ID unique: NETFRAMEWORK20
Ordre: 900001
Catégorie: System
16 décembre 2008 11:58:02 - cmd1 Succès (Code de retour 0): "D:\WPI\Système\Dotnet\DNF20.exe"
16 décembre 2008 11:58:02 - Installation terminée.

-----

16 décembre 2008 11:58:02
Program: .NET Framework 3.5
ID unique: NETFRAMEWORK30
Ordre: 900002
Catégorie: System
16 décembre 2008 12:06:22 - cmd1 Succès (Code de retour 0): "D:\WPI\Système\Dotnet\DNF35.exe"
16 décembre 2008 12:06:22 - Installation terminée.

-----

16 décembre 2008 12:06:22
Program: .NET Framework 1.1
ID unique: NETFRAMEWORK11
Ordre: 900003
Catégorie: System
16 décembre 2008 12:07:02 - cmd1 Succès (Code de retour 0): "D:\WPI\Système\Dotnet\DNF11.exe"
16 décembre 2008 12:07:02 - Installation terminée.

-----

16 décembre 2008 12:07:02
Program: Mises-à-jour Diverses
ID unique: MISESJOURDIVERSES
Ordre: 900024
Catégorie: System
16 décembre 2008 12:07:20 - cmd1 Succès (Code de retour 0): "D:\WPI\Système\Updates\Silverlight.2.0.exe" /q
16 décembre 2008 13:13:57 - cmd2 Success (returned code 0): "D:\WPI\Système\Updates\windows-kb890830-v2.4.exe" Q
16 décembre 2008 13:15:14 - cmd3 Success (returned code 0): "D:\WPI\Système\Updates\WindowsSearch-KB940157-XP-x86-fra.exe" /q
16 décembre 2008 13:15:14 -

*** Installation aborted by user ***

-----

Number of failed installations: 0

Install process finished at: 16 décembre 2008 13:15:15

#14 User is offline   johnhc 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,241
  • Joined: 02-March 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 16 December 2008 - 01:11 PM

Nox71,
I am curious why you have WPI in D:\$OEM$\$1\? Normally it is just D:\WPI. Enjoy, John.

#15 User is offline   Nox71 

  • Group: Members
  • Posts: 7
  • Joined: 19-May 06

Posted 16 December 2008 - 01:37 PM

Because i was running it from my hard drive just after Windows installation but for my test i run it directly from the CDRom drive.

This post has been edited by Nox71: 16 December 2008 - 01:37 PM


#16 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 16 December 2008 - 01:51 PM

That's your problem right there: You are launching WPI from harddrive, so WPI thinks you are not using a CD, so %CDROM% is not being set. Why are you copying to the harddrive anyway? Waste. Just making things harder for yourself.

#17 User is offline   Nox71 

  • Group: Members
  • Posts: 7
  • Joined: 19-May 06

Posted 17 December 2008 - 03:51 PM

Thanks i just used %WPIPATH% instead of %CDROM% and run it directly from my cdrom drive and now it work.

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