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 4330862
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:01:29+00:00 2026-05-21T10:01:29+00:00

We’re working on a WPF application that is going to work closely with other

  • 0

We’re working on a WPF application that is going to work closely with other applications. Right now, it is working with Microsoft Excel.

I would like to run some custom code in the install of our WPF application that scans the user’s computer and finds the location of Excel so that I can save it in the app.config file of our WPF program. Later, when we need to launch Excel to edit a file, I will use this path in the config file to pass into Process.Start().

I do not want to create an Excel Add-in or Template (not an option, so don’t suggest this as an answer).

What security concerns do we have to worry about? Is this scheme “kosher”? What if I was trying to work with another app that did not have as much plug-ability as Excel. What methods would you suggest for locating and launching this app? Is it better to simply ask the user to locate the program instead of searching the file system for it?

Edit: Anyone want to discuss the general question? What if I am not launching Excel, but some other tool (iTunes, Audacity, etc)? No one has discussed or talked about the security question. Is it OK to search for the executable? Should I just ask the user where to find it?/Edit

  • 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-05-21T10:01:30+00:00Added an answer on May 21, 2026 at 10:01 am

    The install path is in the registry:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Excel\InstallRoot

    14.0 might be different depending on the version.

    Edit:
    In general, most installers will allow users to install the app anywhere they want so the app executable could be on any disk within any folder and therefore only a recursive search of all the folders on all the drives (after common installation paths are searched) would be a reliable method of finding an executable.

    Hence, it is IMO better to present users with the browse dialog and allow them to locate the executable on their own.

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

Sidebar

Related Questions

this is what i have right now Drawing an RSS feed into the php,
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want use html5's new tag to play a wav file (currently only supported
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti

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.