Archive for January 2015

C# Open File Dialog

            // Configure open file dialog box 
            Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog();
            dlg.Title = "Select File"; // dialog title
            dlg.FileName = ""; // Default file name 
            dlg.DefaultExt = ".csv"; // Default file extension 
            dlg.Filter = "CSV File (.csv)|*.csv|All Files (*.*)|*.*"; // Filter files by extension 

            // Show the dialog and process result
            if (dlg.ShowDialog() == true)
            {
                string filename = dlg.FileName;
            }

Installing Inno Installer

Detailed below is the procedure for installing Inno.

  • Download the setup file. I will be installing version 5.5.5 http://www.jrsoftware.org/download.php/is.exe
  • Select your language from the combo box and then click okinno1
  • Click the Next button on the welcome screen.inno2
  • Select Accept and then click the next buttoninno3
  • Change the install location if required and then click the next button.inno4
  • Change the start menu icon location if required and then click the next button.inno5
  • Click Next button to to install the preprocessor. inno6
  • Enable the additional settings if required and then click the next button.inno7
  • Click the install button to start the installation.inno8
  • Click the finish button to complete the install.inno9