Deploying A C# Application (Visual Studio Setup Project)

Posted by MUKESH KUMAR on 3 Oct 2012


In this tutorial I will show how to deploy a C# application using a standard Visual Studio Setup Project.

Any application must be somehow provided to the end-user. If the application is very small and is composed of a single executable, it can be deployed by just providing the executable to the end user. In our situation, the application has many dependencies, that can or cannot be present on the client machine, so we need to create a setup project, that will install the needed dependencies and the application itself.

Special Tutorial Requirements:
  • Microsoft Visual Studio 2008 ('Setup and Deployment' projects are not available in Express editions)

Let's start.

1. First of all we need to open a C# project/solution (or any other project/solution you have made using one of the programming languages included in Visual Studio). Use 'File -> Open -> Project/Solution' (or Ctrl+Shift+O):

Posted Image

Posted Image

2. After opening a C# project/solution you will get something like this:

Posted Image

3. Now you have to add a setup project to the current solution. Use 'File -> Add -> New Project...':

Posted Image

4. In the 'Project types' list, go to 'Other Projects -> Setup and Deployment' and select the 'Setup Wizard' template:

Posted Image

As you see there are many 'Setup and Deployment' project types and you can create just a blank setup project and customize it by yourself, but in this tutorial I will show how to use the wizard, which is a little bit easier for beginners.

5. Now let's take a deeper look at the wizard.

The wizard is composed of 5 general steps:

Step #1: Initialization

Posted Image

This step is a 'welcome message'.

Step #2: Project Type

Posted Image

In this window you have to select the setup project type. You have four options:

To create a setup program to install an application:
  • Create a setup for a Windows application
  • Create a setup for a web application


To create a redistributable package:
  • Create a merge module for Windows Installer
  • Create a downloadable CAB file

I will use the 'Create a setup for a Windows application', as my C# project is a Windows application.

Step #3: Project Outputs

Posted Image

Here you must select the project outputs you wish to include in your installation package. For my project I select only 'Primary output', which includes the application DLL or EXE.

Posted Image

Step #4: Files to include

Posted Image

Here you have the opportunity to add additional files, like guides, HTML pages or just a ReadMe file. I will add just a ReadMe file:

Posted Image

Step #5: Confirmation

Posted Image

Here you can see the settings for the project that will be created. If you find a mistake or something, you can easily go back and change a specific setting.

6. If the project was successfully created, you will see this:

Posted Image

7. Now you can customize the setup project properties. To access the project properties grid, click on Setup1 project in the 'Solution Explorer' window:

Here are the properties and a short explanation of what they do:

AddRemoveProgramsIcon - Specifies an icon to be diplayed in the Add/Remove Programs dialog.
Author - Specifies the name of the author of an application or component.
Description - Specifies a free-form description for an installer.
DetectNewerInstalledVersion - Specifies whether to check for newer versions of an application on the user's computer.
InstallAllUsers - Specifies whether the package is installed for all users or only the current user.
Keywords - Specifies keywords used to search for an installer.
Localization - Specifies the locale for string resources and the run-time user interface.
Manufacturer - Specifies the name of the manufacturer of an application or component.
ManufacturerUrl - Specifies a URL for a Web site containing information about the manufacturer of an application or component.
PostBuildEvent - Specifies any commands to execute after the build ends.
PreBuildEvent - Specifies any commands to execute before the build starts.
ProductCode - Specifies a unique identifier for an application.
ProductName - Specifies a public name that describes an application or component.
RemovePreviousVersions - Specifies whether an installer will remove previous versions of an application or component.
RunPostBuildEvent - Specifies the condition under which the post-build event runs.
SearchPath - Specifies the path that is used to search for assemblies, files or merge modules on the development computer.
Subject - Specifies additional information describing an application or component.
SupportPhone - Specifies a phone number for support information for an application or component.
SupportUrl - Specifies a URL for a Web site containing support information for an application or component.
TargetPlatform - Specifies the target platform of the installer.
Title - Specifies the title of an installer.
UpgradeCode - Specifies a shared identifier that represents multiple versions of an application or component.
Version - Specifies the version number of an installer, merge module, or .cab file.

8. You can also specify what folders to create on the desktop and in the Start menu:

Posted Image

9. You can also customize the entries that will be added to the registry:

Posted Image

Posted Image

10. You can also customize the file types on the target machine:

Posted Image

Posted Image

11. You can also customize the user interface of the installer:

Posted Image

Posted Image

You can add additional dialogs:

Posted Image

12. You can also customize the custom actions:

Posted Image

Posted Image

13. You can also customize the launch conditions:

Posted Image

Posted Image

14. When you're done with project customizations, build the project (right click on 'Setup1', then select the 'Build' option):

Posted Image

Now you've got a new installation package for your application or component.

This tutorial showed the basics of creating a setup project, so now you can easily deploy your applications to the end-user. 

More aboutDeploying A C# Application (Visual Studio Setup Project)

MySQL 5.5.25

Posted by MUKESH KUMAR


MySQL 5.5.25

MySQL 5.5.25MySQL Community Edition is a freely downloadable version of the world's most popular open source database that is supported by an active community of open source developers and enthusiasts.

MySQL delivers enterprise features, including:

  • Partitioning to improve performance and management of very large database environments
  • Row-based/Hybrid Replication for improved replication security
  • Event Scheduler to create and schedule jobs that perform various database tasks
  • XPath Support
  • Dynamic General/Slow Query Log
  • Performance/Load Testing Utility (mysqlslap)
  • Improved! Full Text Search (faster, new dev templates)
  • Improved! Archive engine (better compression, more features)
  • Improved! User session and problem SQL identification
  • Improved! MySQL embedded library (libmysqld)
  • Additional INFORMATION_SCHEMA objects
  • Faster data import operations (parallel file load)
  • ACID Transactions to build reliable and secure business critical applications
  • Stored Procedures to improve developer productivity
  • Triggers to enforce complex business rules at the database level
  • Views to ensure sensitive information is not compromised
  • Information Schema to provide easy access to metadata
  • Pluggable Storage Engine Architecture for maximum flexibility
  • Archive Storage Engine for historical and audit data

Title: MySQL 5.5.25
Filename: mysql-5.5.25-win32.msi
File size: 31.11MB (32,618,496 bytes)
Requirements: Windows 9x / 2000 / XP / 2003 / Vista / Windows7
Languages: en-US
License: Open Source
Date added: June 15, 2012
Author: MySQL AB
www.mysql.com


Change Log:

# Bugs Fixed
* Performance: InnoDB: Improved the algorithm related to adaptive flushing. This fix increases the rate of flushing in cases where compression is used and the data set is larger than the buffer pool, leading to eviction.
* InnoDB: In a transaction using the REPEATABLE READ isolation level, an UPDATE or DELETE statement for an InnoDB table could sometimes overlook rows recently committed by other transactions. As explained in Section 14.3.9.2, “Consistent Nonlocking Reads”, DML statements within a REPEATABLE READ transaction apply to rows committed by other transactions, even if a query could not see those rows.
* InnoDB: The Innodb_buffer_pool_pages_flushed status variable was incorrectly set to twice the value it should be. Its value should never exceed the value of Innodb_pages_written.
* InnoDB: The error handling and message was improved for attempting to create a foreign key with a column referencing itself. The message suggested a potential problem with the data dictionary, when no such problem existed.
* InnoDB: The CHECK TABLE statement could fail for a large InnoDB table due to a timeout value of 2 hours. For typical storage devices, the issue could occur for tables that exceeded approximately 200 or 350 GB, depending on I/O speed. The fix relaxes the locking performed on the table being checked, which makes the timeout less likely. It also makes InnoDB recognize the syntax CHECK TABLE QUICK, which avoids the possibility of the timeout entirely.
* Replication: It was theoretically possible for concurrent execution of more than one instance of SHOW BINLOG EVENTS to crash the MySQL Server.
* Replication: Statements using AUTO_INCREMENT, LAST_INSERT_ID(), RAND(), or user variables could be applied in the wrong context on the slave when using statement-based replication and replication filtering server options (see Section 16.2.3, “How Servers Evaluate Replication Filtering Rules”).
* Replication: An INSERT into a table that has a composite primary key that includes an AUTO_INCREMENT column that is not the first column of this composite key is not safe for statement-based binary logging or replication. Such statements are now marked as unsafe and fail with an error when using the STATEMENT binary logging format. For more information, see Section 16.1.2.3, “Determination of Safe and Unsafe Statements in Binary Logging”, as well as Section 16.4.1.1, “Replication and AUTO_INCREMENT”.
- Note : Tables using the InnoDB storage engine are not affected by this issue, since InnoDB does not allow the creation of a composite key that includes an AUTO_INCREMENT column, where this column is not the first column in the key.
* SHOW TABLES was very slow unless the required information was already in the disk cache.

More aboutMySQL 5.5.25

WinRAR 4.20 (64-Bit)

Posted by MUKESH KUMAR


WinRAR 4.20 (64-Bit)

WinRAR 4.20 (64-bit)WinRAR is an archiving utility that completely supports RAR and ZIP archives and is able to unpack CAB, ARJ, LZH, TAR, GZ, ACE, UUE, BZ2, JAR, ISO, 7Z, Z archives. It consistently makes smaller archives than the competition, saving disk space and transmission costs.

WinRAR offers a graphic interactive interface utilizing mouse and menus as well as the command line interface. WinRAR is easier to use than many other archivers with the inclusion of a special "Wizard" mode which allows instant access to the basic archiving functions through a simple question and answer procedure.

WinRAR offers you the benefit of industry strength archive encryption using AES (Advanced Encryption Standard) with a key of 128 bits. It supports files and archives up to 8,589 billion gigabytes in size. It also offers the ability to create selfextracting and multivolume archives. With recovery record and recovery volumes, you can reconstruct even physically damaged archives.

Title: WinRAR 4.20 (64-bit)
Filename: winrar-x64-420.exe
File size: 1.58MB (1,656,459 bytes)
Requirements: Windows XP64 / Vista64 / Windows7 64
Languages: en-US
License: Shareware
Date added: June 15, 2012
Author: RARLab
www.rarsoft.com
Homepage: www.rarlab.com


Change Log:

# Changes in RAR compression:
* RAR general compression algorithm is optimized for better utilization of several processor cores. While some speed gain is possible even in single processor mode, best results are achieved in multi-core environment. Speed gain depends on data type and average file size. Several cores are utilized more efficiently when compressing large files.
* we had to increase memory requirements to achieve higher compression speed. General RAR compression algorithm allocates about 120 MB comparing to 40 MB in WinRAR 4.11;
* RAR text compression algorithm cannot utilize several CPU cores efficiently, so its performance in multiprocessor environment is much lower than for general algorithm. Also its decompression speed is much lower than in general algorithm regardless of CPU number. So we decided to disable the text algorithm by default. If you need maximum possible compression ratio for plain text data regardless of speed, you can enable the text compression in "Advanced compression parameter" dialog. Press "Compression..." button on "Advanced" page of archiving dialog to access it. You can also change this option permanently in default compression profile; In the command line mode the text compression can be enabled with -mct switch;
* "Fastest" (-m1) compression mode also supports several processor cores now. In 4.11 it could use only a single processor core.
# RAR general decompression algorithm speed is slightly improved, though not to same extent as RAR compression. RAR decompression is not able to use several processor cores, so its performance does not depend on a number of cores.
# Changes in ZIP compression:
* now ZIP compression supports several processor cores resulting in noticeably higher performance in multi-core environment. Single CPU ZIP compression is also faster than in 4.11;
* memory use for ZIP compression is increased to about 15 MB.
# Recovery volume creating and processing can use several CPU cores resulting in higher speed. Though, typically hard drive seek speed is a limiting factor for recovery volumes, so this gain is most noticeable when working with solid state drive.
# Now the allowed value for -mt switch is 1 - 32, not 0 - 16 as before.
# "Find files" command can search data in 7-Zip archives. Previously "Find files" did not support .7z archive format.
# Windows 2000 is not supported by WinRAR and WinRAR self-extracting modules anymore.
# "Save current settings" button in "Advanced SFX options" dialog is now available only when converting an existing archive to SFX. Options saved with this button are applied only to convert to SFX operation. If you create or update SFX archive, only SFX options stored in default compression profile are used. Options saved in "Advanced SFX options" dialog are ignored for these operations.

More aboutWinRAR 4.20 (64-Bit)

BtProx remote Bluetooth Locking Software

Posted by MUKESH KUMAR

BtProx is a small Windows application working both under Windows XP and Vista. I never tested it under Windows 2000, but there's no reason why it should not work. It locks your computer when you go away from it. How is it done.
It locks on one of your Bluetooth devices which are paired to the the machine. When you walk away from the computer the device is disconnected and the computer is locked after timeout. It is possible to run a single application together with the lock. This application may be your favorite script dismounting network drives, erasing those dirty files from the desktop or anything else. The program sits in Windows tray showing its current status with tray icon and tooltip baloons.

Installation

  1. Just download the binary package (the one without "src" at the end of the file and place it somewhere convient, for example "C:\Program Files". Run it from there.
  2. Pair your device to the computer, if you use this device already with the computer, this step may be skippeed.
  3. Run the program and select your device using "..." button next to "Used device" label
  4. Set the timeout after which the computer will be locked
  5. Click "Start" button
  6. The icon of the program turns orange as soon as the device is found
  7. When the device disappears and the icon turns red, few minutes after Windows will be locked. In order to abort locking it, right-click the icon in system tray and choos "Abort workstation lock"

Screenshots

Main window of the program:
System tray icon screenshot 
This is how the program looks in system tray:
System tray icon screenshot 

Download

Grab the program from here: BtProx download page
Most chances you will need only "btprox.zip" file. Only if you want to hack the source you will need the second file on download page.Questions about the project will be answered in forums or over the email (just send me a messages using SourceForge). SourceForge page

More aboutBtProx remote Bluetooth Locking Software

Ardmax keylogger 4.0 Full cracked including patch and serial

Posted by MUKESH KUMAR on 1 Oct 2012

Ardamax Keylogger 4.0

 






Ardamax Keylogger is a keystroke recorder that captures user's activity and saves it to an encrypted log file. The log file can be viewed with the powerful Log Viewer. Use this tool to find out what is happening on your computer while you are away, maintain a backup of your typed data automatically or use it to monitor your kids. Also you can use it as a monitoring device for detecting unauthorised access. Logs can be automatically sent to your e-mail address, access to the keylogger is password protected. Besides, Ardamax Keylogger logs information about the Internet addresses the user has visited.
This invisible spy application is designed for 2000, XP, 2003, Vista, 7 and Windows 8.



Keylogger Features:
  • Email log delivery - keylogger can send you recorded logs through e-mail delivery at set times - perfect for remote monitoring!
  • FTP delivery - Ardamax Keylogger can upload recorded logs through FTP delivery.
  • Network delivery - sends recorded logs through via LAN.
  • Clipboard logging - capture all text copied to the Windows Clipboard.
  • Invisible mode makes it absolutely invisible to anyone. Ardamax Keylogger is not visible in the task bar, system tray, Windows 2000/XP/2003/Vista/Windows 7 Task Manager, process viewers (Process Explorer, WinTasks etc.), Start Menu and Windows Startup list.
  • Visual surveillance - periodically makes screenshots and stores the compressed images to log.
  • Chat monitoring - Ardamax Keylogger is designed to record and monitor both sides of a conversation in following chats:
    • AIM
    • Windows Live Messenger 2011
    • ICQ 7
    • Skype 4
    • Yahoo Messenger 10
    • Google Talk
    • Miranda
    • QiP 2010
  • Security - allows you to protect program settings, Hidden Mode and Log file.
  • Application monitoring - keylogger will record the application that was in use that received the keystroke!
  • Time/Date tracking - it allows you to pinpoint the exact time a window received a keystroke!
  • Powerful Log Viewer - you can view and save the log as a HTML page or plain text with keylogger Log Viewer.
  • Small size – Ardamax Keylogger is several times smaller than other programs with the same features. It has no additional modules and libraries, so its size is smaller and the performance is higher.
  • Ardamax Keylogger fully supports Unicode characters which makes it possible to record keystrokes that include characters from Japanese, Chinese, Arabic and many other character sets.
  • It records every keystroke. Captures passwords and all other invisible text.
Other Features:
  • Windows 2000/2003/XP/Vista/Windows 7/Windows 8 support
  • Monitors multi-user machines
  • Automatic startup
  • Friendly interface
  • Easy to install

Download Here:-  Ardmax Keylogger 4.0 with Remote Installation

Download Here:-  Patch and Serials

More aboutArdmax keylogger 4.0 Full cracked including patch and serial

Create Homegroup in Windows 8

Posted by MUKESH KUMAR on 30 Sept 2012


In Windows 8, when you connect to a wireless network, it will either register it as a Public network or a Private network. Private networks are basically home and work whereas private is anywhere else. Sometimes Windows 8 detects a private network as a public one and vice versa. You can manually make some changes to ensure that you are not accidentally sharing either too much on a public network or blocking all sharing on a private network.
First, right-click on the network icon in the Windows 8 system tray and click on Open Network and Sharing Center.
network sharing
Here you will see the network you are connected to and what type of network Windows 8 has identified it as.
private network
As you can see above, my network is considered a Private network, which is correct since I’m at home and connected via Ethernet. If this is incorrect, there are a couple of things you can do. First, you can click on Change advanced sharing settings in the left-hand pane.
change sharing settings
Click on Private and then make sure you have these options enabled:
- Turn on network discovery
- Turn on file and printer sharing
- Allow Windows to manage homegroup connections
network sharing
Then collapse Private and expand Guest or Public and make sure you have these options set:
- Turn off network discovery
- Turn off file and printer sharing
public network
Once you have done this, you then need to go to the Windows 8 desktop and open the Charms bar. Click on Settings and then click on the Network icon.
network settings
You’ll see Network and then Connected. Go ahead and right-click on that and choose Turn sharing on or off.
turn sharing on
Now choose Yes if you want your network to be treated like a private network and no if you want it to be treated like a public network. Note that the label Private or Public may remain the same in Network and Sharing Center, but once you choose the sharing settings manually, the network will have the appropriate settings applied.
turn sharing off
As a last resort, if you really can’t stand that the label is Public when the network is actually private, you can manually change the network location using a tool called secpol.msc. Click on the Start Screen, then right-click and choose All apps, then click on Run. Type in secpol.msc into the run dialog box.
run dialog
Then click on Network List Manager Policies at the left and on the right-hand side you should see a couple of items with descriptions and then something called Network, which is the current network you are connected to. It may also be called something else, but it doesn’t have a description.
network list manager policies
Double-click on it and click on the Network Location tab. Here you can manually change the network location from Private to Public and vice versa.
network location
That’s about it! Not the easiest thing in the world, but it’s Microsoft! If you are having problems with changing network locations in Windows 8, post a comment here and we’ll help. Enjoy!
More aboutCreate Homegroup in Windows 8

Change from Public to Private Network in Windows 8

Posted by MUKESH KUMAR


In Windows 8, when you connect to a wireless network, it will either register it as a Public network or a Private network. Private networks are basically home and work whereas private is anywhere else. Sometimes Windows 8 detects a private network as a public one and vice versa. You can manually make some changes to ensure that you are not accidentally sharing either too much on a public network or blocking all sharing on a private network.
First, right-click on the network icon in the Windows 8 system tray and click on Open Network and Sharing Center.
network sharing
Here you will see the network you are connected to and what type of network Windows 8 has identified it as.
private network
As you can see above, my network is considered a Private network, which is correct since I’m at home and connected via Ethernet. If this is incorrect, there are a couple of things you can do. First, you can click on Change advanced sharing settings in the left-hand pane.
change sharing settings
Click on Private and then make sure you have these options enabled:
- Turn on network discovery
- Turn on file and printer sharing
- Allow Windows to manage homegroup connections
network sharing
Then collapse Private and expand Guest or Public and make sure you have these options set:
- Turn off network discovery
- Turn off file and printer sharing
public network
Once you have done this, you then need to go to the Windows 8 desktop and open the Charms bar. Click on Settings and then click on the Network icon.
network settings
You’ll see Network and then Connected. Go ahead and right-click on that and choose Turn sharing on or off.
turn sharing on
Now choose Yes if you want your network to be treated like a private network and no if you want it to be treated like a public network. Note that the label Private or Public may remain the same in Network and Sharing Center, but once you choose the sharing settings manually, the network will have the appropriate settings applied.
turn sharing off
As a last resort, if you really can’t stand that the label is Public when the network is actually private, you can manually change the network location using a tool called secpol.msc. Click on the Start Screen, then right-click and choose All apps, then click on Run. Type in secpol.msc into the run dialog box.
run dialog
Then click on Network List Manager Policies at the left and on the right-hand side you should see a couple of items with descriptions and then something called Network, which is the current network you are connected to. It may also be called something else, but it doesn’t have a description.
network list manager policies
Double-click on it and click on the Network Location tab. Here you can manually change the network location from Private to Public and vice versa.
network location
That’s about it! Not the easiest thing in the world, but it’s Microsoft! If you are having problems with changing network locations in Windows 8, post a comment here and we’ll help. Enjoy!
More aboutChange from Public to Private Network in Windows 8

Android Apps Now on PC

Posted by MUKESH KUMAR on 28 Apr 2012



Run your own android applications on pc through bluestack 





More aboutAndroid Apps Now on PC