InstallShield LE in VS2010 adding obj/release version of exe?

Posted on 2011-10-12
Last Modified: 2013-12-16

I am trying to create an installer using the InstallShield LE in VS2010.
I added the primary output which contains the exe from obj.

Why is it not getting the exe from bin/release folder instead?
If I added .exe file directly from the bin release folder, it complaints that the primary out file is missing.

Question by:dkim18
    LVL 12

    Expert Comment


    If I am understanding your issue and this linked page correctly MS does that by design.

    Why not just manually add the files you know you need?  I have not used the LE version in VS2010 yet, but this was possible in VS2008 when using the Installshield plugin.

    Author Comment

    I also tried adding manually but it complaints that one of primary Out file is missing.
    It looked for the Primary Output files for some reason.
    I spent 4 hours on this to create a simple installer.

    I am just going with the win msi.
    LVL 12

    Expert Comment


    I guess I am not having the same issue...I installed the LE version with VS2010 here, manually chose a single EXE file created by my test Winforms project and added it to the deployment project.  I rebuilt all, ran the install I just created...everything worked fine.

    Not sure where you are trying to add the files to the deployment project, but I just added my single exe file here by hand (not using anything related to project outputs.

    worked ok here...let me know if you still need help.
    LVL 83

    Assisted Solution

    Is your project in Release config or debug config?
    LVL 12

    Accepted Solution

    Doesn't matter, I can point it to whichever output EXE I want.  Here are the steps I followed...

    - Add a winforms project to the solution
    - build in whatever configuration you want/need
    - add new Installshield LE project to the solution (other project types -> Setup and Deployment -> Installshield LE)
    - fill out the stuff under (1) Organize Your Setup as needed (company name etc are in here)
    - under (2) Specify Application Data, double click on Files...on the right hand panel now create your directory structure (I left it default) and right click to add files...browse to the EXE and whatever else you want.
    - Build.
    - Run the install
    - Go find the newly installed app
    - Run the app
    - Done.

    Author Comment

    Under the Application Files page, I use Add Project Outputs button to select Primary output check box.

    I select the Primary output then Resolve Project Output.
    Here I see exe came from the obj folder instead of lease folder.
    When I build it, I select Release option.

    If I dont selec ths Primary output and add exe file individually, it errors out when I try to build the installer project saying something like it is missing Primary output table is missing.
    LVL 12

    Expert Comment

    I think you need to start fresh with the files that are added to the install project.  I would either remove all of the files or else start a new project completely.  By following the steps I provided it should work fine.  Of course you may need some extra dependencies for the program to run once installed, but you probably know what they are already.

    You do NOT want to include the output of the project (I did test this, and it pulled from my obj folder as well).  But it works just fine adding the files manually, so I would do that instead.  I always prefer to take more control of the process when possible and not rely on MS to pick what files go into my installs.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    761 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

    12 Experts available now in Live!

    Get 1:1 Help Now