July 2, 2012

How to set Focus on your Installer dialog?

When we run an installer, sometimes the control switches between your installer and other application's screen, which might shift the focus from the installer dialog.

Here is how you can make sure to stay on top of your installer dialog unless you swtich explictly.

Call the function - SetInstallerDlgFocus(), before invoking each dialog, so that your installer will be always available in the foreground.

// Included header files
#include "WinApi.h"  // Required to Make Win32 API Calls

// Function declaration
prototype SetInstallerDlgFocus();

// Function definition
///////////////////////////////////////////////////////////////////////////////
//  FUNCTION:   SetInstallerDlgFocus
//  Purpose:    Bring window to the foreground. 
///////////////////////////////////////////////////////////////////////////////
function SetInstallerDlgFocus()
    HWND hDialog;
begin
      hDialog = GetWindowHandle(HWND_INSTALL);
      SetForegroundWindow(hDialog);
end; // end of SetInstallerDlgFocus


[Note: This applies to InstallScript MSI and Pure InstallScript type projects.]

June 28, 2012

Custom Action Types - Simplified

The following table categorizes the basic types of custom actions
Custom Action Types

SCM Tools -> A Comparison


This article focuses on a high level comparison of Source Control Management Software like TFS, Seapine Surround, Subversion and Git 

SCM Tools Comparison


The above table is based on my understanding and any suggestions / comments are welcome.

May 10, 2012

Windows 7 Useful shortcuts

Ctrl + Shift + Right Click

  
          Get options for ‘Run as administrator’ and ‘Run as Different user’
          
This is useful to login to TFS as different user.
Thanks to Praveen for sharing this idea!

Shift + Right Click

       Increased options on right click. Give option to,path
·         Open in New Process
·         Open Command window for the path[Useful in day to day tasks]
·         Copy the

Ctrl + Shift + Escape

       Opens the ‘Task Manager’ directly

Windows-botton + Pause


      Opens ‘System Properties’ 

Shift + Click on Taskbar item


       Opens a new instance of the program 

Windows-button + Number

       Opens the programs available in the taskbar

 Ctrl + Shift + N

       Creates a New folder in the active window

May 2, 2012

Windows 7 Usefull Shortcuts

Ctrl + Shift + Right Click


         
Get options for ‘Run as administrator’ and ‘Run as Different user’
         
This is very handy when you want to login to TFS as different user.
         
Thanks to Praveen for sharing this
idea!

Ctrl + Shift + Escape
          Opens the ‘Task Manager’ directly

Windows-botton + Pause


         Opens ‘System Properties’ 

Shift + Click on Taskbar item


         Opens a new instance of the program
Windows-button + Number
        Opens the programs available in the taskbar
 Ctrl + Shift + N
        Creates a New folder in the active window

Shift + Right Click

 
                ·         Open in New Process
               
·         Open Command window for the path[Useful in day to day tasks]
               
·         Copy the path