Solved

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

Posted on 2016-08-31
5
20 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
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.

832 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