C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




need suggestion reguarding a s/w package done in VB.NET


Posted Date: 13 Aug 2008      Total Responses: 2

Posted By: G.Hemadribabu       Member Level: Gold     Points: 1


Good mornign to one and all

Hi friends, kindly give me a suggestion for a doubt i have,

I had done a programm in VB.NET where inmy system the .net framework is been installed, Now my programm is to be shown to other person's system where that new system is not having .Net framwork installed, or any DB installed,

Now is there any possiblities to install the same in the new system where i need to see the o/p screens.

How todo it, few of my friends has told me that it can be converted to .exe and can save it to that new system , i had tried but it is not working

Why i shoudlnt install the .net framework to new system is , the .net framework which i got is an individual system's licence, so if i want i want to priate it, where tht shoudl nt be done,

so i am asking ua solution is it possible,

pls give me a right solution

thankyou

hemadribabu





Responses

Author: veena    13 Aug 2008Member Level: SilverRating:     Points: 6
The following i took from dotnetspider only,i used the same 2 yrs back,this is the article by sauravroy in 2006,pls check whethet this will be helpful for you.
DEPLOYING APPLICATION:

Once an application is developed and if we want to distribute that application, we need to deploy that. Deployment is the process where we create an executable file which can be installed on any machine where the application can run. We can use the built-in deployment feature that comes with Visual Basic to create a Windows Installer file - a .msi file for the purpose of deploying applications.
Let's look at the process with an example. Let's assume we have a form with a TextBox and a Button. When the Button is clicked the TextBox should display "This application is Deployed". Let's name this application as Deploy. The code for the click event of the Button looks like this:
[SAMPLE CODE]
as System.EventArgs)Handles Button1.Click
TextBox1.Text="This application is Deployed"
End Sub >
Next, we need to create an executable (exe) file for this application. To do that select Build->Build from the main menu which builds Deploy.exe. Next, we need to create an installer file for Deploy (which is the example) which is a file with .msi extension. To do that, select File->Add Project->New Project which opens the new project dialogue. Select "Setup and Deployment Projects" icon in the projects type box and Setup Wizard in the templates box.
Click OK to open the Setup Wizard.
Click next on the above pane to take you to second pane in the Wizard. The new pane allows us to create deployment projects both for Windows and Web Applications. Here, select the radio button which says "Create a setup for Windows Application" as this is deploying a windows application and click next.
Clicking next opens a new pane which has options like Deploying only primary output from the project or both the project and source code or content files. Check the checkbox which you want, in this case check the checkbox that says "Primary Output from Deploy" and click next.
Clicking next opens a new pane which asks if you want any additional files to be added. If you wish, you can include other files, like an icon for the application. In this example don't include any files and click next.
This window allows us to create shortcuts to the application on the desktop and in our Programs Menu. To create a shortcut, right-click on the folder "User's Desktop" and select "Create Shortcut to User's Desktop". Rename the shortcut to "Deployment". If we want a shortcut to the application from our Programs Menu, right-click on "User's Program Menu" folder and select "Create Shortcut to User's Program Menu". Rename the shortcut to "Deployment". Once you are finished with it, click on "Application Folder" and open it's properties. In the properties window set the property "Always Create" to True. Set the same for "User's Desktop" and "User's Programs Menu" folders. If you want any additional information to include with the set-up project, like the manufacturer, author etc, click on Setup1 project and open it's properties. You can set additional information here. Once your are done with it build the project by right-clicking on Setup1 and selecting Build. This builds the application. The setup file is created in the debug folder of Setup1 project.

DEPLOYING APPLICATIONS

To deploy the application we need to copy Setup1.msi file to the target machine. Once copying is done,
double-click that file which opens the Windows Installer which is a new window which says "Welcome to Setup1 Setup Wizard".
Click next to move to next window which allows us to specify the location where the application should be installed.
Select the location for installation and click next. Clicking next installs the application.
Now, double-click the newly installed Deployment.exe file to run and get the desired result. You can select that from your Programs Menu or Desktop. That completes the process of Deploying Applications.
Make sure the Target Machine on which the application will be installed supports Windows Installer and .NET Framework.

XCOPY DEPLOYMENT

In addition to the deployment tools included in Visual Studio .NET there are other alternative methods for deploying applications. In most cases, the deployment tools provide more robust installation. For some simple cases the alternative methods may be adequate.
XCOPY-deployment enables applications to be deployed to client machines simply by copying files into the desired application directory. With this method no complicated setup scripts or interactions with the system registry are required. In addition, the auto-downloading of applications for Windows makes the deployment of rich Windows-based applications as easy as deploying a Web page.



Author: Mathew Philip    13 Aug 2008Member Level: GoldRating:     Points: 6
Hello,

We need proper .net frame work to run our .net application, because in our programs we are using references to various classes ( builtin functionalities ) in the .net frame work.

You can copy your .exe file from your projects bin\Debug folder and paste it into the new machine, install a database runtime like SQL Express ( freeware ) and restore your database there it will work smoothely..

if you want to delever it as a setup to deploy.. then you can add the .net framework and SQL express to your setup ...the setup will deploy .net framework, SQL express or your database program and your application in the other machine..

To create a setup from visual studio 2005:
Go to File > New Project > Other Project Types > Setup and Deployment > Setup project .. the follow the instructions... visual studio will create Setup.exe for you..



Post Reply
You must Sign In to post a response.
Next : how to arrange columns in datagrid
Previous : Dropdown autopostback in C#
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

web conferencing

Contact Us    Privacy Policy    Terms Of Use