| Home | My Account | Directories |
NSIS - How to Write the Uninstaller
Published on 2011-08-12 13:51:00
If you know how to create an installer using NSIS, you'll probably want to know how to create the uninstaller too :) So you have to write a section named "Uninstall" inside your .nsi script file. section "Uninstall" SetShellVarContext all Delete "$DESKTOPYour Application.lnk" RMDir /r "$SMPROGRAMSYourApp" RMDir /r "$INSTDIR" Delete $INSTDIRuninstall.exe DeleteRegKey HKLM
NSIS - How to Embed Other Installers in Your Installer
Published on 2011-07-15 12:11:00
Sometimes you may want to embed some other installer in your installer. As an example if you need Java as a prerequisite then you can embed Java installation inside your installer. Then it will run the Java installation before installing your application, when you run your installer. So let's write a section to embed JRE installer in your installer Section "jre" SECJRE File "jre-6u14-
NSIS - How to Detect Whether Java is Installed in the System
Published on 2011-04-28 10:37:00
While writing my installer I wanted to install JRE (embed JRE installer in my installer) only if Java is not installed already. So I had to detect whether Java is already installed. My previous post on NSIS points to a quick start guide (in Harshani's blog) for NSIS, including how to install NSIS and how to write a simple installer. So at this point you should have installed NSIS and been
Nullsoft Scriptable Install System (NSIS) - A Really Good Windows Installation System
Published on 2011-04-14 14:25:00
I wanted to write an installation for IFRI data entry application which is currently being used to enter forest data to their database. The existing installation had some inconsistencies like users had to install the other required software themselves, some permission issues etc. So I had to search for a pretty stable installation system with all those features I wanted. While searching I found
How to Print from Java (JPS) - javax.print Package
Published on 2010-10-18 09:51:00
javax.print package is available in JDKs 1.4 and above. Formerly Java AWT printing API was used to perform basic printing and now it is enhanced with advanced options like printer service discovery, in javax.print API. I am posting a simple example showing how to perform a basic print using javax.print API. import java.io.*; import javax.print.*; public class PrintTest { public static void
How to Fetch MP3 from YouTube Videos
Published on 2010-09-06 12:35:00
I found a nice site to fetch mp3s from YouTube videos. The process is pretty simple and fast. Check it out, you'd love it.
How to Find which Process Runs on which Port in Windows
Published on 2010-08-13 13:50:00
netstat -ab shows which process runs on which port. If you need to find a process which runs on a particular port, the command can be used as follows netstat -ab | find ":8080 "
How to Remove Duplicate Records from a Table, Considering a Subset of Columns - Sql
Published on 2010-08-09 15:38:00
I wanted to delete some duplicate records from a table. "Duplicate" doesn't mean identical records in this scenario. I wanted to check whether the values in a subset of columns are identical and if so, to remove additional records keeping just one record in the table. Let's assume we have a table called Person like below IdNameAgeCity 10Sunil24Matara 11Sandun25Colombo 12Nimali23Matara
How to merge multiple images into one image - Java ImageIO
Published on 2010-02-27 01:44:00
My previous post shows how to split an image into chunks. Now let's see how to merge multiple images into one image. Say we need to concatenate following four image chunks. I got these chunks by splitting the image in the right hand side, using the image splitter. Following code shows how to concatenate the image chunks above into one image. int rows = 2; //we assume the no.
How to Split an Image into Chunks - Java ImageIO
Published on 2010-02-23 16:32:00
Image splitting and concatenating and other image manipulation techniques are important in parallel computing. Say we are receiving small chunks of an Image which is being manipulated parallely. In such scenarios, we need to concatenate those chunks together and vice versa. There is a pretty straight forward way to split an image using Java imageio package. Say you need to split following image