Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 17-08-2008, 02:01 PM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Mar 2008
Posts: 20
Default How to create setup file using Visual Studio 2005


I am using Visual Studio 2005.I am learning Visual Basic.
And today I made a very simple project.I also created .exe file. But
it does not run in other computer where Visual Studio is not installed.
I want to run it on the computer where Visual Studio is not installed.
And I also want to create its set-up file like the one of commercial
software.
Please tell me step by step guidance as to how to do so....
Adam Cruge1 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 17-08-2008, 04:38 PM   #2 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: How to create setup file using Visual Studio 2005

Wherever you deploy it, the host machine NEEDS the .NET runtime library available. Matching the version your project was built for/with.
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 17-08-2008, 05:48 PM   #3 (permalink)
Rubik's Uncle!!
 
Charan's Avatar
 
Join Date: Sep 2004
Location: ಬೆಂಗಳೂರು (Bengaluru)
Posts: 3,785
Default Re: How to create setup file using Visual Studio 2005

Quote:
Originally Posted by Adam Cruge1 View Post
I am using Visual Studio 2005.I am learning Visual Basic.
And today I made a very simple project.I also created .exe file. But
it does not run in other computer where Visual Studio is not installed.
I want to run it on the computer where Visual Studio is not installed.
And I also want to create its set-up file like the one of commercial
software.
Please tell me step by step guidance as to how to do so....
first off .. the target system requires .NET framework to be installed. As you are doing the project in VS 2005, the target system requires .NET framework 2.0 to be installed.

Visual studio has the built in feature to create deployment (setup) project to be added to a existing project.

Here are the steps.
1.First open your windows application project.
2. Goto File> Add > New Project
3. Select Other Project Types > Setup Project.
Give the project a suitable name i.e., the name you require to be displayed in add remove programs.

Now a new setup project is added into your solution.

4. The File System Editor should have opened. if not then open it by using View > Editors > File System
5. Now you will have to add the project output to the application folder.
Right click on Application Folder > Add > Project Output.Select Primary output and click ok.

5. If you want to put a shortcut to the desktop or to the program menu then right click on the project output the click "create shortcut to...." . Drag this into the "User's Desktop" or to the "User's Program Menu"

6. Now we need to enter the user information.
Select the setup project and press F4 to open the properties window.
You will see many user definable properties like Author, manufacturer etc etc.. Just enter the details as per your wish.

7. Now if you want to bundle .NET framework with the setup then go to
Project > Properties. > prerequisits , Check .NET framework 2.0.
Select "Download prerequisits from the same location as my application. Click OK.

8. Once the above things are done you can just right click on the setup project and click Build or Rebuild. This will generate the nessary setup file for your project to be deployed.

You can copy the setup files from
Your Solution\Your setup project\Release\

There will be two files. One is .MSI and other is Setup.EXE then there will be a folder which has the .NET framework, setup.exe is a bootstrap executable, that means it will run on any system which doesnt have the prerequisits installed. If the system doesnot have .NET framework the the setup will automatically install it.

DONOT run the installer from the .MSI it doesnot detect if the system has .NET framework or not.. always run the setup.exe.

Also it will be a good idea to include Windows Installer 3.1 in the prerequisits as its nessary for .NET framework installer.

Hope you understood this.
__________________
i5 2400 | DH67BL | G.Skill Ripjaw 4 GB | FSP SAGA II 500W | CM 430 Black Elite | MSI R6850 Cyclone PE/OC | XBox 360 Controller | 21.5" Samsung Sync Master 2233 | 4 Mbps @75GB FUP :)
Battlefield 3 Multiplayer Discussion | Battlefield 3 Low Latency Servers List
Charan is online now  
Old 17-08-2008, 10:13 PM   #4 (permalink)
Dreamweaver
 
Gigacore's Avatar
 
Join Date: Aug 2006
Location: Bangalore
Posts: 3,904
Default Re: How to create setup file using Visual Studio 2005

+1 for charan, but

why don't u use free/shareware setup creators like InstallAnywhere and create install etc and include .NET framework install file along with the setup file and guide users to install .NET Framework before installing the original program ?
__________________
Today's noobs are tomorrow's geeks. Don't make fun of them.. encourage them. - Gigacore

Follow me on twitter.com/gigacore
Gigacore is offline  
Old 17-08-2008, 11:39 PM   #5 (permalink)
Rubik's Uncle!!
 
Charan's Avatar
 
Join Date: Sep 2004
Location: ಬೆಂಗಳೂರು (Bengaluru)
Posts: 3,785
Default Re: How to create setup file using Visual Studio 2005

^^ I havent use any other setup programs.. One of the feature of the setup project in VS.NET is that it can detect the dependencies automatically and include the required assemblies. Also the setup.exe can download the prerequisits from the internet/local or from any 3rd party location.

I will have to try using other tools and see if any are better
__________________
i5 2400 | DH67BL | G.Skill Ripjaw 4 GB | FSP SAGA II 500W | CM 430 Black Elite | MSI R6850 Cyclone PE/OC | XBox 360 Controller | 21.5" Samsung Sync Master 2233 | 4 Mbps @75GB FUP :)
Battlefield 3 Multiplayer Discussion | Battlefield 3 Low Latency Servers List
Charan is online now  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET Development Problem in Visual Studio 2005 Krazy_About_Technology Programming 1 06-02-2008 09:38 PM
Visual Studio 2005 midhunmon Software Q&A 8 22-01-2008 12:49 PM
Free MS SQL 2005 and Visual Studio 2005 from M$ rakeshishere Technology News 2 24-09-2006 03:24 PM
visual studio 2005 beta mad_psychic_bastard QnA (read only) 2 16-10-2005 01:30 PM

 
Latest Threads
- by Sujeet
- by clmlbx
- by Sujeet
- by icebags

Advertisement




All times are GMT +5.5. The time now is 11:10 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2