Posts

VBScript to Find and Replace

I have been using this script for some time now. I took inputs from some sites to create this VBScript. I have modified it to my needs. I want to share this and keep it gfor my reference for future use as well. I am searching for a text and replacing it with the User input of mail id. '----------------------------------------------------- 'Use the below function if you want it to run from commandline and take input from users. 'If WScript.Arguments.Count <> 2 then '  WScript.Echo "usage: Find_And_replace.vbs filename word_to_find replace_with " '  WScript.Quit 'end If MailID=InputBox("Please enter your E-Mail ID") sFind="abcxyz.com" Set oshell=CreateObject("Wscript.shell") prog=oshell.ExpandEnvironmentStrings("%ProgramFiles(x86)%") TargetFile= prog & "\App\config.ini" TempFile= prog & "\App\config1.ini" FindAndReplace TargetFile, sFind, MailID WScript.Echo "Operation Complet...

Internal Consistency Evaluators

Image
This is some material on ICE which I got some time back from AngelD and wanted to post here for my and everyone's reference. ICE02 CASE 1: File: 'Red_File' cannot be the key file for Component: 'Blue'. The file belongs to Component: 'Red' Fix: Search for the component name in all the other tables in the following order: • If the component name is found in the Files Table, then set the keypath for the Component to be the name of the first column in the file table. • If the component name is found in the Registry Table then set the keypath for the Component to be the name of the first column in the Registry table, and add 4 to the Attributes column. • If the component name is not found in either table, leave the keypath blank CASE 2: ' Red_Key' cannot be the key registry key for Component: 'Blue'. The RegKey belongs to Component: 'Red' Fix: Search for the component name in all the other tables in the following order: • If the component ...

Creating a Device driver based package in Installshield

Image
It is very easy and simle to create a device driver based application from Installshield. I am using Installshield 2012. You need to make sure that the driver is a signed driver. If the driver is not signed, then you need to sign the driver first. It is good to have your driver signed, but you can install and unsigned driver as well. Check an option later. Go to Installshield Wizard in Installation Designer and click on Project button on top an then Device Driver wizard. Click Next -> Select the path to your .inf file on your machine. Choose the system architecture. I am choosing x64 as I am packaging for 64 bit machines. Click Next-> Next-> Select the options as per your requirement. I have chosen the above ones. Click Next-> Click Next-> You will get the summary and then click on Finish. It will add the settings in your component of INF file. Hope this helps you create device driver easily with Installshield.

Top Contributor in ITNinja

Image
Today I have reached the top contributor spot in ITNinja which was earlier famous as AppDeploy. I was too happy and just wanted to share this on my blog :D

Re-Packaging Apple Quicktime 7.72.80.56 and later versions

Quicktime comes as an EXE file which can be extracted easily with 7Zip. The three MSI I received were AppleApplicationSupport, AppleSoftwareUpdate and Quicktime. The Apple Update MSI can be discarded if you do not want to AutoUpdate your Quicktime. Apple Application Support MSI can be directly installed with /qb! switch. iTunes can be packaged separately and I have created a separate post for its customization: http://msiworld.blogspot.com.au/2012/06/re-packaging-apple-itunes-10617-and.html Quicktime should be modified through Transform as follows: 1) Change the following properties in your MST:  SCHEDULE_ASUW =0   REGSRCH_DESKTOP_SHORTCUTS =0  REBOOT=ReallySuppress 2) Install Quicktime on a test machine and do all the customizations you want with preferences. Once all customizations are complete, copy the quicktime.qtp file from "%userprofile%\AppData\LocalLow\Apple Computer\QuickTime\QuickTime.qtp" Add this file to Transform in C:\ProgramData\Apple Computer\QuickTi...

Re-Packaging Apple iTunes 10.6.1.7 and later

iTunes comes as an EXE file which can be extracted easily with 7Zip. The five MSI I received were AppleApplicationSupport, AppleMobileDeviceSupport64, AppleSoftwareUpdate, Bonjour64 and iTunes64. The Apple Software Update MSI and Bonjour MSI can be discarded if you do not want to AutoUpdate your iTunes. Bonjour can be kept if you want to allow file sharing on your desktop fleet. We did not want this so we removed this MSI. If you want to install Bonjour then it can be installed silently with /qb! switch. From this Version QuickTime is not part of iTunes. QuickTime can be packaged separately. more details for packaging this is in this post: http://msiworld.blogspot.com.au/2012/06/re-packaging-apple-quicktime-7728056.html Apple Application Support and Apple Mobile Device Support MSI can be installed silently with /qb! switch. You will have to customize iTunes by creating an MST file. 1) Change the following Public Properties in the MST: DESKTOP_SHORTCUTS = 0 DISABLEADVTSHORTCUTS = 0 SCHE...

Packaging Google Chrome for Enterprise deployment

Many times it is an issue with the Administrators to deploy Google Chrome enterprise wide as there are lots of issues like: 1) Many people would have already installed various other versions of Chrome either through MSI or through exe. 2) How to customize Google chrome for enterprise wide deployment. *Edited: The new version has a few differences, please see the end of post on how to tackle this.* First, I would like to mention here that Google Chrome Enterprise version can be downloaded from the following location: http://www.google.com/intl/en/chrome/business/browser/ This site contains an MSI, which is already customized for business as in there are no desktop/Taskbar shortcuts and the application automatically goes to Program files folder. If you need to customize this, it is best to capture this MSI as it runs a Setup.exe from within. I would say that, this MSI is good enough to go like this too so not recommended to waste your time in capturing the MSI unless specifically require...