Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7894511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:24:56+00:00 2026-06-03T07:24:56+00:00

I just completed my application development efforts on a D2D1 application using Visual Studio

  • 0

I just completed my application development efforts on a D2D1 application using Visual Studio 2010 IDE in C++. I was exploring different ways of creating a package from this and used the built-in Visual Studio installer/setup. The setup project compiled smoothly and an install file was created. I was also able to successfully install the application according to my requirements. However, when I install it in the default location (which would be my preferred location – C:\Program Files(x86)), the application refuses to launch. Here is the debugging I was able to do so far:

  1. Installed in C:\Program Files(x86): Application does not launch normally.
  2. Installed in C:\Program Files(x86): Application launches when “Run as administrator”
  3. Installed in a location other than %ProgramFiles% or %ProgramFiles(x86)%: Application launches normally without having to “Run as administrator”.

I have tried cornering the error cases, but don’t have anything conclusive or convincing so far, which is why I am seeking the experts help here. What I have done further:

  1. Used Dependency Walker x86 version to figure out where/what the dll calls are through the profiler. It did not provide me with anything concrete – depends.exe believes my application has delay-load dependent modules GPSVC.dll and IESHIMS.dll and I am fairly certain that I don’t need those. The profiler also indicates a CRT 0xC0000417 error – but it is difficult for me to say if it is related at all.

  2. I do have a manifest defined for my visual styles as a pragma. Removing this did not help.

  3. If this helps – my C++ project manifest file options in the Linker settings looks like this:

    • Generate Manifest – Yes
    • Allow Isolation -Yes
    • Enable UAC – Yes
    • UAC Execution level – As invoker
    • UAC Bypass UI Protection – No
  4. I have converted all CRT functions to it’s secure version (sprintf -> sprintf_s) as recommended by MSDN documentation. Is this even related here?

  5. I have tried simply copying the .exe to %ProgramFiles(x86)%. It did not help – so it appears that my installer is not the one creating the problem.

  6. I use _dupenv_s in several places within the code to retrieve %COMSPEC% , %TEMP% etc.

Any pointers to how I can proceed further with the debug is highly appreciated. I did read around about this and some experts suggest incorrect string handling or large or invalid directory names; but I don’t see that as relevant in my case since the issue is unique to launching the application normally under %ProgramFiles(x86)% .

Other details:
* OS Windows 7 – 64 bit, Vista with latest SP – 32 bit
* Visual Studio Professional 2010, C++ Project with .Net client profile target
Visual Studio Installer; Target platform 32 bit
* Nature of application – Direct2D based

Pardon me if I did not use the correct technical terms. I am a novice in application deployment.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T07:24:58+00:00Added an answer on June 3, 2026 at 7:24 am

    That is correct Viswanathan, you cannot write to Program Files/Program Files(x86) if you are not running from an elevated process.

    If your application needs to write custom settings in a file when it is launched you should create a dedicated folder for it under CommonAppDataFolder

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just completed an application for my final year project and I need
i just completed a web based chat application based on ajax/php. But the problem
Currently we are doing a payroll application in Microsoft Visual Studio 2008 (.Net 3.5)
the development.log in my application has never worked since the beginning of creating the
We have just completed implementing a successful but problematic project. We want to get
Not that level of failure indeed. I just completed the 4 part tutorial from
I am new in this community. I just completed my Btech in Computer science,
I just reinstalled Windows 7 and I am trying to get my development environment
I've got a larger Rails 3.1 application. It's getting super slow in development mode.
I'm new to webservice development. I'm using Netbeans 7.0 with the Axis2 plugin and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.