Pages

Thursday, 21 June 2012

Resolve ICE57 Errors


Error: Component has both per user and per machine data with a per machine keypath

Solution: Create a new component (with a new GUID), move all of the per user data from the component that kicks up the error to the new one. Set one of the files/reg keys as it’s keypath.

Stop & Delete Service - VBScript


Option Explicit


On Error Resume Next


Dim objWshShell


Set objWshShell = CreateObject("WScript.Shell")


objWshShell.Run "sc stop ServiceName",0,true
objWshShell.Run "sc delete  ServiceName ",0,true


Set objWshShell = Nothing

Delete Files of common name - VBScript


Suppose cr123.tmp, crequ.tmp, crkkin.tmp...........etc files are present under C:\Windows folder


The following script can be used to delete cr*.tmp files from C:\Windows folder


strDir = "C:\WINDOWS"
Set fso = CreateObject("Scripting.FileSystemObject")
Set objShell = CreateObject("WScript.Shell")
Set objDir = FSO.GetFolder(strDir)
getInfo(objDir)
Sub getInfo(pCurrentDir)


For Each aItem In pCurrentDir.Files
If (LCase(Left(Cstr(aItem.Name), 2)) = "cr") AND fso.GetExtensionName(LCase(aItem.Name)) = "tmp" Then
aItem.delete(True)
End If
Next
For Each aItem In pCurrentDir.SubFolders
'wscript.Echo aItem.Name & " passing recursively"
getInfo(aItem)
Next
End Sub

Check Admin Rights


Check if the current user is a local administrator using the Windows Installer service.


Dim oInst, oSess, iAdmin, oProducts
Const msiUILEVELNONE = 2
Set oInst = CreateObject("WindowsInstaller.Installer")
oInst.UILevel = msiUILEVELNONE
Set oProducts = oInst.Products
Set oSess = oInst.OpenProduct(oProducts(0))
iAdmin = oSess.Property("AdminUser")
If iAdmin = 1 Then
Msgbox "You are a local administrator!", vbInformation, "ADMINISTRATOR"
Else
Msgbox "You are not a local administrator!", vbCritical, "NON-ADMIN"
End If

ChangeBASE AOK Plug-in for VMware ThinApp

ChangeBASE AOK, the world leader in automated application compatibility testing and remediation, today announces the first VMware ThinApp Plug-in to aid enterprise application compatibility in a virtualized environment.


For more information, please visit VMBlog

Changebase AOK Features


  • Compatibility Assessment - Identify compatibility issues before deploying an application to the target environment for accurate and informed decisions on timeframes and costs. Automatically assess application suitability for target environments to prioritize applications for relicensing, replacement and testing. Include nonstandard or legacy applications to test your entire inventory of applications for compatibility issues.
  • Microsoft Office Dependency Testing - Highlight potential issues for applications that will be integrated with Office 2007/2010. Identify dependencies on versions of Microsoft Office prior to 2007/2010 that may create issues and cause those applications to fail. Ensure application packages are compliant with Active Directory policies.
  • Auto-Fix Compatibility Issues - Resolve application compatibility issues pre-deployment with minimal manual effort, to avoid repeated assessment cycles and to substantially accelerate application delivery. Reduce post-migration support issues for a faster, less-costly and more thorough migration process than what is possible with competing solutions.
  • Ongoing Management - Take advantage of the latest Windows updates and patches through periodic automated re-evaluation of your application estate. Reduce security risks and speed deployment times by completing patch impact assessments within minutes. Introduce changes quickly, easily and reliably—with the highest degree of confidence.
  • Virtual Compatibility Assessment - Determine which applications you can virtualize within seconds and track for middleware dependencies, saving days of testing time.
  • Auto-Fix for Virtual Platforms - Evaluate applications for compatibility issues with target virtual platforms and repair them in just a few simple steps.
  • Automation of Corporate Packaging Standards - Test for issues related to in-house and packaging (MSI) standards and apply automated fixes to easily ensure compliance. Develop and customize QA checks and related remedies to achieve significant time and cost savings compared to manual checking.
  • Application Virtualization - Automatically virtualize your applications. Save time, avoid errors and meet demand faster versus manual conversions.
  • Browser Compatibility and Testing - Identify web site and web application compatibility issues with Internet Explorer 8/9 and Firefox.
  • Application Readiness Dashboards - Leverage online dashboards that present graphs, charts, calculators, project status and next-step wizards,

Difference Between Refresh DP and Update DP


Update distribution points increments the package version, goes to the source location, constructs new package content but only sends the delta between what is already present on the DP and what is currently in the new package source. Also this action is package specific and once you trigger this action all the DPs to which the package has been distributed will get the new version.

Refresh distribution points does not increment the package version but simply sends out the current version of the package content again to a specific DP. So this is action is specific to a package-DP assocation and should be used when the content on any particular DP appears corrupted.