Monday, April 26, 2010

VMWare 3.0.1 build-227600
Virtual Machine : VMware
Apps Repackaging : VMware 3.0.1 Build - 227600
Issue : VMWare will not install on VMWare virtual machine
Soln : If we install VMWare Silently it will install

1. Extract the Souce file from VMware-player-3.0.1-227600.exe using command
Msiexec /e
2. Taking base MSI as “vmware player.msi” create the transform Using ORCA
3. Apply properties
DESKTOP_SHORTCUT=0
QUICKLAUNCH_SHORTCUT=0
ALLUSERS=1
AgreeToLicense=Yes
ROOTDRIVE=C:\
REBOOT= ReallySuppress

4. Using Install Shield Edit MST to add files “preferences.ini” and Script “Copy_Pref_Users.vbs” to copy files to install directory folder
'....................Copy_Pref_Users.vbs........................................
'On Error Resume next
'Option Explicit
dim path,prog
Set ObjShell = CreateObject("WScript.Shell")
set objFSO = CreateObject("Scripting.FileSystemObject")

path = ObjShell.ExpandEnvironmentStrings("%APPDATA%") & ("\VMware\")

If Not objfso.FolderExists (path) Then

objFSO.CreateFolder(path)

End if

prog = objshell.ExpandEnvironmentStrings("%ProgramFiles%")

objFSO.CopyFile prog & "\VMware\VMware Player\preferences.ini", path
'....................Copy_Pref_Users.vbs.............................................


5. Add Active setup to apply setting to all profiles

Wednesday, April 21, 2010

How to create nested installation?

A nested installation is a type of Custom Action that installs or removes another .msi package (sometimes called the child MSI) from within a running installation (called the parent MSI).


Properties of Nested Installs:

• Nested installations do not display a user interface.
• A child product generally does not appear in the user's Add/Remove Programs panel, and is not automatically uninstalled when the parent product is uninstalled.

Creating a Nested Installation:

Below are the steps for adding custom action that installs the child msi within the parent msi:
  • Goto MSI Script View->Execute Immediate.
  • Under CostFinalize sequence add a custom action that installs the msi from installation. Browse the msi that needs to be installated with the current installation.






Below are the steps for adding custom action that uninstalls the child msi within the parent msi:
  • Under InstallInitialize sequence add a custom action that installs the msi from destination. Enter the product code of the child msi.





















Save and compile the Parent msi.

Media Options for Nested Installations:

• The child installation must not be compressed inside a Setup.exe installation launcher.

•If the child installation's files are not compressed inside the child .msi database, we must manually copy the child installation's files to the SourceDir folder of the parent installation.

Packaging Adobe Reader 9.0 using Adobe Customization tool

1. Install AdbeRdr90_en_US.exe. This will extract msi file under "C:\Program Files\Adobe\Reader 9.0\Setup Files\". The transform file to this msi should be created using ACT(Adobe Customization Tool).
















2. Go to File ----> Open Package and open the extracted msi file















3. Go to Transform --> Generate Transform. and name it.


 
 
 
 
 
 
 
 
 
 
 
   

The below modifications are made to the transforms:
 
  •  Goto EULA and Document Status.
*Suppress Display of EULA.

  • Goto Online and Acrobat.com features and make changes as per the below screenshot.















  • Go to Direct Editor. In the tables column go to property table. Add REBOOT property. (REBOOT=ReallySuppress)

  •  In the registry table, add the below registry to disable "Acrobat Javascript".
[HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\9.0\JSPrefs]

  • For clean uninstallation, custom actions can be added directly in the Custom action table and install execute sequence table.















  •  After making all the changes save the file.

Packaging MS Office Professional Plus 2007 using OCT

1. Enter the below command line to open OCT(Office Customization Tool)

SETUP.exe /admin












2. In the Select Product screen, select the option "Create a new setup customization file for the following product".




 
 
 
 
 
 
 
 
 
 
3. After the launch of the tool, goto Setup->Install Location and Organization name and make the needed changes.





 
 
 
 
 
 
 
4. Goto Setup->Licensing and user interface and enter the below details.

*Product key
*Check box to accept license agreement
*Display Level-->Basic and checked “No cancel”





 
 
 
 
 
 
 
5. Goto Features->Modify user settings-->Microsoft office 2007 system->Privacy->Trust Center


 
 
 
 
 
 
 
 
 
 
 
Disable both the settings by double clikcing on it.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

















6. Goto Additional content->Add Registry entries
Add the below registry to disable updates

[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Common\Internet]

"UpdateSpotlight"=dword:00000002
and the below registry to disable privacy options(which pops-up at the first launch the application).

[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Common\General]
"ShownOptIn"=dword:00000001



 
 
 
 
 
 
 
 
 
7. Save this file in Updates Folder. During the installation, the setup finds and applies the MSP file which is in the Updates folder .

Thursday, April 15, 2010

Disable updates in MindManager application

MindManager application has updates option listed under the "Product" section of the "Tools" menu.


The below registry setting will disable this option from MindManager application.

[HKEY_CURRENT_USER\Software\Mindjet\MindManager\[Version]\Settings]

"AllowUpdateCheck"=dword:00000000

Disable automatic updates in Flash Player and Shockwave Player

Flash Player:


Modify the property:

ISCHECKFORPRODUCTUPDATES = 0

Add the file,

[System Folder] Macromed \ Flash \ mms.cfg


The file contents:

AutoUpdateDisable = 1

And saved with the UTF-8 encoding


Shockwave Player:

Modify the registry hive,

HKLM\SOFTWARE\Adobe\Shockwave 11\AutoUpdate

y ->n

Test:

We can use the below URL for testing auto-updates:


http://www.adobe.com/shockwave/welcome/

Open the URL and right click on the animation screen of Adobe Shockwave player and select Properties.

Check if the "Automatic Updates Service" is disabled.

Disable splash screen and Automatic Updates in Apple QuickTime Player

To disable splash screen (content guide), launch the shortcut and go to Edit Menu. Under “Preferences” option, choose “Player Preferences” and uncheck “Show Content Guide at startup” in the General tab.

The setting corresponding to this action will be stored in “QTPlayerSession.xml” file under “%USERPROFILE%\Application Data\Apple Computer\QuickTime\”. Copy this file and add to the same location in the package.

To disable AutoUpdates, launch the shortcut and go to Edit Menu. Under “Preferences” option, choose “QuickTime Preferences” and uncheck “Check for updates automatically” in the Update tab.

The setting corresponding to this action will be stored in “QuickTime.qtp” file under “%USERPROFILE%\Local Settings\Application Data\Apple Computer\QuickTime\”. Copy this file and add to the same location in the package.

Packaging .Net Framework 3.5 SP1

For the .Net Framework 3.5 SP1 application, the files get extracted to "C:\Windows\Microsoft.NET\Framework\v3.5", after installing the downloaded executable file. Out of those extracted files, we need to copy "vs_setup.msi" file and "vs_setup.cab" file which is the source for creating the package.


Create the application transform using this MSI file and add a property "ADDEPLOY" with value "1" and run it.

Disabling Automatic Updates in Sun JRE application

To Disable AutoUpdates in JRE Application, we need to add the below custom actions and have to place it under Execute Immediate sequence.

These custom actions will run from destination and will add the below registry keys during the time of installation.

reg add "HKLM\SOFTWARE\Javasoft\Java Update\Policy" /v EnableJavaUpdate /t reg_dword /d 0 /f

reg add "HKLM\SOFTWARE\Javasoft\Java Update\Policy" /v NotifyDownload /t reg_dword /d 0 /f

reg add "HKLM\SOFTWARE\Javasoft\Java Update\Policy" /v NotifyInstall /t reg_dword /d 0 /f

reg add "HKLM\SOFTWARE\Javasoft\Java Update\Policy" /v EnableUpdateCheck /t reg_dword /d 0 /f


Also, change the value of the below properties to "0".

JU=0

AUTOUPDATECHECK=0

JAVAUPDATE=0

SYSTEMTRAY=0