Question Locked

help needed for a batch file

0 helpful
19 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
good morning!i need some help please...i made an unattended xp installation and i want to do this: when the installation of xp is finished and it starts the desktop for the first time,to run a batch and install the flash player active-x. i hope it was clear...the pc i'm using is a home pc (no domain)

19 replies

by cmiller5400

Just use an NTFS boot disk (if the file system is NTFS, or another boot disk if not) to insert a batch file into the C:\Documents and Settings\All Users\Start Menu\Programs\Startup folder that does what you want, then deletes itself.

by mad

thanks for your post my friend...well,thats what happens: i have a batch with this command start /wait flash9.exe /q
and i use an unattended cd of xp.i put it in the cd,it's copied in the folder i want,it starts the process and it stucks...
the process starts before the end of the xp is finished the installation....
still with me? well,i think the problem is at that part...maybe i have to wait for windows to end the installation and then to run the batch...but i dont know how to do it...any clues?

by mad

thanks for your post!well, i already used nlite (sorry i didn't tell...) and i added the batch at the run once but it didnt work...i made a .bat with this line start /wait flash9.exe /q inside and i gave at runonce
flash.bat as the file to run....
well the installation stuck...any more help please? is there a way to run this batch after the end of windows installation?

by cg it

then chances are it's waiting for user imput.

I'd check the install on another machine and see if there's any user imput required during install that you might have forgotten to put in an answer.

by dumphrey

with NLite other then automate basic XP install choices and add a few drivers, but if I remember right, you need to create an OEM folder with the batch file included. There was some trick to getting it to run after all the XP setup crap had completed. The Nlite forums are sometimes slow, but good info there. I would check with them, if you script is good, then it should work just fine.

by ashishs

We are a dell shop here. Whenever I have to rebuild a pc, I just insert the XP cd that came with the dell computers and everything works. I created an unattended install cd using nliteos and it works great but after the XP is installed, I need a product key to activate XP. Whenever I have to rebuild older computers with Win2K, the xp cd does the trick (no key needed) but the nlite install always asks for a key. Am I doing something wrong here? I have even supplied our enterprise license key during the nlite setup wizard and it still doesn't do the trick. Great program though.

by dumphrey

But it sounds like, when you create an Nlite unattended cd, and have entered the cd key info etc, that when you go to activate XP, it asks you for a product key prior to activation? If thats the case, something is a bit wrong. Are you using a full XP product cd from MS to build your base image from? OEM cds can cause no end of odd problems.

by cg it

per your PM, you can't install an application until after the O/S is loaded. Slipstream the application in after the requisite O/S reboot and log on to desktop.

by mad

thanks again...so at last,is there any way to do my job? i can't figure it out...i got some answers but none was clear enough for me...hope you got it....

by dumphrey

If you want to use the install_flash_player_active_x.msi from adobe, which is latest version, then the command for the runonce is msiexec /package /quiet /passive
Your path will probably be $OEM$\install_blah_blah.msi

by mad

thanks! i'll try it and i'll tell you...hope it will work at last!

by dumphrey

Copied all of XP SP1 cd to root of my C: drive into a folder called c:\XPBASE. Next I created a folder inside of XPBASE labeled $OEM$. I cpoied the install_flash_player_active_x.msi file I had downloaded from Adobe into this $OEM$ folder
http://fpdownload.macromedia.com/get/flashplayer/current/licensing/win/install_flash_player_active_x.msi
Opened Nlite, ran the usual install SP2 buisness, and on the unattended runonce I entered
"msiexec /package $OEM$\install_flash_player_active_x.msi /quiet /passive"
Minus the quotes, thats just to show its all one line.
Made the iso, installed the image into a VM, and opened IE6. Googled "What version of Flash player do i have installed," and chose the adobe option. It said 9.blah blah. If it had been the same version as the .cab file I had downloaded, it would have said version 6. therefor, the install worked just fine. Hope this helps.

by ashishs

Dell computers. Whenever I use the dell CDs to either upgrade or rebuild an existing machine, I don't get prompted to activate the XP. If I use the Nlite unattended cd & don't supply the key in the wizard, then I am prompted to supply a key/activate my windows version within 30 days. Samething happens even if I supply a key during the wizard. Your post actually answered my problem. I am using the Dell OEM cds to create the wizard etc. & using our enterprise key. No wonder it is not working together. What I really need is a copy of XP from MS, then I should be good.

by dumphrey

but using the Dell Cd and put in a Dell cd key, it will not ask you for a cd key at activation. and on some of the older Dell Disks, as long as you install ona dell computer (which it will not let you do otherwise) you will not need to activate either.

by mad

thank you all in this forum and especially my friend Dumphrey for your help...finally it worked with this "FlashPlayer_IE.cab"added in n-lite.
and to my friend Dumphrey...thanks for your hard try! your help was saved my time..this .cab worked.also my mistake is that in the runonce i wrote "flash.bat" and not msiexec .......etc. any way, now everything's ok! have a happy new year all!!

This discussion is closed to new replies.