Friday 12 August 2011

Yahoo Messenger 11 - To disable 'Send File' (File Transfer) option.

Requirement:  Need to disable the “Send File ” (file transfer) option in Yahoo messenger 11.

Solution:   Edit the “res_msgr.dll” and disable the “Send File” option.

Steps:
1.       res_msgr.dll edited using ‘PE explorer ‘. (download 'PE explorer' from ww.heaventools.com)
      
2.       click on View -> Select ‘Resources’ -> select 'Menu' from drop down -> under 'menu', Select
                 "431" and double click on '431' -> which pops a dialog where you get a option to 'deselect'
                  "Send file" option

Info:
1.       Event ‘431’ is responsible for “Send File” functionality.
2.        when we select "431"  and look at the right side panel for script, under which "Action" function is scripted for "Send Files"  (deselecting the 'Send Files' option will edit the script/Code as ("SEND FILE"= "INACTIVE")

Thursday 21 July 2011

Installing msi with if condition using wise script - Important

Get Environment Variable programfiles into Variable PF
Get Registry Key SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{54DF35BD-4A36-35DA-B029-A0C083C88614} place in Variable DISPLAYNAME
If DISPLAYNAME Equals "Google Chrome" then
   Execute msiexec.exe /x {54DF35BD-4A36-35DA-B029-A0C083C88614} /qb! (Wait)
End
Execute %SYS32%\wscript.exe "%INST%\Delete profiles.vbs" (Wait)
Execute msiexec.exe /i "%INST%\Chrome Settings.msi" ALLUSERS="1" REBOOT="ReallySuppress" /qb! (Wait)
Execute %SYS32%\CMD.EXE /c  "%INST%\Chrome.bat" (Wait)
Delete File(s) %PF%\Google\Update\GoogleUpdate.exe

How to package Adobe Photoshopelements 8.0

  Modified "1053.mst":
1.Deleted Desktop Shortcut
2. Commented custom action for Launch Condition "Install [ProductName] by using the Setup.exe in the root folder."
3. Included "Elements.ini" to suppress select country window that will appear after launch of shortcut.
4. AgreeToLicense No to Yes
5. ACCEPTEDEULA 0 to 1
6. DISABLEOLSFEATURES 0 to 1
7. DISABLEEMSFEATURES 0 to 1

Created "application.xml.override" file and placed in Adobe folder with the following contents.
            <?xml version="1.0" encoding="UTF-8"?>
            <Configuration>
            <Payload>
            <Data key="EULA">Suppress</Data>
            <Data key="Serial" protected="0">105716589549352762799634 </Data>
            <Data key="Registration">Suppress</Data>
            <Data key="Updates">Suppress</Data>
            </Payload>
            </Configuration>

Added custom action “CA_DEL_REG” to remove registry entry during uninstall.
 "HKCU\Software\Adobe\Photoshop Elements"
"HKCU\Software\Adobe\Elements Organizer"
"HKCU\Software\Classes\PhotoshopElements.Application.8"
"HKLM\Software\Adobe\Elements Organizer"
Added custom action "CA_DEL_Folders" to remove Folders  "Photoshop Elements" and " Elements Organizer" during uninstall.
    

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

Installing adobereader apps with multiple msp files

 1. Downloaded "AdbeRdrUpd942_all_incr.msp" from the internet. "AdbeRdrUpd943_all_incr.msp" has been given in the source media.

2. Modified the setup.ini with the patch 9.4.2 and 9.4.3 applied along with 9.4.1 in the [Product] section.
[Product]
PATCH=AdbeRdrUpd941_all_incr.msp;AdbeRdrUpd942_all_incr.msp;AdbeRdrUpd943_all_incr.msp

3. Created sms file with the Installation command line as
CommandLine=Setup.exe /rs /sPB(Which will install 9.4.0,9.4.1,9.4.2 and 9.4.3)

4. Created sms file with the Uninstallation and repair command line as
CommandLine=Msiexec /x {AC76BA86-7AD7-1033-7B44-A94000000001} /qb!    

Install and uninstall AdobePhtotoshop elements CS5 using wise script and packdoc on how to do the same


Install:
-------
Get Environment Variable commonprogramfiles into Variable CPF
Execute "%INST%\Set-up.exe" --mode=silent --deploymentFile="%INST%\Deploy\en_US_Deployment.xml" overrideFile="%INST%\Deploy\application.xml.override" (Wait)
Pause 10000 Milliseconds
Delete File(s) %CPF%\Adobe\Adobe PCD\cache\cache.db
Pause 1000 Milliseconds
Install File .\cache.db to %CPF%\Adobe\Adobe PCD\cache\cache.db
Execute msiexec.exe /i "%INST%\Settings\PhotoshopCS5 Settings.msi" ALLUSERS="1" REBOOT="ReallySuppress" /qb! (Wait)

Uninstall:
----------
Execute "%INST%\Set-up.exe" --mode=silent --deploymentFile="%INST%\Deploy\Uninstall.xml" (Wait)
Execute MsiExec.exe /x {DE3A9DC5-9A5D-6485-9662-347162C7E4CA} /Qb! (Wait)
Execute MsiExec.exe /x {0D2DBE8A-43D0-7830-7AE7-CA6C99A832E7} /Qb! (Wait)
Execute MsiExec.exe /x {CB2B43AD-1E1C-4C6F-BD2D-ABBB81CD30E3} /Qb! (Wait)
Execute %SYS32%\wscript.exe "DeleteFolder.vbs" (Wait)

Packdoc:
----------
1. Created "application.xml.override" file to add serial key, to support silent installation and placed in "Deploy" folder
2. Created "PhotoshopCS5 Settings.msi" to suppress the automatic updates in  the applications installed.

-Added "AdobeUpdaterAdminPrefs.dat" file to C:\ Program Files\Common Files\Adobe\AAMUpdaterInventory\1.0\ to suppress the updates in photoshop CS5 application.
-The automatic update in MEDIA PLAYER is under Options->Updates->Automatically check for Updates.
prefs.xml  added to %appdata%\Adobe\Adobe Media Player\Local Store\settings\

-Added "Bridge.reg"(Placed in Analyse Folder) file to suppress the dialog box which ask to run Bridge automatically to start at  logon.

-For Device central, GOTO "Help" Menu, click on updates,a Preferences dilog box will be opened, uncheck the option for "Notify me of NEw Updates" and "Updates for products".

-Adobe extension Manager, Update option is under the File-> Preferences->Updates
Unchecked, Check for Extension Updates

3.Created Install PhotoshopCS5.EXE using wise script editor.
-to install the application.
-to install the "PhotoshopCS5 Settings.msi".
-to replace the file "cache.db" file from from C:\Program Files\Commom Files\Adobe\  to suppress the registration screen for photoshop application.

4. Created "Uninstall PhotoshopCS5.EXE" to uninstall the application.  
-Repair of the application is not suported.

-The warnings and ICE03 is not resolved in "PhotoshopCS5 Settings.msi" as it’s a setting package.

-The ARP entry of "PhotoshopCS5 Settings.msi" is suppressed as it is a setting package.

-The Adobe Air 2.5 is given to install before installation of this application, as PhotoshopCS5 will install Adobe Air 1.5.

-When we launch the shortcut Adobe help, a dialog box pops up to update community help, this could not be suppressed as it comes everytime we launch the shortcut.
   Under Edit->Preferences, download preferences,  updater settings are done to disable.

-Clean uninstallation  is not supported. 

Packaging AdobeCaptivate Application

Adjustments/Notes
1. Installed Adobe Air application prior to installing this application.

2. Created "Install_Captivate5.EXE" for wrapping the Set-up.exe.

3. Extracted msi files which install Adobe Captivate Quiz Results Analyzer, Adobe Captivate Reviewer 2.0 and Adobe Community Help and created individual transforms for these msi's.

- In the transform file of Quiz Results Analyzer, deleted desktop shortcut; changed the INSTALLDIR of the package and added a property ARPSYSTEMCOMPONENT=1 since it was putting in two add/remove entries.

- In the tranform file of Captivate Reviewer, deleted desktop shortcut and added a cutom action(CA_SetINSTALLDIR) to change the INSTALLDIR.

- In the transform file of Adobe Help, deleted desktop shortcut; added a customaction (CA_SetINSTALLDIR) to change the INSTALLDIR; Added a file appDB.db to "%Appdata%\chc.4875E02D9FB21EE389F73B8D1702B320485DF8CE.1\Localstore\" to suppress the update of the local help content; Added a customAction to delete the file "[ProgramFilesFolder]Adobe\Adobe Help\updateConfig.xml" to suppress automatic updates of the application and added active setup to copy the user specific files to all the users.

4. Added scripts in the wse to install these msi files.

5. Installation of the Captivate 5 package is performed using the below parameters:

Set-up.exe --mode=silent --deploymentFile="deploy\AdobeCaptivate5.0AllLocales.install.xml" overrideFile="deploy\override.xml".

When the shortcut is launched it pops up a screen as below
"Some Adobe Captivate features such as screen capture and audio might not work as intended without admin privileges". Tried to suppress the screen by selecting "Do not show this message again". But the settings corresponding to this is fixed through settings.msi file which is installed by the wrapper exe.

The settings.msi has ICE 91 warnings which is achieved through active setup.

6. Created Uninstall_Captivate5.EXE to uninstall Adobe Captivate Quiz Results Analyzer, Adobe Captivate Reviewer 2.0 and Adobe Community Help and uninstallation of captivate 5 is performed by using the below parameter:
Set-up.exe --mode=silent --deploymentFile="deploy\AdobeCaptivate5.0AllLocales.remove.xml". Also added scripts in it to remove the files and registries remaining after uninstallation of the application.



Malfunctions/Known errors
1. Repair of the application is not supported.

2. Clean un-installation is not supported since Adobe Photoshop CS also shares same files/folders