Posts

Showing posts from July, 2012

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.