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
Solved

C# WiX Installer - EXE is not running as app after install

Posted on 2016-08-31
5
21 Views
Last Modified: 2016-09-07
I created an Install with WiX.  It creates the directory and copies the EXE and all the DLL's where I want it to.  However, when I run the applicatino.EXE it does not run as an APP.  Instead it runs as a background process.  If I copy the code from my .NET Bin directory to the location where the app is created the EXE runs just fine.

Anyone have any ideas?
0
Comment
Question by:CipherIS
  • 3
  • 2
5 Comments
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 41779056
How do you run it - by hand (or shortcut) ? or it's started by the installation in the end?
0
 
LVL 1

Author Comment

by:CipherIS
ID: 41780084
I just double click on the exe.  It's not a shortcut.  I go to the program files where it is installed.  I took and ran heat and generated a wxs file to see if that would make a difference.  Still having the same problem.

This app has Infragistics and Crystal Reports.  It installs and uninstalls with no problem.

I wrote a small windows app and have no problems with that app.
0
 
LVL 1

Accepted Solution

by:
CipherIS earned 0 total points
ID: 41780169
I figured out the issue.  Needed to set the appname.exe as "run as administrator".  Do you have any idea how to do that via Wix?
0
 
LVL 40

Assisted Solution

by:Vadim Rapp
Vadim Rapp earned 500 total points
ID: 41780442
Add manifest to your project (the C# one, not WiX), and specify requestedExecutionLevel.
0
 
LVL 1

Author Closing Comment

by:CipherIS
ID: 41787487
Setting exe as run administrator provided results i was looking for.
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

809 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