Wednesday, 9 December 2009

Java 6 Update 17

1.To test Java is installed : http://java.com/en/download/help/testvm.xml
2.Extracted in folder C:\Documents and Settings\Administrator\Application Data\Sun\Java\jre1.6.0_17
changes done:
1.Added CA - CALL VBScript from Embeded code : CA_REGADD to add Registry for disabling updates
' Create String and DWORD Values
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "." Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _ strComputer & "\root\default:StdRegProv") strKeyPath = "SOFTWARE\JavaSoft\Java Update\Policy"strValueName = "EnableJavaUpdate"dwValue = 0oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValuestrValueName1 = "EnableAutoUpdateCheck"dwValue1 = 0oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName1,dwValue1strValueName2 = "NotifyDownload"dwValue2 = 0oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName2,dwValue2strValueName3 = "NotifyInstall"dwValue3 = 0oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName3,dwValue3strValueName4 = "Frequency"dwValue4 = 1170000oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName4,dwValue4strValueName5 = "UpdateSchedule"dwValue5 = 11oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName5,dwValue5strValueName6 = "LastUpdateBeginTime"strValue6 = ""oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName6,strValue6strValueName7 = "LastUpdateFinishTime"strValue7 = ""oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName7,strValue7

---------------
2.Added CA - Execute Program from Destination : CA_RegDelete to delete registry which may sometimes remain by older version
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v SunJavaUpdateSched /f
------------
3.Added CA - CALL VBScript from Embeded code :CA_DisableJavaservice to diable java services with references to earlier versions application
strComputer = "."Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colServiceList = objWMIService.ExecQuery("Select * from Win32_Service where Name = 'JavaQuickStarterService'")
For Each objService in colServiceList errReturnCode = objService.StopService() errReturnCode = objService.Change( , , , , "Disabled") Next
-------------------
4.Property Chaanges
Added
AgreeToLicense=YES
REBOOT=ReallySuppress
ROOTDRIVE=c:\
Modified
IEXPLORER=1
MOZILLA=1
AUTOUPDATECHECK=0
JAVAUPDATE=0
JU=0
SYSTRAY=0
-------------

Thursday, 12 November 2009

Quick Time Player 7.64.17

From http://www.appdeploy.com/packages/detail.asp?id=520
Hey Folks,
Here are my notes for packaging Quicktime 7.64 so that the customized files are stored locally on the machine (e.g. If a PC is off the network and a new user logs in, it will not need to go back to the installation media to for the customized user files)
It's quite easy to follow. You can customize other options as you wish, but the basics are here to make packaging it nice and simple.
Extracted msi and QuickTimeInstallerAdmin.exe

Created admin install
Added the file QuickTimeInstallerAdmin.exe into the admin installation folder as the installation will not work without it
Created a transform and applied the following changes
--------------------------------------------------------
User Interface sequence-Commented out the 'InitInstallOptionsCheckboxes' custom action (this will uncheck the 'Install Desktop shortcuts' and 'Automatically update Quicktime and other Apple Software' options)
Execute Immediate Sequence-Commented out the 'Launch_QTTask' custom action (this will prevent the Quicktime from launching in the System tray)

Created the feature 'CurrentUser' and made this the parent for the 'QuickTimeEssentials' feature
Created the component 'User_Settings'-Assigned Feature = CurrentUser-Directory = Program Files\QuickTime\User_Settings
Added the following files to the 'User_Settings' component-QTPlayerSession.xml-QuickTime.qtp
Added the following registry settings to the 'User_Settings' component (NOTE the /fup to install the missing user profile files)
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\[ProductCode]]@="[ProductName]""+"="""StubPath"="msiexec.exe /fup [ProductCode] /qn""Version"="[ProductVersion]"
Created the component 'Duplicate_Files'-Assigned Feature = CurrentUser-Directory = Windows\Profiles\Local Settings\Application Data\Apple Computer\QuickTime
Addded the following Duplicate file entries to the DuplicateFile component- Existing File = 'Program Files\QuickTime\User_Settings\QuickTime.qtp'- Destination Directory = 'Windows\Profiles\Local Settings\Application Data\Apple Computer\QuickTime'
- Existing File = 'Program Files\QuickTime\User_Settings\QTPlayerSession.xml'- Destination Directory = 'Windows\Profiles\Application Data\Apple Computer\QuickTime'
Added the following registry key to the 'Duplicate_Files' component and set it as the keypath
[HKEY_CURRENT_USER\Software\Apple Computer, Inc.\QuickTime]"7.64.17.0"="DummyRegKey"
Disable ActiveX update.
In the Registry Table set the following Values
"UpdateXNow"=dword:00000000

Windows Desktop Search 4.0

Please refer the C/A and try it once.
1) Execute progm from installation C/A name: Install exe file: Command line arguments: /quiet/norestart sequence:Normal execute immediate/deferred condition: NOT Installed IN SCRIPT OPTION: Immediate execution Processing: Synchronouus ignore exit code

2) Execute progm from destination C/A name: uninstall working directory:system folder exe & cmd line : ""[windir]\$NtUninstallKB940157$\spuninst\spuninst.exe" /passive /norestart sequence:Normal execute immediate/deferred condition: REMOVE~="ALL" IN SCRIPT OPTION: Immediate execution Processing: Synchronouus ignore exit code

3) Execute progm from destination C/A name: delete working directory:system folder exe & cmd line : cmd.exe /c rmdir /q /s "[ProgramFilesFolder]Windows Desktop Search" sequence:Normal execute immediate/deferred condition: REMOVE~="ALL" IN SCRIPT OPTION: Immediate execution Processing: Synchronouus ignore exit code

4) One more custom action is added to delete folder. userprofile\Application Data\Windows Searchcall vb script from embedded code: dim fso,progfiles,wshshellset fso =createobject("scripting.filesystemobject")set wshshell = createobject("wscript.shell")USRPROFILE = wshshell.expandenvironmentstrings("%userprofile%")If FSO.folderexists(USRPROFILE & "\Application Data\Windows Search") Then FSO.DeleteFolder(USRPROFILE & "\Application Data\Windows Search")End If

Friday, 9 October 2009

Mappoint 2009 Europe

EULA To disable EULA and Registration add the following registry keys:
HKLM\Software\Microsoft\MapPoint\16.0\USADWord EULA=1DWord Registration=1
To disable periodically checking for updates add the following registry key:
HKLM\Software\Microsoft\MapPoint\16.0\USADWord PromptUserUpdate=0
To disable search using Live search when online add the following registry key:
HKLM\Software\Microsoft\MapPoint\16.0\FindMRUDWord SearchOnLiveSearchWhenOnline=0
I have made a working package for our Power Users. I am using only the folders/files under the MSMap folder.
1. Use a program like Install Tailer to make a MST file to disable the Live homepage, Live toolbar, and office integration. ( I assume you could make these changes in the data.msi but I could never figure them out, but prefered a MST file) (Additionally I tried to add properties to the installer command and could figure out what values and properties to pass to make this as succesful as the MST).
2. Edit the data.msi with ORCA and drop the following rows: A. CustomAction > MapSelfReg (drop this whole row, this is what gives you a licensing error during the last part of the install, this is actually calling "mappoint.exe /regserver" when that happens, which means it's independant of the application install) ******************B. You can drop the admin requirements from LaunchCondition, but I didn't find it necessary. RRstration3. Using an account with admin rights run a registry monitor/file monitor program and run "C:\Program Files\Microsoft MapPoint 2009\MapPoint.exe /regserver". You'll see a LOT of registry keys in HKCL, HKLM, and HKCU along with approximately 50 files in "C:\Documents and Settings\All Users\Application Data\Microsoft\SL\DL\SoftwareLicensing". If you record all these and deploy it, MapPoint does not need to be ran through /regserver to run. It will just work with your copied registration keys and files.
4. After that I recorded & deployed the addtional few HKCU prefs : [HKEY_CURRENT_USER\Software\Microsoft\MapPoint\16.0\USA] "EULA"=dword:00000001 "Registration"=dword:00000001 "PromptUserUpdate"=dword:00000000
MSIEXEC /i [MSINAME] INSTALLLEVEL=100 for Minimum install (Default)
MSIEXEC /i [MSINAME] INSTALLLEVEL=500 for Full install

Wednesday, 25 February 2009

EULA has not been accepted - Visio Viewer

1.FormulareExportImport
2.VisioViewer2003
In Tech review found error "EULA has not been accepted"
Soln: you'll need to add property ACCEPTEULA=1 in property table.
then msi should work.