minusbfold Posted April 4, 2006 Share Posted April 4, 2006 cmdow @ /HID@Echo OffFOR %%i IN (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 PP=%cdrom%\Install\SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "" /fREG ADD %KEY%\000 /VE /D "Adobe Reader 7" /fREG ADD %KEY%\000 /V 1 /D "%PP%AdbeRdr707_en_US.exe /silent" /fEXITDoes this code look correct I just want to see if I can get adobe reader installed on my next test with out hitting next next etc tc....this is the way my folder listing breaks downxpcd/$oem$/$1/install/adobe reader/AdbeRdr707_en_US.exeand this is where my RunOnceEx.cmd and cmdlines.txt are locatedxpcd/$oem$/RunOnceEx.cmd /cmdlines.txt If anyone can confirm that this is wrong or right that would be great.Thanks Link to comment Share on other sites More sharing options...
Yzöwl Posted April 4, 2006 Share Posted April 4, 2006 Well strictly speaking, the runonceex.cmd code will run fine, however, your files are in the wrong place.Anything inside $OEM$ structure is copied to the hard drive, if you want to install from CD-ROM then put the application in xpcd\installIn your case you would have to change the runonceex.cmd to sayREG ADD %KEY%\000 /V 1 /D "%PP%\AdobeReader\AdbeRdr707_en_US.exe /silent" /Fand put your application inxpcd\Install\AdobeReader Link to comment Share on other sites More sharing options...
gunsmokingman Posted April 4, 2006 Share Posted April 4, 2006 xpcd/$oem$/$1/install/adobe reader/AdbeRdr707_en_US.exeTry this if you are installing from the hard drivexpcd\$oem$\$1\install\adobe reader\AdbeRdr707_en_US.exeIf you want to install from the CDxpcd/\install\adobe reader\AdbeRdr707_en_US.exeThe reason is the second quote will get copy to a local drive during the install.The Third quote stay on the CDThis seems to be correct I do not know about the switches for Adobe as i do not use it.cmdow @ /HID@Echo OffFOR %%i IN (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 PP=%cdrom%\Install\SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "" /fREG ADD %KEY%\000 /VE /D "Adobe Reader 7" /fREG ADD %KEY%\000 /V 1 /D "%PP%AdbeRdr707_en_US.exe /silent" /f Link to comment Share on other sites More sharing options...
Djé Posted April 4, 2006 Share Posted April 4, 2006 @minusbfoldWTF I'm writing a full tutorial for you to install that very app that very same way, but you prefer to start yet another thread just like if you did not read the answer to your first one???I mean, I don't mind you not acknowledging, but then if everything is good why do you start another thread? On the other hand, if you think my post doesn't answer you question or is badly shaped, why can't you just tell it to me so I can improve it for other readers? This is very true if you find it too verbose, or unreadable, or whatever...I won't bite you, you know.SET PP=%cdrom%\Install\REG ADD %KEY%\000 /V 1 /D "%PP%AdbeRdr707_en_US.exe /silent" /f1- To complete gunsmokingman, if you install from hard drive use instead: SET PP=C:\Install\, or better SET PP=%systemdrive%\Install\2- This ' /silent' switch does not work for a silent install here. The one I gave you does. Link to comment Share on other sites More sharing options...
minusbfold Posted April 4, 2006 Author Share Posted April 4, 2006 wow man sorry... did not mean to offend you...thanks for your help im sorry that some of us here have a hard time grasping this stuff... Link to comment Share on other sites More sharing options...
Djé Posted April 4, 2006 Share Posted April 4, 2006 That's Ok, I'm not offended. But writing such tutorial requires quite some time, so I'd better now before if other users don't give a s*** about it. Or have improvements to suggest. Criticism is *always* welcome.It's just because that step is difficult to grasp and that the official guide may not be enough that I wrote it.I also had hard time there. I understand your situation. Now just have a glimpse at mine. Anyway, your question are still welcome. But try to keep the whole thing in 1 single thread in order for the other users here having a hard time grasping this same stuff to benefit from it without having to look for all the bits dispersed in different threads. Link to comment Share on other sites More sharing options...
minusbfold Posted April 5, 2006 Author Share Posted April 5, 2006 Thanks.That worked out good I read your guide and it worked but the one thing it did not do was install silent I had to click next,next on adobe reader is there anyway to do this without hitting next. Link to comment Share on other sites More sharing options...
Djé Posted April 5, 2006 Share Posted April 5, 2006 Change the switch from ' /silent' to ' /S /v/qn'.That is, I beleive and tested, the actually working one for silently installing that version (7.0.7) of Acrobat reader.There may be some different way to go for installing your apps (from HD, from CD, etc.) but usually there is only ONE possibility for the switch for one particular prog to get install silently.You have to use the correct ones for each app (search for them in the guide or on the dedicated forum). Link to comment Share on other sites More sharing options...
minusbfold Posted April 5, 2006 Author Share Posted April 5, 2006 SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Test Programs Installation" /S /v/qnREG ADD %KEY%\001 /VE /D "Test with Adobe Reader" /S /v/qnREG ADD %KEY%\001 /V 1 /D "C:\install_test\AdbeRdr707_en_US.exe" /S /v/qnREG ADD %KEY% /V TITLE /D "Test Programs Installation" /S /v/qnREG ADD %KEY%\002 /VE /D "Test with Spybot" /S /v/qnREG ADD %KEY%\002 /V 1 /D "C:\install_test\spybotsd14.exe" /S /v/qnHows that look?/ Link to comment Share on other sites More sharing options...
Djé Posted April 6, 2006 Share Posted April 6, 2006 (edited) Hard to grab that switch thing hé? Actually the ' /S /v/qn' switch is for the 'installer command', not for the REG ADD command as you put it:* The whole 'installer command', including the silent switch, has to fit inside the quotes. - It is NOT YET a command stricto-sensu. - Rather, in this context, it is just a text added to the registry by the REG ADD command. -> As such it needs to be surrounded by quotes and to follow the /D (data) switch of REG ADD.* The REG ADD command needs a ' /F' switch to force the addition/overwriting of the value in the key.* You don't need to repeat the REG ADD %KEY% /V TITLE /D "Test Programs Installation" /F line for each program.- This line is only setting the title of the RunOnceEx list window (the one showing up just after login, saying it is installing your programs).- It writes the data (/D) 'Test Programs Installation' to the value (/V) TITLE of the key %KEY%.- If you repeat it, it repeats the exact same action, and only that. No need to do so, one time is enough.*Open a command prompt and type 'REG ADD /?' to learn about the syntax of this comment.And as I said before, switches are specific to each installer. So the one for Adobe ( /S /v/qn) may not work for Spybot.Appart from this, it looks good. Keep on learning!Your correct RunOnceEx.cmd should be:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Test Programs Installation" /FREG ADD %KEY%\001 /VE /D "Test with Adobe Reader" /FREG ADD %KEY%\001 /V 1 /D "C:\install_test\AdbeRdr707_en_US.exe /S /v/qn" /FREG ADD %KEY%\002 /VE /D "Test with Spybot" /FREG ADD %KEY%\002 /V 1 /D "C:\install_test\spybotsd14.exe /SpecificSilentSwitchForSpybot" /FJust replace ' /SpecificSilentSwitchForSpybot' by the correct switch for this program. Edited April 6, 2006 by Djé Link to comment Share on other sites More sharing options...
minusbfold Posted April 6, 2006 Author Share Posted April 6, 2006 Hey im getting there slowly but starting to understand it... thanks for all your help im sure ill be asking you more questions later.. Hard to grab that switch thing hé? you rock man 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