Thanks Acheron! That is exactly what I was looking for! You rock dude! I did some digging around in the help file and used your example to fudge my way into the right code.
Here are the steps I took to get Adobe Photoshop CS3 Extended slimmed down and fully functional onto any partition Windows is installed on. The Photoshop install went MUCH quicker, the Photoshop loads WAY faster, AND the total size on the CD was reduced from 478MB to 240MB! As a bonus, the notorious Bonjour service can be completely disabled after install and activation are complete.
Note: I opted out of the built-in silent install and used ScriptWriter to auto-create an AutoIT silent execuable for me. I could not figure out a way to make the silent install ONLY install the payloads I wanted. Also, I used WinRaR to extract everything to %Temp%\Photoshop, and Photoshop CS3 was installed to %ProgramFiles%\Adobe\. Change these paths to whatever you want!
Here is how I did it:
1. Use
this site to pre-configure (input serial, etc...) your Photoshop install, and figure out what payload folders are safe to delete from the initial setup folder. I kept only the payload folders specified, and Photoshop runs perfectly fine for me.
2. Download
xmlstartlet to modify the Deploy.xml default installation variable. If you use the code below, your Photoshop CS3 will install to %ProgramFiles%\Adobe.
3. Place xml.exe into the $OEM$\$\system32 folder of your install cd.
4. Use the following code in a .cmd file to parse the installation directory in Deployment.xml. As noted, this will install Photoshop into %ProgramFiles%\Adobe. In the "xml" line of code, note how 2 different paths were used. The first is the location/name of your fresh, unmodified Deployment.xml file. The second is where you would like the modified Deployment.xml file. Also, in the next step, we will be creating an AutoIT file to silently install Photoshop CS3, so it is necessary to call that file in our batch script.
PhotoshopSilentInstall.cmd
:: Insterting %ProgramFiles%\Adobe Environment Install Path into Deployment.xml
xml ed -P -u "/Deployment/Properties/Property[@name='INSTALLDIR']" -v "%ProgramFiles%\Adobe" "%Temp%\Photoshop\Deployment.xml" > "%Temp%\Deployment.xml"
:: Overwriting old Deployment.xml with edited Deployment.xml
move /Y "%Temp%\Deployment.xml" "%Temp%\Photoshop\Deployment.xml"
:: Running AutoIT Silent Install Script
"PathToFile\YourAutoITScript.exe"
5. Use the
SciTE function ScriptWriter (
an AutoIT tool) to create a silent AutoIT script for you. Be sure to name it the same as you did in your batch file!
6. Put all the Photoshop files, your batchfile, and your newly-created AutoIT .exe file into the same folder and use a compression program to mush them into an .exe file. I used WinRaR. For my particular install, I used the following SFX Comments. Note how the batch file you created is being called by the SFX archive.
Path=%Temp%\Photoshop
SavePath
Setup="PhotoshopSilentInstall.cmd"
Silent=1
Overwrite=1
As soon as Photoshop is installed, the temp folder created will be automatically deleted, so no worries about cleanup!
7. After Photoshop is installed and activated, you can use
this link to download a super tiny .exe program that will automatically disable the Bonjour Service for you! It is called TurnOffBonour.exe.
To make this process completely silent, I used WPI to chain all the command installs so I didn't have to do a thing.
Enjoy your speedy, slimmed-down Photshop CS3.
I hope this all makes sense! I am not a coder in any way, and tend to use whatever resources I have availabe to me to make my life easy. There are probably easier ways to do what I did, but after posting on numerous forums (AutoIT, Adobe, MSFN) this is the solution that ended up working for me.
Cheers!
--radigast
This post has been edited by radigast: 13 November 2007 - 10:02 AM