Solved

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

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

I have been scripting applications way too long and can never remember how to create an ISS file.  So I decided to write this article to act as my own knowledge base for future reference, and hope you will also benefit. An ISS file is a response …
If you don't know how to downgrade, my instructions below should be helpful.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

910 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now