Solved

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

Posted on 2013-12-14
4
456 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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 …

739 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