Solved

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

Posted on 2013-12-14
4
439 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
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 …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

895 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

11 Experts available now in Live!

Get 1:1 Help Now