Wednesday, May 27, 2009

How to disable Symantec Device Manager and access your disabled USB drive

Well, its going to be interesting! Symantec might be installed on your office machine and its controlled by policy, so it might be blocking you from connecting any USB device. You can enable it at your own risk, provided your are a machine admin.

open services.msc and look for Symantec Management Client Service.
Go to properties.
Open the logon tab.
Give your current network credentials.
Now go to Task Manger and kill smc.exe.

Now on Symantec will be running in your account and you are the boss. You can Stop/Start/Kill it at any time.

If you dont want to see the service running again, dont give your right password in logon. Service wouldnt start now on, because of the logon failure.

Disclaimer: I am not using the above method, neither i am recommending this to you. You are on your own buddy!
Posted by Picasa

Tuesday, May 26, 2009

Read contacts from Outlook using javascript


Following Javascript uses MAPI component and reads the contact details stored in Outlook. This works only with Outlook, not with Outlook express. It can also read the GAB if outlook is connected(following code does not do that, it prints only the addresses stored. You can remove the check for 'Contacts' to do so..).


 
<html><head>
<script language="javascript">
<!---
function readOutlookContacts()
{
obj = new ActiveXObject("Outlook.Application");
mapi= obj.GetNamespace("MAPI");
if( mapi )
{
addlst = mapi.AddressLists;
if( addlst )
{
if( addlst.count > 0 )
{
for(i = 1; i <= addlst.Count;i )
{
al = addlst.Item(i);
addentrs = al.AddressEntries;
if(al.name=="Contacts") //no need to read GA Book or other folders
{
for( tmpi = 1; tmpi <= addentrs.Count; tmpi )
{
aentry = addentrs.Item(tmpi);
email =aentry.Address;
document.write(":" +email + <br>);
}}}}
}}
}
-->
</script>
</head>
<body onLoad=javascript:readOutlookContacts()>
</body>
</html>


But take care of IE security settings for activex while running this.

Monday, May 25, 2009

Patch Installation


If you are creating a patch using installshield, you can either create an update.exe or a MSP file. Advantage of creating MSP is that; you can open it in ORCA and see the difference the patch brings out.

But be careful !!!

Never run the MSP by double clicking on it. It will trouble you for sure, you might see some features getting added automatically. You might see a new feature getting installed through patch. You will find a ADDLOCAL = newfeature getting joined to the installation in the MSI install log.

To avoid always use following command for applying the patch.

msiexec.exe /p "\Patch.msp" REINSTALL=ALL REINSTALLMODE=omus

My advice will be is to create Update.exe always if you ever need a MSP you can extract it. So, if you need a MSP out of update.exe; run the exe and search for the msp in temp folder when you are at the PatchWelcome screen.

Search Everything and dont index anything

I was using Google desktop, Copernicus, Windows Desktop search on my laptop for file search. What i have realized is that i dont need them always. Amount of CPU/Mem/Drive it takes for indexing is not worth it.Most of the times, i dont search for my documents on my machine because i know the location it many times.

Documents i get from others are in mails. So i use a tool which searches for documents just by file name, and dont use big indexes and way faster than the native windows file search.

Search Everything can search for files and gives you all the windows shell options. This is one of the Tool i found recently and love using it and reccomend others.

Well for mails i use Windows Desktop Search, because of its seemless integration with outlook. But i make sure that i dont use it for anything other than mails.

Download Search Everything

Launchy - No more start menu navigation

Most of my work begins with Windows+Space key. Thats the shortcut I have assigned for the Launchy tool.
What lauchy does is it indexes shortcuts on your start menu, plus some other applications.
I have bunch of stand alone applications that i use often and i have added this to the indexing catalog. You can type and look for the application, and Launch. Once installed you would never go back to start menu or any applicatoin folder to launch.

I even use it on my development debug folder, So that i dont waste time in looking for an application to launch.

Download Launchy