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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:41:39+00:00 2026-05-22T23:41:39+00:00

The situation : I’ve got a Windows Desktop application that connects to various services

  • 0

The situation: I’ve got a Windows Desktop application that connects to various services (one at a time) to perform various calls. My application works the same way no matter which service it connects to. Which service it should connect to at any time is defined in an application.config file.

In order to switch between services, I’ve created a couple of windows .bat-files, each of which replaces the existing .config file with the new one (service endpoint) to use.

For all of this, I’ve created an installer (an MSI, using the “Setup Project” template in Visual Studio 2010). This installer also creates shortcuts to:

  1. the application itself
  2. the first .bat file (which sets the config file with the “default” service endpoint)
  3. the second .bat file. (which replaces the config file with the alternative one)

The problem: Each time I run any of these (the app or the bat files) via the shortcuts, they seem to “reevalueate” the installed files before actually running the target. This is no problem as long as I’m using the default .config file, as that was the way it was installed. If I’ve run the second .bat file however, and am trying to run the application so it connects to the second service, then starting the application via the shortcut causes the .config-file to be reverted, and I end up connecting to the first service instead.

I’m able to create my own shortcuts manually, both to the .bat files and to the application itself, and they work fine. I’d like this to happen automatically however, without messing up any changes to other files.

Any ideas would be greatly appreciated!
Thanks in advance,
-Kjartan

  • 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-22T23:41:40+00:00Added an answer on May 22, 2026 at 11:41 pm

    Your deployment project has what is known as an “advertised shortcut”. There are several ways to disable those, see the following link:

    http://social.msdn.microsoft.com/Forums/en/vssetup/thread/b57f1d84-9b0c-4c29-b140-0555f92ffed8

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

Sidebar

Related Questions

Situation: I have an Xcode project based on the Navigation-Based-Application template. So that means
Situation I've got a worker thread that's being triggered by a condition_variable to do
Situation: I have a simple XML document that contains image information. I need to
Situation: A PHP application with multiple installable modules creates a new table in database
Situation: text: a string R: a regex that matches part of the string. This
Situation: you've got a .swf embedded in an html page, and when you click
Situation is you have to develop an application against an Active Directory Tree. Want
Situation with Thai text on a client site is that we can't control where
Situation: I am writing a program in C that maintains a number of threads.
Situation: I send an ajax request that returns HTML containing elements needing event handlers

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.