clivebuckwheat Posted August 6, 2011 Author Share Posted August 6, 2011 (edited) Thank you guys.Last task for me this week is to do an unattended install of Dreamweaver and photoshop from CS3 with the updates that task is for tomorrow . The struggle continues, but I have learned so much. Thank you for all your time and effort guys. Classes start in a week and I am under the gun to piece it all together.I have another issue.My Adobe unattended cs4 install works fine. When I call the updates from a batch file they work fine.when I call it with like this it worksREG ADD %KEY%\040 /VE /D "Installing Adobe CS4 Updates" /fREG ADD %KEY%\040 /V 1 /D "C:\Applications\CS4\CS4Updates.cmd" /fCS4Updates.cmdstart /wait C:\Applications\CS4\Updates\acrobat9pro-EFG\AcroProStdUpd910_T1T2_incr.msp\ /qnstart /wait C:\Applications\CS4\Updates\acrobat9pro-EFG\AcrobatUpd912_all_incr.msp\ /qn start /wait C:\Applications\CS4\Updates\acrobat9pro-EFG\AcrobatUpd920_all_incr.msp\ /qnstart /wait C:\Applications\CS4\Updates\Fireworks-10.0.3-AdobeUpdate\Setup.exe\ --mode=silent start /wait C:\Applications\CS4\Updates\Photoshop_11.0.2_mul_AdobeUpdate\Setup.exe\ --mode=silentstart /wait C:\Applications\CS4\Updates\AdobeDrive_1.0.1_AdobeUpdate_2\Setup.exe\ --mode=silentstart /wait C:\Applications\CS4\Updates\AdobeExtensionManager-2.1-mul-AdobeUpdate2\Setup.exe\ --mode=silentstart /wait C:\Applications\CS4\Updates\AdobeCameraRaw-5.7-mul-AdobeUpdate\Setup.exe\ --mode=silentstart /wait C:\Applications\CS4\Updates\AdobeOutputModule-2.1-mul-AdobeUpdate_2\Setup.exe\ --mode=silentstart /wait C:\Applications\CS4\Updates\AdobeVersionCue4All_4.0.1_AdobeUpdate_2\Setup.exe\ --mode=silentstart /wait C:\Applications\CS4\Updates\AME_All_CS4.2_mul_AdobeUpdate\Setup.exe\ --mode=silentstart /wait C:\Applications\CS4\Updates\DeviceCentral_2.1.1_mul_AdobeUpdate\Setup.exe\ --mode=silentstart /wait C:\Applications\CS4\Updates\Flash-10.0.2-AdobeUpdate\Setup.exe\ --mode=silentstart /wait C:\Applications\CS4\Updates\Soundbooth-2.0.1-786\Setup.exe\ --mode=silentIF I call it like this the updates do not install.REG ADD %KEY%\040 /VE /D "Installing Adobe CS4 Updates" /fREG ADD %KEY%\040 /V 01 /D "\"C:\Applications\CS4\Updates\acrobat9pro-EFG\AcroProStdUpd910_T1T2_incr.msp\" /qn" /F>NULREG ADD %KEY%\040 /V 02 /D "\"C:\Applications\CS4\Updates\Updates\acrobat9pro-EFG\AcrobatUpd912_all_incr.msp\" /qn" /F>NUL REG ADD %KEY%\040 /V 03 /D "\"C:\Applications\CS4\Updates\Updates\acrobat9pro-EFG\AcrobatUpd920_all_incr.msp\" /qn" /F>NUL REG ADD %KEY%\040 /V 04 /D "\"C:\Applications\CS4\Updates\Fireworks-10.0.3-AdobeUpdate\Setup.exe --mode=silent\"" /F>NULREG ADD %KEY%\040 /V 05 /D "\"C:\Applications\CS4\Updates\Photoshop_11.0.2_mul_AdobeUpdate\Setup.exe --mode=silent\"" /F>NULREG ADD %KEY%\040 /V 06 /D "\"C:\Applications\CS4\Updates\AdobeDrive_1.0.1_AdobeUpdate_2\Setup.exe --mode=silent\"" /F>NULREG ADD %KEY%\040 /V 07 /D "\"C:\Applications\CS4\Updates\AdobeExtensionManager-2.1-mul-AdobeUpdate2\Setup.exe --mode=silent\"" /F>NULREG ADD %KEY%\040 /V 08 /D "\"C:\Applications\CS4\Updates\AdobeCameraRaw-5.7-mul-AdobeUpdate\Setup.exe --mode=silent\"" /F>NULREG ADD %KEY%\040 /V 09 /D "\"C:\Applications\CS4\Updates\AdobeOutputModule-2.1-mul-AdobeUpdate_2\Setup.exe --mode=silent\"" /F>NULREG ADD %KEY%\040 /V 10 /D "\"C:\Applications\CS4\Updates\AdobeVersionCue4All_4.0.1_AdobeUpdate_2\Setup.exe --mode=silent\"" /F>NULREG ADD %KEY%\040 /V 11 /D "\"C:\Applications\CS4\Updates\AME_All_CS4.2_mul_AdobeUpdate\Setup.exe --mode=silent\"" /F>NULREG ADD %KEY%\040 /V 12 /D "\"C:\Applications\CS4\Updates\DeviceCentral_2.1.1_mul_AdobeUpdate\Setup.exe --mode=silent\"" /F>NULREG ADD %KEY%\040 /V 13 /D "\"C:\Applications\CS4\Updates\Flash-10.0.2-AdobeUpdate\Setup.exe --mode=silent\"" /F>NULREG ADD %KEY%\040 /V 14 /D "\"C:\Applications\CS4\Updates\Soundbooth-2.0.1-786\Setup.exe --mode=Silent\"" /F>NUL Edited August 6, 2011 by clivebuckwheat Link to comment Share on other sites More sharing options...
gunsmokingman Posted August 6, 2011 Share Posted August 6, 2011 If you where to use VBS scripting then a script to do what you want would look like thisDim Act :Set Act = CreateObject("Wscript.Shell")Dim Arg, AdobePath, AdobeFile, C1, Key, Obj, Var AdobePath = "C:\Applications\CS4\Updates\"Arg = " --mode=silent"AdobeFile = Array( _ AdobePath & "acrobat9pro-EFG\AcroProStdUpd910_T1T2_incr.msp <> /qn", _ AdobePath & "acrobat9pro-EFG\AcrobatUpd912_all_incr.msp <> /qn", _ AdobePath & "acrobat9pro-EFG\AcrobatUpd920_all_incr.msp <> /qn", _ AdobePath & "Fireworks-10.0.3-AdobeUpdate\Setup.exe <> " & Arg, _ AdobePath & "Photoshop_11.0.2_mul_AdobeUpdate\Setup.exe <> " & Arg, _ AdobePath & "AdobeDrive_1.0.1_AdobeUpdate_2\Setup.exe <> " & Arg, _ AdobePath & "AdobeExtensionManager-2.1-mul-AdobeUpdate2\Setup.exe <> " & Arg, _ AdobePath & "AdobeCameraRaw-5.7-mul-AdobeUpdate\Setup.exe <> " & Arg, _ AdobePath & "AdobeOutputModule-2.1-mul-AdobeUpdate_2\Setup.exe <> " & Arg, _ AdobePath & "AdobeVersionCue4All_4.0.1_AdobeUpdate_2\Setup.exe <> " & Arg, _ AdobePath & "AME_All_CS4.2_mul_AdobeUpdate\Setup.exe <> " & Arg, _ AdobePath & "DeviceCentral_2.1.1_mul_AdobeUpdate\Setup.exe <> " & Arg, _ AdobePath & "Flash-10.0.2-AdobeUpdate\Setup.exe <> " & Arg, _ AdobePath & "Soundbooth-2.0.1-786\Setup.exe <> " & Arg) C1 = 1 Key = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\" Act.RegWrite Key & "040\", "Installing Adobe CS4 Updates", "REG_SZ" For Each Obj In AdobeFile Var = Split(Obj," <> ") Act.RegWrite Key & "040\" & C1, Chr(34) & Var(0) & Chr(34) & Var(1), "REG_SZ" C1 = C1 + 1 Next Link to comment Share on other sites More sharing options...
clivebuckwheat Posted August 6, 2011 Author Share Posted August 6, 2011 Thank you. It works great.After my install of Adobe CS4 I noticed that Adobe reader X is no longer the default PDF application, but Adobe Reader pro is, is there any way to change it back via batch mode so that Adobe Reader X is the default.Again thanks for all your help. Link to comment Share on other sites More sharing options...
Yzöwl Posted August 6, 2011 Share Posted August 6, 2011 Have you tried installing the CS4 stuff before installing the Reader? Link to comment Share on other sites More sharing options...
clivebuckwheat Posted August 6, 2011 Author Share Posted August 6, 2011 Have you tried installing the CS4 stuff before installing the Reader?No Reader X is part of the base image in my organization. I am added cs4 after laying down the base Link to comment Share on other sites More sharing options...
Geej Posted August 7, 2011 Share Posted August 7, 2011 (edited) Thank you. It works great.After my install of Adobe CS4 I noticed that Adobe reader X is no longer the default PDF application, but Adobe Reader pro is, is there any way to change it back via batch mode so that Adobe Reader X is the default.Again thanks for all your help.Have you tried batch command assoc? Already suggest to you over here.Edit: Add Assoc ref link Edited August 7, 2011 by Geej Link to comment Share on other sites More sharing options...
clivebuckwheat Posted August 7, 2011 Author Share Posted August 7, 2011 I have tried the assoc command, but it didn't work for me, maybe I did it wrong.I am trying to change the associate from Acrobat pro 9 back to Reader X. I am going to try again Link to comment Share on other sites More sharing options...
Geej Posted August 8, 2011 Share Posted August 8, 2011 I tried on my XP in VM for Adobe Reader X, then install foxit reader. Take some data to check before putting association back to Adobe Reader XTry this on PC that has Adobe Reader X set as default. To generate a current list of association before CS4 installation.@echo offset viewfile=ARX5.txtassoc .pdf>%viewfile%Echo=>>%viewfile%assoc>>%viewfile%Start "view now" %viewfile%You will see .pdf=AcroExch.Document is the present association (line 1 of ARX5.txt). This is Adobe Reader X association.Do a text search for 'AcroExch.' within ARX5.txt, you will also notice there are some other file extension associate with Reader X. They are.acrobatsecuritysettings=AcroExch.acrobatsecuritysettings.api=AcroExch.Plugin.fdf=AcroExch.FDFDoc.pdf=AcroExch.Document.pdfxml=AcroExch.pdfxml.secstore=AcroExch.SecStore.xdp=AcroExch.XDPDoc.xfdf=AcroExch.XFDFDocIn my humble view , only .pdf & .fdf are necessary. But here you are the judge.Then proceed to install CS4. After that generate another list as your new file association inventory. Do a comparsion to observe the difference.@echo offset viewfile=APro9.txtassoc .pdf>%viewfile%Echo=>>%viewfile%assoc>>%viewfile%Start "view now" %viewfile%Now to set it back to Adobe Reader X as default, run this batch command@echo offassoc .pdf=AcroExch.Documentassoc .fdf=AcroExch.FDFDocDone. Just test by opening a pdf file directly. Hope this helps. Link to comment Share on other sites More sharing options...
clivebuckwheat Posted August 9, 2011 Author Share Posted August 9, 2011 (edited) I spoke to soon after tried the above association and after the cs4 install pro was still the default after running the batch.@echo offassoc .pdf=AcroExch.Documentassoc .fdf=AcroExch.FDFDoc Edited August 9, 2011 by clivebuckwheat Link to comment Share on other sites More sharing options...
clivebuckwheat Posted August 9, 2011 Author Share Posted August 9, 2011 Can this line use the /fREG ADD HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RunOnceExI'd like to force it to overwritten if it already exists, I am in the testing phase at the moment of my scripts Link to comment Share on other sites More sharing options...
Yzöwl Posted August 9, 2011 Share Posted August 9, 2011 Why do you need to overwrite a key name which already exists?You should only need to overwrite data contained within a key, not the name of the key.Are you hoping to empty all data contained within the tree below that key, if so try it on a live system. If it doesn't work then simply use REG DELETE followed by REG ADD. Link to comment Share on other sites More sharing options...
clivebuckwheat Posted August 9, 2011 Author Share Posted August 9, 2011 I had a couple pc's that the script would not run on because it was asking me to over right a value and I had to choose yes before the script ran. Link to comment Share on other sites More sharing options...
Geej Posted August 10, 2011 Share Posted August 10, 2011 (edited) I spoke to soon after tried the above association and after the cs4 install pro was still the default after running the batch.@echo offassoc .pdf=AcroExch.Documentassoc .fdf=AcroExch.FDFDocPerhaps when you apply the above batch, it set association to your host pc, not your client PC.Try adding the command to the registry instead. Something like (in key 20 I suggested)@echo offSet key=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY%\040 /VE /D "Installing Adobe CS4 Updates" /fREG ADD %KEY%\040 /V 01 /D "\"C:\Applications\CS4\Updates\acrobat9pro-EFG\AcroProStdUpd910_T1T2_incr.msp\" /qn" /F>NUL REG ADD %KEY%\040 /V 02 /D "\"C:\Applications\CS4\Updates\Updates\acrobat9pro-EFG\AcrobatUpd912_all_incr.msp\" /qn" /F>NUL REG ADD %KEY%\040 /V 03 /D "\"C:\Applications\CS4\Updates\Updates\acrobat9pro-EFG\AcrobatUpd920_all_incr.msp\" /qn" /F>NUL REG ADD %KEY%\040 /V 04 /D "\"C:\Applications\CS4\Updates\Fireworks-10.0.3-AdobeUpdate\Setup.exe --mode=silent\"" /F>NUL REG ADD %KEY%\040 /V 05 /D "\"C:\Applications\CS4\Updates\Photoshop_11.0.2_mul_AdobeUpdate\Setup.exe --mode=silent\"" /F>NUL REG ADD %KEY%\040 /V 06 /D "\"C:\Applications\CS4\Updates\AdobeDrive_1.0.1_AdobeUpdate_2\Setup.exe --mode=silent\"" /F>NUL REG ADD %KEY%\040 /V 07 /D "\"C:\Applications\CS4\Updates\AdobeExtensionManager-2.1-mul-AdobeUpdate2\Setup.exe --mode=silent\"" /F>NUL REG ADD %KEY%\040 /V 08 /D "\"C:\Applications\CS4\Updates\AdobeCameraRaw-5.7-mul-AdobeUpdate\Setup.exe --mode=silent\"" /F>NUL REG ADD %KEY%\040 /V 09 /D "\"C:\Applications\CS4\Updates\AdobeOutputModule-2.1-mul-AdobeUpdate_2\Setup.exe --mode=silent\"" /F>NUL REG ADD %KEY%\040 /V 10 /D "\"C:\Applications\CS4\Updates\AdobeVersionCue4All_4.0.1_AdobeUpdate_2\Setup.exe --mode=silent\"" /F>NUL REG ADD %KEY%\040 /V 11 /D "\"C:\Applications\CS4\Updates\AME_All_CS4.2_mul_AdobeUpdate\Setup.exe --mode=silent\"" /F>NUL REG ADD %KEY%\040 /V 12 /D "\"C:\Applications\CS4\Updates\DeviceCentral_2.1.1_mul_AdobeUpdate\Setup.exe --mode=silent\"" /F>NUL REG ADD %KEY%\040 /V 13 /D "\"C:\Applications\CS4\Updates\Flash-10.0.2-AdobeUpdate\Setup.exe --mode=silent\"" /F>NUL REG ADD %KEY%\040 /V 14 /D "\"C:\Applications\CS4\Updates\Soundbooth-2.0.1-786\Setup.exe --mode=Silent\"" /F>NULREG ADD %KEY%\040 /V 20 /D "\"cmd /c assoc .pdf=AcroExch.Document\"" /F>NULSuggest you let us know what key you are prompt to give Yes/No reply as asked by Yzöwl. Or post the full script for us to get a better picture?Or temporary remove >NUL from your batch file so that you can see what error message you encounter during run.Edit: AddWait clivebuckweat. On 2nd thought pls check whether .pdf return same sting (.pdf=AcroExch.Document) after cs4 is installed.If they are the same then using assoc will not make any different. Need to go to registry to change path to Reader X.Try changing the program path inHKEY_LOCAL_MACHINE\SOFTWARE\Classes\AcroExch.Document\Shell\Open\Command Edited August 10, 2011 by Geej Link to comment Share on other sites More sharing options...
clivebuckwheat Posted August 10, 2011 Author Share Posted August 10, 2011 (edited) Suggest you let us know what key you are prompt to give Yes/No reply as asked by Yzöwl. Or post the full script for us to get a better picture?Or temporary remove >NUL from your batch file so that you can see what error message you encounter during run.This is the line I am prompted for YES/NO. When I re-run my script a second time.REG ADD HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RunOnceExFor my PDF woes reader not being the default after cs4 has been installed.Edit: AddWait clivebuckweat. On 2nd thoughtpls check whether .pdf return same sting (.pdf=AcroExch.Document) after cs4 is installed.If they are the same then using assoc will not make any different. Need to go to registry to change path to Reader X.Try changing the program path inHKEY_LOCAL_MACHINE\SOFTWARE\Classes\AcroExch.Document\Shell\Open\Commandafter the CS4 installation the association is exactly the same as it was with reader x (.pdf=AcroExch.Document)I tried this to change the default pdf back to reader X it did not work.Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AcroExch.Document\Shell\Open\Command]@="\"C:\\Program Files (x86)\\Adobe\\Reader 10.0\\Reader\\AcroRd32.exe\" \"%1\""UPDATE! This fixed it.Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf\UserChoice]"Progid"="Applications\\AcroRd32.exe" Edited August 10, 2011 by clivebuckwheat Link to comment Share on other sites More sharing options...
Yzöwl Posted August 10, 2011 Share Posted August 10, 2011 This is the line I am prompted for YES/NO. When I re-run my script a second time.REG ADD HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RunOnceExThat line shouldn't be there, the key already exists, you do not need to add it or overwrite it, your entire script should only be adding sub-keys and sub-key data beneath that level. 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