Patches7o9 Posted April 25, 2007 Share Posted April 25, 2007 So, I have a Unattended Windows XP Install, which works fine, with a batch file that runs in SVCPACK.inf. I tested the batch file with the apps outside the installer whcih works fine. Then I tested on the install image and got an "Windows cannot find the file" error, which is odd since the files are present in the SVCPACK folder. After the install finished I ran the batch file again, off of the CD image, and it ran without any errors. Any idea why an error would occur only during the install? Link to comment Share on other sites More sharing options...
Yzöwl Posted April 25, 2007 Share Posted April 25, 2007 If you don't provide us with information, you are unlikely to get worthy responses. What have you added to svcpack.inf?Is the svcpack folder source names in dosnet.inf? Link to comment Share on other sites More sharing options...
Patches7o9 Posted April 26, 2007 Author Share Posted April 26, 2007 If you don't provide us with information, you are unlikely to get worthy responses. What have you added to svcpack.inf?Is the svcpack folder source names in dosnet.inf?Sorry about the lack of information. I'm following the instructions on the MSFN site to make an unattended XP SP2 installer, and the Windows installer (with all the current hotfixes) works fine. I've been testing it under the latest version of Virtual PC.The error occurs right after the hotfixes finish installing and it brings a dialog box saying "Windows cannot find x. make sure you typed the name correctly, and then try again. To search for a file, click the Start button, and then click Search.", where x is the application installer. The applications are named correctly and they are in the svcpack folder. The batch file works correctly when I run it outside of the windows installer.To svcpack.inf I added, after the hotfixes and qchain, I added my apps batch file.Yes, I have the svcpack folder source name in dosnet.inf.If there is anymore information that would be helpful for you guys helping me out then let me know.Thanks. Link to comment Share on other sites More sharing options...
phkninja Posted April 26, 2007 Share Posted April 26, 2007 you will have to give us an example of the code you added to the svcpacl.inf file, not just a description. Your problem could lie in the way you call the installer Link to comment Share on other sites More sharing options...
Patches7o9 Posted April 26, 2007 Author Share Posted April 26, 2007 (edited) ;Windows XP[Version] Signature="$Windows NT$"MajorVersion=5MinorVersion=1BuildNumber=2600[SetupData]CatalogSubDir="\i386\SVCPACK"[ProductCatalogsToInstall][SetupHotfixesToRun]KB931261.exe /q /n /zKB931784.exe /q /n /zKB931836.exe /q /n /zKB932168.exe /q /n /zqchain.exeapps.batThat's my SVCPACK.inf file (though I removed most of the hotfixes to save space).@echo offtitle Batch File Applications Installerecho.echo Begin Installation:echo.echo Mozilla Firefox 2echo Please wait...start "Firefox" /wait "Firefox Setup 2.0.0.1.exe" /Secho.echo Adobe Reader 8echo Please wait...start "Adobe Reader" /wait "AdbeRdr80_en_US.exe" /sAllecho Deleting Desktop ShortcutDEL "&ALLUSERSPROFILE&\Desktop\Adobe Reader 8.Ink"echo.echo WinSCPecho Please wait...start "WinSCP" /wait "winscp382setup.exe" /sp- /silent /norestartecho.echo Puttyecho Please wait...copy putty.exe "&ALLUSERSPROFILE&\Desktop\"echo.echo Installation Finishedecho.echo Restarting in 60 secondsshutdown.exe /r /f /t:60 /c "Restarting to finish application installation"exitAnd that's my apps batch file. Edited April 26, 2007 by Patches7o9 Link to comment Share on other sites More sharing options...
gunsmokingman Posted April 26, 2007 Share Posted April 26, 2007 Try to change this &ALLUSERSPROFILE&to this %ALLUSERSPROFILE% Link to comment Share on other sites More sharing options...
Yzöwl Posted April 26, 2007 Share Posted April 26, 2007 Is there a reason why you are naming it aps.bat as opposed to apps.cmd? Link to comment Share on other sites More sharing options...
nmX.Memnoch Posted April 26, 2007 Share Posted April 26, 2007 Using "start" won't work correctly unless he uses .cmd instead of .bat anyway.Also, qchain.exe shouldn't be necessary either. Link to comment Share on other sites More sharing options...
Patches7o9 Posted April 26, 2007 Author Share Posted April 26, 2007 I'll try out those suggestions above and let you know if it helps.Thanks again. Link to comment Share on other sites More sharing options...
Patches7o9 Posted April 26, 2007 Author Share Posted April 26, 2007 It still says that it cannot find the files with the error "Windows cannot find x. Make sure you typed the name correctly, and then try again. To search for a file, click the Start button, and then click Search."Maybe I should just have it run at a different stage of the installation? Link to comment Share on other sites More sharing options...
phkninja Posted April 26, 2007 Share Posted April 26, 2007 the only other problem i could see is that you dont have the exe's in the correct path.so create a folder on the disk for install, then@echo offtitle Batch File Applications Installerfor %%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.SP2 set CDROM=%%i:SET InstallPath=%CDROM%\Installecho.echo Begin Installation:echo.echo Mozilla Firefox 2echo Please wait...start "Firefox" /wait "%InstallPath%\Firefox Setup 2.0.0.1.exe" /Secho.echo Adobe Reader 8echo Please wait...start "Adobe Reader" /wait "%InstallPath%\AdbeRdr80_en_US.exe" /sAllecho Deleting Desktop ShortcutDEL "&ALLUSERSPROFILE&\Desktop\Adobe Reader 8.Ink"echo.echo WinSCPecho Please wait...start "WinSCP" /wait "%InstallPath%\winscp382setup.exe" /sp- /silent /norestartecho.echo Puttyecho Please wait...copy %InstallPath%\putty.exe "&ALLUSERSPROFILE&\Desktop\"echo.echo Installation Finishedecho.echo Restarting in 60 secondsshutdown.exe /r /f /t:60 /c "Restarting to finish application installation"exit Link to comment Share on other sites More sharing options...
Patches7o9 Posted April 26, 2007 Author Share Posted April 26, 2007 the only other problem i could see is that you dont have the exe's in the correct path.so create a folder on the disk for install, then(code snip)I find the problem really odd though, since I can run the batch script fine in any other situation, but just when the installation runs it doesn't work. I'll try the code above and see if it works.Thanks. Link to comment Share on other sites More sharing options...
gunsmokingman Posted April 26, 2007 Share Posted April 26, 2007 This will not work as it is not correctcopy %InstallPath%\putty.exe "&ALLUSERSPROFILE&\Desktop\"This will work as it is correctcopy %InstallPath%\putty.exe "%ALLUSERSPROFILE%\Desktop\" Link to comment Share on other sites More sharing options...
IcemanND Posted April 26, 2007 Share Posted April 26, 2007 I find the problem really odd though, since I can run the batch script fine in any other situation, but just when the installation runs it doesn't work. I'll try the code above and see if it works.Thanks.when you run it manually it is running from the folder in which the installers reside, when running from svcpack.inf it is being called when the relative path is more likely c:\windows\system32 so any executable the bathc would look for it would look in that folder not your folder with the installers.You could solve that problem by adding a change directory command to the beginning of the script. Link to comment Share on other sites More sharing options...
phkninja Posted April 27, 2007 Share Posted April 27, 2007 Thanks Patches Didnt realise i forgot to fix his original error (just copied and pasted the code)Like IceMan says svcpack calls the programs from the system or system32 directory. By using a directory like the one i suggested above it means the apps install from cd and dont need to be copied to the hard drive at all. Either way its just a personal preference.e.g.my wayCD LayoutI386Install |_(Apps)........using svcpack alonei386 |_SVCPACK |__(Apps)ou can fix the problem by adding the apps into the svcpack folder on the disk, or do as i said above and add them to the Install folder onm the disk, making the changes to the apps.bat to make the installers run from the cd. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now