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

  • Home
  • SEARCH
  • 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 6584453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:32:20+00:00 2026-05-25T16:32:20+00:00

C#, Visual studio 2010 I have an application project and a Setup project connected

  • 0

C#, Visual studio 2010

I have an application project and a Setup project connected to the application.
In the Setup projects property I have setthe ProductName property to MyApp.

I have two links (Setup project) in the applications folder,
one for starting the project and one for uninstalling

I am using the technique of creating a uninstaller link in the applications folder by
starting my application with a flag and the applications Product code like this
–uninstall [ProductCode]

  1. I can not use [ProductName] as the name of the link to start the application, why is that?
    If I do, the Setup project will create a link in the application folder under the start menu
    with the name [ProductName] instead of “MyApp”.

  2. How do I localize the “remove link”, today I name the uninstaller link to “Remove MyApp”?
    I was hoping that is was possible to do something like this “strings.Remove [ProductName]”

  3. Is it possible to connect the Setup project with my MyApp project in such way that the
    Setup project gets the application name, version number etc. from the MyApp project instead.
    Like this
    Setup property ProjectName = MyApp.properties.Application.AssemblyName

/Stefan


I see ,thanks for your answear

Why aren’t you using msiexec.exe command line

I am using the msiexec, I am invoking it in my application App class like this

            sComLine = CommandLine.CL.get("uninstall"); // Check command line if the --uninstall [ProductCode] is given
            if (sComLine != null)
            {
                string path = Environment.GetFolderPath(Environment.SpecialFolder.System);
                System.Diagnostics.ProcessStartInfo uninstallProcess = new System.Diagnostics.ProcessStartInfo(path + System.IO.Path.DirectorySeparatorChar + "msiexec.exe", "/x " + sComLine);
                System.Diagnostics.Process.Start(uninstallProcess);
                System.Windows.Application.Current.Shutdown();
            }
  • 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-25T16:32:21+00:00Added an answer on May 25, 2026 at 4:32 pm

    I am using the technique of creating a uninstaller link in the
    applications folder by starting my application with a flag and the
    applications Product code like this –uninstall [ProductCode]

    Why aren’t you using msiexec.exe command line? Perhaps this thread will help:

    In a Visual Studio setup project, How do I generate an uninstall script?

    I can not use [ProductName] as the name of the link to start the
    application, why is that? If I do, the Setup project will create a
    link in the application folder under the start menu with the name
    [ProductName] instead of “MyApp”.

    Shortcuts names do not support installer properties. This is a limitation in Windows Installer. So the name must be a hard-coded value.

    How do I localize the “remove link”

    This is not supported by Visual Studio. It can be done only in a setup authoring tool which offers localization support.

    Is it possible to connect the Setup project with my MyApp project in
    such way that the Setup project gets the application name, version
    number etc. from the MyApp project instead.

    No, this is not supported by Visual Studio. As a side note, your application version may not always be the same as your package version. It’s usually best to keep them separate.

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

Sidebar

Related Questions

I have this Visual Studio 2010 Setup Project for installing my application. On (clean)
I have a Setup Project that I made using Visual Studio 2010. The application
I have an asp.net application that i am modifying. I setup visual studio 2010
I have a Setup project that I have build using Visual Studio 2010. The
I am creating a Visual Studio 2010 Setup project for installing my application. My
Visual Studio 2010 RC -> Silverlight Application We have a library of images that
In my Visual Studio 2010 project I have files with .mm file extension, that
Has anyone migrated a VB6 project to .Net with Visual Studio 2010? I have
In Visual Studio 2010 I have created a WebService (WCF) Application and a client
I have a Visual Studio 2010 Windows Forms application in which I start a

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.