Sunday, July 27, 2008

Do you know Jason Bourne If not then you should.

This is the finishing track of bourne series movies(Extreme ways by Moby)




Extreme ways are back again
Extreme places I didn't know
I broke everything new again
Everything that I'd owned
I threw it out the window came along
Extreme ways I know will part the colors of my sea
It's a perfect colored sea
Extreme ways that help me
They help me out late at night
Extreme places I had gone
But never seen any light
Dirty basements, dirty noise
Dirty places coming home
Extreme worlds alone
Did you ever like it then?
I would stand in line for this
There's always room in life for this
Oh babe, oh babe
Then it fell apart, it fell apart
Oh babe, oh babe
Then it fell apart, it fell apart
Extreme sounds have told me
They held me down every night
I didn't have much to say
I didn't give up the light
I closed my eyes and closed myself
And closed my world and never opened up to anything
That could get me at all
I had to close down everything
I had to close down my mind
Too many things could cut me
Too much can make me blind
I've seen so much in so many places
So many heartaches, so many faces
So many dirty things
You couldn't even believe
I would stand in line for this
There's always room in life for this
Oh babe, oh babe
Then it fell apart, it fell apart
Oh babe, oh babe
Then it fell apart, it fell apart

Hold me, oh babe

Oh babe, oh babe
Then it fell apart, it fell apart Oh babe, oh babe
Then it fell apart, it fell apart Oh babe, oh babe
Then it fell apart, it fell apart
Oh babe, oh babe
Like it always does, (always does), always does (always does)


Might be downloaded from here

Bourne is great

Thursday, July 24, 2008

I was trying to add an uninstall button to a setup project such that, when a user installs the application the uninstall option will also appear in the programs menu of user. The setup project was in vs.net 2003.

There was no direct way i found, two ways that came by googling

a. making a bat file that will uninstall the application

1. Create a "Uninstall.bat" and include the following line:
msiexec /x {your product code}
(Replace the "your product code" with your product code GUID.)This product id is found by going into the properties of the setup project

2. Add the BAT file to your application folder of setup project.
3. Add a shortcut in Users Programs Menu that points to the BAT file.
4. Set the "ShowCmd" property of the shortcut to "vsdscMinimized".This will minimize the bat window which sometime may feel annoying.
You can do other staffs like adding icon and rename it according to your needs. This

More info

b.Another way was to make a project that uninstalls application, this was a simple c# project

This is how they did it.
1. Create simple project UninstallApp.
2. Add in Main()

{
string[] arguments = Environment.GetCommandLineArgs();

foreach(string argument in arguments)
{
string[] parameters = argument.Split('=');
if (parameters[0].ToLower() == "/u")
{
string productCode = parameters[1];
string path = Environment.GetFolderPath(Environment.SpecialFolder.System);
Process proc = new Process();
proc.StartInfo.FileName = string.Concat(path,"\\msiexec.exe");
proc.StartInfo.Arguments = string.Concat(" /i ", productCode);
proc.Start();
}

}


3. Create new setup project
4. Add UninstallApp.exe to "Application Folder" in 'File System' part
5. In "User's Program menu" create shortcut to UninstallApp.exe and in properties of this shortcut in parameter 'arguments' insert value "/u=[ProductCode]".
6.Rebuild deployment project.

More Info

Tuesday, July 22, 2008

Integrating paypal to your site is easy, and they have a rich developer site to support your work. here are some links that will come handy

To start developing paypal related things first sign up in here
http://developer.paypal.com

From here you can create several dummy accounts of type business or personal and with any amount balance you wish.

Paypal also has an integration center which can help you integrate paypal with your site
https://www.paypal.com/IntegrationCenter/ic_home.html

From integration center you can get codes for buy now buttons, you can add shopping cart of your own or shopping cart provided by paypal and many more things.

During testing remember to change the different post data of paypal to this location
"https://sandbox.paypal.com" anywhere you find "https://www.paypal.com". And when you are done with testing make those to point to https://www.paypal.com

Paypals Instant Payment Notification is a great utility i found, it calls a script of you whenever a payment is made, then you can do processing like saving it in db or mailing info to somebody etc.

Enough for today