Solved

VB2008 WPF Browser Application deployment on a different computer from where the application was initially created

Posted on 2013-12-14
4
435 Views
Last Modified: 2013-12-19
Hello,

I am new VB 2008 (actually new to VB coding itself), we are using it develop a utility program for DataPower. Anyways, I installed VB 2008 and created a WPF Browser application. After initially creating a few controls on the form,

1. I selected Publish option
2. On the Publish wizard, for the question - How will users install the application, I selected "From a CD/DVD"
3. Finished publishing it.

In the publish folder, there are two files - .xbap file and a folder called "Application Files". Double clicking on the .xbap file is opening up in Internet Exp and the form is showing.

Now, if I want to open this .xbap on a different computer, what do I need to do? Isn't there any open of creating a .EXE like the classic vb?

TIA,
Jay
0
Comment
Question by:Jammerules
  • 2
  • 2
4 Comments
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 39719543
xbap is similar to exe in that you can just double click it and it will run on Windows. It will probably open in Internet Explorer on the other computer too (that is the default). If it is Windows XP, you may need to install the .NET framework 3.0 (or later). If it's Vista or 7 or beyond, then it should just work (the .NET framework is already installed).
0
 

Author Comment

by:Jammerules
ID: 39719550
Does xbap need any dependent files to go along with it to the other computer in order to run? Apparently, it does and it is also making sure that the path I mentioned during publish is what needs to be available on the other computer. It doesn't quite work the way an exe does :(
0
 
LVL 37

Accepted Solution

by:
TommySzalapski earned 500 total points
ID: 39719583
To be fair, many exe files require certain dlls or other files in order to run properly. The publish option "Install from CD/DVD" should set it up so that when you run it on another computer, it will set up all the folders and files for you (much like the way exes install). So yes, you do need those other files, but exes often do too and it's going to do most of the work for you automatically.
You could turn your WPF Browser Application into a regular WPF application (with an exe and everything). Most of the code would be the same; however, I think if you try it out, you'll see that it's not too bad.
WPF Browser Applications are safer because they can't mess with the main OS filesystems so your applications won't look like viruses and you won't be able to write bugs that really mess up the user's computer.
0
 

Author Closing Comment

by:Jammerules
ID: 39730116
Thanks!
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
This is an explanation of a simple data model to help parse a JSON feed
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now