Solved

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

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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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 …
Progress
Suggested Courses
Course of the Month6 days, 23 hours left to enroll

622 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