Thursday 21 July 2011

How to package AdobePhotoshop elements 9 using wise script

Install:
-------
Execute msiexec.exe /i "%INST%\Adobe_Help\setup.msi" TRANSFORMS="%INST%\Adobe_Help\setup.mst" /qb! (Wait)
Set Variable EO to %INST%\ELEMENTSORGANIZER
Execute msiexec.exe /i "%INST%\Adobe Photoshop Elements 9.msi" TRANSFORMS="%INST%\1033.mst" REBOOT="ReallySuppress" /qb! (Wait)
Execute msiexec.exe /i "%EO%\Elements 9 Organizer.msi" TRANSFORMS="%EO%\Elements 9 Organizer.mst" REBOOT="ReallySuppress" /qb! (Wait)
Execute "%INST%\ElementsSTIInstaller\Set-up.exe" --mode=silent --deploymentFile="%INST%\ElementsSTIInstaller\deploy\ElementsSTIInstaller.install.xml" (Wait)

Uninstall:
----------
Execute msiexec.exe /x {007F778D-F15C-4EAB-AE92-071D21FAF632} NOT_STANDALONE=1 /qb! (Wait)
Execute msiexec.exe /x {433EACD8-4747-4A6A-826A-FFA9F39B0D40} NOT_STANDALONE=1 /qb! (Wait)
Get Environment Variable CommonProgramFiles into Variable CPF
Get Environment Variable APPDATA into Variable AD
Get Environment Variable ALLUSERSPROFILE into Variable AUP
Execute "%CPF%\Adobe\OOBE\PDApp\DWA\Setup.exe" --mode=silent --deploymentFile="%CPF%\Adobe\Elements9STIForPSE\ElementsSTIInstaller.remove.xml" (Wait)
Execute cmd.exe /c rmdir /s /q "%CPF%\Adobe\Elements9STIForPSE" (Wait)
Execute cmd.exe /c rmdir /s /q "%AD%\Adobe\Elements Organizer" (Wait)
Execute cmd.exe /c rmdir /s /q "%AD%\Adobe\ExtendScript Toolkit" (Wait)
Execute cmd.exe /c rmdir /s /q "%AUP%\Adobe\Photoshop Elements" (Wait)
Execute cmd.exe /c rmdir /s /q "%AUP%\Adobe\Elements Organizer" (Wait)
Execute cmd.exe /c reg delete "HKEY_CURRENT_USER\Software\Adobe\Elements Organizer" /f (Wait)
Edit 4 registry keys

2 comments: