sfamonkey Posted July 27, 2004 Share Posted July 27, 2004 Hi. I need some help. Sorry if someone already asked the question. I think this question should be very easy. I want to install adware 6 and ms powertools. I have all the script but when windows goes to install I get an error saying that it can't find C:\install\Applications\AdAware\aaw6181.exeC:\install\Applications\Powertoys\TweakUiPowertoySetup.exehow would I fix my cmd file so it can get to the file.There is a picture of the way my folders are setup and below I'm going to inlcude my batch.Cmd/Batch file:@echo offecho.ECHO.ECHO Installing Lavasoft Ad-Aware 6 Build 181ECHO Please wait...start /wait %systemdrive%\install\Applications\AdAware\aaw6181.exe /sECHO.ECHO Installing TweakUI 2.10 PowertoyECHO Please wait...start /wait %systemdrive%\install\PowerToys\TweakUI.msi /qbexit Link to comment Share on other sites More sharing options...
Alanoll Posted July 27, 2004 Share Posted July 27, 2004 do you ahve OEMPreInstall=Yes in your winnt.sif file? Link to comment Share on other sites More sharing options...
sfamonkey Posted July 27, 2004 Author Share Posted July 27, 2004 Yes I do. I had two other cmd files that run very well. One was reg tweaks and the other was creating a user automatically. Link to comment Share on other sites More sharing options...
Alanoll Posted July 27, 2004 Share Posted July 27, 2004 but do they run from CMDLINES.TXT or GUIRUNONCE? Perhaps posting your WINNT.SIF file? Link to comment Share on other sites More sharing options...
sfamonkey Posted July 27, 2004 Author Share Posted July 27, 2004 First I don't understand that GUIRunonce or how to make the files or what, but I have put in all the lines in the cmdlines.txt. I would like all of the things I need done in the cmdlines.txt. Link to comment Share on other sites More sharing options...
Alanoll Posted July 27, 2004 Share Posted July 27, 2004 ok.....so....did you post winnt.sif?You may have two entries of the OEMPreInstall. Are your files being copied over? is your batch file in the same folder as CMDLINES.TXT? GUIRUNONCE is just a section of your WINNT.SIF file taht calls a batch file on the harddrive. Perhaps you're thinking RUNONCEEX?But in either case, winnt.sif?FYI - You're Powertyos path is wrong, it's missing \Applications\ Link to comment Share on other sites More sharing options...
ravashaak Posted July 27, 2004 Share Posted July 27, 2004 Well, at first glance, I can see at least one problem with your AdAware install. Your code for installing AdAware references an "AdAware" folder:start /wait %systemdrive%\install\Applications\AdAware\aaw6181.exe /sHowever, your screenshot of your directory structure indicates that the directory is actually called "adware" not "adaware". So, that would definitely cause a problem.As far as PowerToys is concerned, it appears that you merely forgot to include the "applications" directory in the path statement for your install code:start /wait %systemdrive%\install\PowerToys\TweakUI.msi /qbThe above path does not include the applications directory. Since the applications directory is part of the path, your installation fails.Some advice: Anytime one of your installs fails and complains about not locating a file, etc, triple-check your path AS WELL AS your filenames! Hope this helps. - Ravashaak Link to comment Share on other sites More sharing options...
mazin Posted July 27, 2004 Share Posted July 27, 2004 Good catch, Ravashaak & Alanoll. Both paths are wrong. Link to comment Share on other sites More sharing options...
sfamonkey Posted July 27, 2004 Author Share Posted July 27, 2004 ravashaak thanks. 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