Tuesday, March 22, 2011

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

Right Window7 For You!




Features



Windows
XP



Windows
Vista



Windows7
Starter



Windows7
Home Basic



Windows7
Home Premium



Windows7
Professional



Windows
Ultimate

Windows search
quickly locates files
and programs to ge
 you started on what
 you want




yes


yes


yes


yes


yes


yes
Easter and easier to launch programs and
find documents you
use most often with pinning and jump
sts






yes


yes


yes


yes


yes
Live thumbnails
 preview of each
open window to
keep track of files
and programs you
are using.








yes


yes


yes


yes
Switch between
users withoutr
 having to login
 and logout.








yes


yes


yes


yes
Connect to other
PC's in your vicinity without a network access device.








yes


yes


yes


yes
Location sensors
 and multiple
moniter support.








yes


yes


yes


yes
Make the things
you do every day
easier through
improved desktop navigation with aero shake and aero peek.










yes


yes


yes
Watch,Pause
,rewind,and
 record TV on
your PC with
Media center


Media Cener Edition Only


yes






yes


yes


yes
Support for
windows multi
 touch enabled hardware










yes


yes


yes
Easily creates
home network
 and connect your pc's to printer with home group.










yes


yes


yes
Personilize you
r pc with aero backgroud
desktop
slide show.










yes


yes


yes
Connect to
company
networks
easily and more securely with
domain join.


pro+


Business+








yes


yes
Unprecendented compatibility
with many
progrmas
designed for
window xp


yes










yes


yes
work in the
 language of
your choice or
switch between
 any of
35 languages.




Ultimate only










yes
Help protect
data on your
 pc and portable storage devices against loss or
theft with
BitLocker










yes


yes


yes

How to Connect Two Computers


Here I am going to explain you how two computers can be commected for the purpose of sharing data or esourses. This will let you share files and folders, printers,etc.

1. Select  a Network Address
Ø  Any network address will do for this purpose.
Ø  IPv4 (IP version. 4) addresses are  like this: xxx.xxx.xxx.xxx (four number groups separated by three dots). Each number ranges from 0 to 255.  The address is divided into two portions: the network portion and the node portion.

Class A
The first number is 1 to 126 (127 is a loop back subnet used to refer back to your NIC card) - (ex. 10.xxx.xxx.xxx)

Class B
The first number is 128 to 191 - (ex. 172.16.xxx.xxx)

Class C

Tthe first number is 192 to 223 - nnn.nnn.nnn.xxx (ex. 192.168.1.xxx)

Multi-casting
The first number is 224 to 239 .

Experimental
Tthe first number is 240 to 255 .

Because IPv4 does not treat multicasting & experimental addresses the same way as other addresses they should not be used.

Ø  The network portion specifies a network; the node portion specifies an individual device on a network.

For any given network:
§  The range of all possible node portion numbers gives the Address Range.
§  The lowest possible address is the Network Address.
This address is used by devices to specify the network itself, and cannot be assigned to any device.
§  Network address is unique
§  The highest possible address is the Broadcast Address.
This address is used when a packet is meant for all devices on a specific network, and cannot be assigned to any device.
§  The remaining numbers in the range are the Node Range.
These are the numbers you can assign to computers, printers, and other devices.
Node Addresses are individual addresses within this range.

2. Connect the two computers .
Ø  To connect with a Crossover cable, simply plug an end of the cable into the Ethernet Port of each computer.
Ø  To connect with a Hub or Switch, use two straight through cables to connect each computer to the switch or hub.

3. Configuring the computers.
 Go to internet options , and go to the dialog box that lets you change the TCP/IP protocol. Change the radio buttons from "Obtain from DHCP server automatically" to "Use the following IP address:".
Ø  Give each computer a different address from the node range. Do not use the network address or the broadcast address.
Ø  Leave the "Default Gateway" and "DNS server" fields blank.
Ø For the subnet mask, use the following:

Class "A" Networks
When the first number is 0 to 127
The Mask is - 255.0.0.0

Class "B" Networks
When the first number is 128 to 191
The Mask is - 255.255.0.0

Class "C" Networks
When the first number is 192 to 223
The Mask is - 255.255.255.0

IPv4 originally used the first number (ex. 192) to determine which part of the address is network and which part is node based on the address class. However, the advent of subnetting and nonclassful networking made it necessary to provide a mask because other ways of dividing the address into network and node portions are now possible.
4. Verify connectivity.
In Windows open the command prompt which is located in the
Start Menu - Accessories - Command Prompt
 and type in: "ping [insert IP address of the other computer here] If you cannot reach the other computers address, try again setting up connection.
Sharing Files
  • To share your files, right click on any folder and choose Sharing to make them shared.
  • You can also do this with your printers to be able to print from one computer while the printer is connected to the other.
Straight Through vs Cross-Over Cable
    • Straight through is a CAT-5, CAT-5e, or CAT-6 Ethernet Cable with the wires connected as follows:

      On both ends: Orange Stripe; Orange; Green Stripe; Blue; Blue Stripe; Green; Brown Stripe; Brown.
    • Cross-over is a CAT-5, CAT-5e, or CAT-6 Ethernet Cable with the wires connected:

      On one end: Orange Stripe; Orange; Green Stripe; Blue; Blue Stripe; Green; Brown Stripe; Brown
      On the other end: Green Stripe; Green; Orange Stripe; Blue; Blue Stripe; Orange; Brown Stripe; Brown

      The above conforms to TIA/EIA-568 standard, however, all that is important for a cross-over to work is for pins 1 & 2 (transmit) to switch places with pins 3 & 6 (receive) on the opposite end. For a strait through pins should be the same on both ends. Color sets (ex. Orange Strip & Orange) mark twisted pairs. Keeping pin sets on the same twisted pair (i.e. pins 1 & 2 on one color set, and pins 3 & 6 on another) allows best signal quality.
    • Note: TIA/EIA standard has not been established for CAT-7 or greater cabling.
  • A cross-over cable is all you need to connect two computers directly.
  • You may use a switch/hub with two Standard "Straight-Through" Ethernet Cables.
  • Many computers can determine if you are using a crossover or straight through cable. If you are not so lucky to have auto-sensing on at least one of the devices connected by a cable, you must use the correct type between them. Computer-to-switch/hub will require a straight through, computer-to-computer a crossover.
  • Check to see if your computer has an Ethernet Adapter in the back of the computer. Most new computers have this. You can tell by the documentation from the computer or by looking at the back of the computer. It looks like a phone jack, but larger, with 8-pins. Do not confuse this with a "modem" jack for dial-up phone service. Phone/modem jacks will have 2, 4, or 6 pins.

Set up VPN Connections in Windows XP


Here I am going  to explain how to set up a VPN connection in Windows XP. These VPN connections allow Windows XP clients to connect to a VPN remote access server. Microsoft VPN uses the PPTP and LT2P network protocols: Here you need Host name and/or IP address of a VPN remote access server.
  1. Open the  Control Panel.
  2. Open the Network Connections item in Control Panel. A list of existing dial-up and LAN connections will appear.
  3. Select  the 'Create a new connection' item from the left-hand side of the window. The Windows XP New Connection Wizard will appear on the screen.
  4. First click Next to begin the wizard, then select the 'Connect to the network at my workplace' item from the list and click Next.
  5. On the Network Connection page of the wizard, select the 'Virtual Private Network connection' option and click Next.
  6. Enter a name for the new VPN connection in the 'Company Name' field and click  Next. The name chosen need not match the name of an actual business.
  7. Select an option on the 'Public Network' screen and click  Next. The default option, 'Automatically dial this initial connection' can be used if the VPN connection will always be initiated when the computer is not already connected to the Internet. Otherwise, select the 'Do not dial the initial connection' option. This option requires that the public Internet connection be established first, before this new VPN connection will be initiated.
  8. Enter the name or IP address of the VPN remote access server to connect to, and click Next. Company network administrators will provide this information.
  9. Select an option on the "Connection Availability" screen and click Next. The default option, 'My Use Only,' ensures that Windows will make this new connection available only to the currently logged on user. Otherwise, select the 'Anyone's use' option.
  10. Click Finish to complete the wizard. The new VPN connection information has been saved.

MESSAGEBOX BOMBER




Here I am going to tell you how you can play pranks with your friend. This progrom is an infinite loop program which opens message box again and again. Victim feels that this is a virus.

@echo off
msg *Hi I am mr. virus.
: fool
msg * Formatting your hard disk.
msg * wait…..
msg * Never mind about me....
msg * Wants to stop me?
msg * I am caring for you.....
msg * start counting from 1 to 5,
msg * 1
msg * 2
msg * 3
msg * 4
msg * 5
msg * I am back!
Goto fool
Solution to this is restart your computer.

Twitter Delicious Facebook Digg Stumbleupon Favorites More

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