Solved

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

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

828 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