Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BATCH Problem
2006-08-29, 11:21 AM,
#1
BATCH Problem
Hy Guyz....!!!

I have one problem...... Im using Windows Unattended CD Creator and it works not just good but realy realy realy good but..... (listen)
I create one folder and put in programs like Nero B.R.6, Media player.....ect. and make one batch file called install.bat to perform full unattended instalation of these programs an it looks somthing like this.....

ECHO.
ECHO Instalacija: Nero Burning ROM v6.6.0.3
ECHO Molimo sacekajte.......
start /wait %CDROM%\Software\Install\nero\Nero6603.exe /silent /noreboot
ECHO Instalacija uspjesno zavrsena.....
ECHO.
ECHO.

After that i used Windows Unattended CD Creator nad under the SOFTWARE tab I made "Software desciption: Install" and chose "Directories" tab. After "Adding" folder with my programs I chose to start install.bat
Problem starts when Windows XP finish its instalation and start Install.bat.... After that it says that can not find \Software\Install\nero\Nero6603.exe ??? Hmmmm (something is wrong with my path)
Im asking what is wrong in my install.bat? How to enter a path to find Software\Install\nero\Nero6603.exe on my WIN_XP CDROM ???!!!!!**
PL... HLP....

This is my Section [Software] from SETTINGS.TXT

[Software]
UNNTInstall.checkPoint="Software\Install"
UNNTInstall.Steps="1"
UNNTInstall.Step.1=""%CDROM%\Software\Install\Install.bat""
Reihenfolge="Install"


Thanks : )
Reply
2006-08-29, 12:44 PM,
#2
RE: BATCH Problem
Try it:
<Install.bat> Wrote:ECHO.
ECHO Instalacija: Nero Burning ROM v6.6.0.3
ECHO Molimo sacekajte.......
cmd /c "%1\Software\Installnero\Nero6603.exe" /silent /noreboot
ECHO Instalacija uspjesno zavrsena.....
ECHO.
ECHO.
and it:
<settings.txt> Wrote:[Software]
UNNTInstall.checkPoint="Software\Install"
UNNTInstall.Steps="1"
UNNTInstall.Step.1=""%CDROM%\Software\Install\Install.bat" %CDROM%"
Reihenfolge="Install"
save both, start WUCD Creator and create new ISO.

Second %CDROM% in settings.txt is a switch for Install.bat
%1 in Install.bat is a first switch Wink

cmd /c is better as start /wait!
Vitali

[Image: wucdcreator.png]
[Image: winfuture.png]
[Image: mysoft.gif]
Reply
2006-08-30, 07:24 PM,
#3
RE: BATCH Problem
Ej... Guyz...!!!

It wont work......
It says that can not find (for example my CDrom G: ) G:\Software\Install\Install.bat" %CDROM%".... After that I removed this part %CDROM% in my Section [Software] from SETTINGS.TXT... and it looks like the first one


[Software]
UNNTInstall.checkPoint="Software\Install"
UNNTInstall.Steps="1"
UNNTInstall.Step.1=""%CDROM%\Software\Install\Install.bat""
Reihenfolge="Install"

But I do what you were saying with my Install.bat (it looks like this...)

ECHO.
ECHO Instalacija: Nero Burning ROM v6.6.0.3
ECHO Molimo sacekajte.......
cmd /c "%1\Software\Installnero\Nero6603.exe" /silent /noreboot
ECHO Instalacija uspjesno zavrsena.....
ECHO.
ECHO.


I put again may software, made new XP cd.....bla bla bla... and try to install Windows XP Professionall again, unatended CD works fine, but after the XP instalation, when it need to start Install.bat, it wont start it and just enter on the WIndows Desktop...........

Oh God am I asking so much.....???!!! I could solve this problem with $OEM$ instal, and I did, but I want to start these programs directly from my CD.

Im going to cry..... this is my third sleepless night

Hehehehe

PS: Im using VMware Workstation 5.5.0
Reply
2006-08-30, 08:32 PM, (This post was last modified: 2006-08-30, 08:33 PM by Vitali.)
#4
RE: BATCH Problem
Tomorrow make I tests with VMWare and install.bat!
Why would you use install.bat? Why don't instal nero directly?

PS: Sorry my english.
Vitali

[Image: wucdcreator.png]
[Image: winfuture.png]
[Image: mysoft.gif]
Reply
2006-08-31, 01:58 PM, (This post was last modified: 2006-08-31, 01:59 PM by Vitali.)
#5
RE: BATCH Problem
Today tested I follow Install.bat with VMware:
Quote:@ECHO off
ECHO Instalacija: Nero Burning ROM v6.6.1.4
ECHO Molimo sacekajte.......
cmd /c "%~dp0..\nero\Nero-6.6.1.4_no_yt.exe" /silent /noreboot
ECHO Instalacija uspjesno zavrsena.....
ECHO.
ECHO.
Its working Very Happy!
[Image: nero.png]

My settings.txt:
Quote:[Software]
Install.checkPoint="Software\Install"
Install.Steps="1"
Install.Step.1=""%CDROM%\Software\Install\install.bat""
Reihenfolge="Install"
If you would more known about %~dp0, try test it self with follow test.bat:
Quote:@echo off
echo %%~dp0 is equal to %~dp0
echo.
pause
Save to Desktop and start it Wink
Vitali

[Image: wucdcreator.png]
[Image: winfuture.png]
[Image: mysoft.gif]
Reply
2006-09-01, 03:24 PM,
#6
Wink  RE: BATCH Problem
I find a solution..... (listen) HEHEHEHEHEEHE

In my Install.bat file i put these two lines:


@ECHO off
SetLocal enableextensions
SET CDROM=%~d0


ECHO Instalacija: Nero Burning ROM v6.6.1.4
ECHO Molimo sacekajte.......
cmd /c "%CDROM%\nero\Nero-6.6.1.4_no_yt.exe" /silent /noreboot
ECHO Instalacija uspjesno zavrsena.....
ECHO.
ECHO.


EndLocal
exit

and It works...

Ill try your method too..  Im very interested in %~dp0

PS: Thanks

- By the way, can you tell me smething about RunOnceEx.jv and RunOnceEx.cmd (I reed about this on http://unattended.msfn.org ) some link about that or.....??

- How did you make VMware to test your install.bat witouth making Windows XP CD and putting Install.bat in IT ?

THX Again.... :  )
Reply
2006-09-03, 03:30 PM,
#7
RE: BATCH Problem
MAKI Wrote:- By the way, can you tell me smething about RunOnceEx.jv and RunOnceEx.cmd (I reed about this on http://unattended.msfn.org ) some link about that or.....??
Oh...
You can read about Runonceex.bat / Runonceex.cmd:
http://unattended.msfn.org/unattended.xp/view/web/59/

I'm using Runonceex.js anstad of runonceex.bat. Bat it is very complex!:
  • [GuiRunOnce] from winnt.sif starts Runonceex.js
  • Runonceex.js trying to find a driveletter of any integrated soft in all awaible drivers (CD, DVD, HDD, USB, floppy Wink). Its using "Name.checkPoint=" from settings.txt to find a driveletter for soft Name.
  • Runonceex.js writing installsteps of integrated soft in windowsregistry by corrected %CDROM%. Ex:
    anstad of "%CDROM%\Software\Install\Install.bat" writing it "E:\Software\Install\Install.bat" (Now can you understend why %CDROM% existing in settings.txt and in Runonceex.js but don't in install.bat)
  • Runonceex.js staring a RunOnceex process.

MAKI Wrote:- How did you make VMware to test your install.bat witouth making Windows XP CD and putting Install.bat in IT ?
I make a new CD and put install.bat in ISO:
Vitali Wrote:My settings.txt:
Quote:[Software]
Install.checkPoint="Software\Install"
Install.Steps="1"
Install.Step.1=""%CDROM%\Software\Install\install.bat""
Reihenfolge="Install"
I don't burning ISO to CD. I'm using ISO directly by VMWare.
Vitali

[Image: wucdcreator.png]
[Image: winfuture.png]
[Image: mysoft.gif]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)