locked
saving program to program files RRS feed

  • Question

  • I created my project with vb.net and acces and I have successfully installed and run it on client machines. but I want the installation files to be saved in the "Program Files " folder like other big programs do.

    If you think it you can achieve it

    Tuesday, May 15, 2012 10:07 AM

Answers

  • Hi,

    If you are using visual studio setup and deployment project then it default goes to program files, see default Location property, and changes to appropriate value.

    Or you can right click on left panel and select the folder type and copy your stuff inside that. 

    


    Best Regards Sanjay Pant [Metadesign Solutions]

    • Proposed as answer by Jason Dot Wang Wednesday, May 16, 2012 8:10 AM
    • Marked as answer by Bob Wu-MT Wednesday, May 30, 2012 2:23 AM
    Tuesday, May 15, 2012 2:20 PM
  • Hi tendaimare,

    There are many install tool allow developer to install their project to a certain folder(including Program file), such as Wix, InstallShield.

    Visual Studio also provide a thing called Visual Studio Setup project which is mentioned by Sanjay.

    You might should read the following article to understand what is Visual Studio Setup project and what can it do.

    http://msdn.microsoft.com/en-us/library/19x10e5c.aspx

    http://msdn.microsoft.com/en-us/library/k3bb4tfd

    http://msdn.microsoft.com/en-us/library/wx3b589t.aspx

    If there is anything unclear, please let us know.

    Best Regards,

    This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.


    Bob Wu [MSFT]
    MSDN Community Support | Feedback to us

    • Proposed as answer by RobinDotNet Friday, May 25, 2012 7:15 AM
    • Marked as answer by Bob Wu-MT Wednesday, May 30, 2012 2:23 AM
    Thursday, May 17, 2012 12:48 PM

All replies

  • Hi,

    If you are using visual studio setup and deployment project then it default goes to program files, see default Location property, and changes to appropriate value.

    Or you can right click on left panel and select the folder type and copy your stuff inside that. 

    


    Best Regards Sanjay Pant [Metadesign Solutions]

    • Proposed as answer by Jason Dot Wang Wednesday, May 16, 2012 8:10 AM
    • Marked as answer by Bob Wu-MT Wednesday, May 30, 2012 2:23 AM
    Tuesday, May 15, 2012 2:20 PM
  • If you are using ClickOnce deployment, you can't make it install in program files. The purpose of ClickOnce is to not require administrative privileges, so the applications are installed under the user's profile. Installing in Program Files requires admin privileges.

    RobinDotNet


    Click here to visit my ClickOnce blog!
    Microsoft MVP, Client App Dev

    • Proposed as answer by RobinDotNet Thursday, May 17, 2012 6:53 AM
    Thursday, May 17, 2012 6:52 AM
  • what do I do if i want it to install in program files folder is there a way to do it or maybe I have to find a third party tool to use .if the answer is i need to find a third party tool to do this what tools can be recommended to do this

    If you think it you can achieve it

    Thursday, May 17, 2012 7:57 AM
  • Hi tendaimare,

    There are many install tool allow developer to install their project to a certain folder(including Program file), such as Wix, InstallShield.

    Visual Studio also provide a thing called Visual Studio Setup project which is mentioned by Sanjay.

    You might should read the following article to understand what is Visual Studio Setup project and what can it do.

    http://msdn.microsoft.com/en-us/library/19x10e5c.aspx

    http://msdn.microsoft.com/en-us/library/k3bb4tfd

    http://msdn.microsoft.com/en-us/library/wx3b589t.aspx

    If there is anything unclear, please let us know.

    Best Regards,

    This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.


    Bob Wu [MSFT]
    MSDN Community Support | Feedback to us

    • Proposed as answer by RobinDotNet Friday, May 25, 2012 7:15 AM
    • Marked as answer by Bob Wu-MT Wednesday, May 30, 2012 2:23 AM
    Thursday, May 17, 2012 12:48 PM
  • You have a web project, and they don't install in the Program Files folder. If you had a standard setup you could install to Program Files. If you want to change tools there's a list here:

    http://www.installsite.org/pages/en/msi/authoring.htm


    Phil Wilson

    • Proposed as answer by RobinDotNet Friday, May 18, 2012 6:25 AM
    Thursday, May 17, 2012 4:27 PM
  • You have a web project, and they don't install in the Program Files folder. If you had a standard setup you could install to Program Files. If you want to change tools there's a list here:

    http://www.installsite.org/pages/en/msi/authoring.htm


    Phil Wilson

    Hi Phil,

    The Suggestion is great. However,how can you tell the op have a web project? I can't find any words shows that this is a web project.

    Best Regards,


    Bob Wu [MSFT]
    MSDN Community Support | Feedback to us

    Friday, May 18, 2012 6:40 AM
  • You have a web project, and they don't install in the Program Files folder. If you had a standard setup you could install to Program Files. If you want to change tools there's a list here:

    http://www.installsite.org/pages/en/msi/authoring.htm


    Phil Wilson

    Hi Phil,

    The Suggestion is great. However,how can you tell the op have a web project? I can't find any words shows that this is a web project.

    Best Regards,


    Bob Wu [MSFT]
    MSDN Community Support | Feedback to us


    You're right, but from the screen shot it looks like op is trying to make a web project in Program Files, and VS doesn't support that. You can have a web setup project, but that won't install to Program Files.

    Phil Wilson

    Friday, May 18, 2012 4:06 PM
  • You're right, but from the screen shot it looks like op is trying to make a web project in Program Files, and VS doesn't support that. You can have a web setup project, but that won't install to Program Files.


    Phil Wilson

    Hi Phil,

    It seems that the op doesn't provide any screen shot, does it? Anyway, the suggestion is great and I didn't realized the op might developing a Web application.

    Hi tendaimare,

    How is it going with our friends' suggestions?

    Any update to this issue?

    Best Regards,


    Bob Wu [MSFT]
    MSDN Community Support | Feedback to us

    Monday, May 21, 2012 8:17 AM
  • I am developing a windows application

    If you think it you can achieve it

    Tuesday, May 22, 2012 7:43 AM
  • If this is a Windows based application, then you can use Setup project, please check the reply of Sanjay's and Mine.

    Best Regards,


    Bob Wu [MSFT]
    MSDN Community Support | Feedback to us

    Thursday, May 24, 2012 9:58 AM
  • Hi,

    If you are using visual studio setup and deployment project then it default goes to program files, see default Location property, and changes to appropriate value.

    Or you can right click on left panel and select the folder type and copy your stuff inside that. 

    


    Best Regards Sanjay Pant [Metadesign Solutions]

    I 've tried Sanjay's First method but it seems not to be giving me the results I want, infact when I install the app no system files and folders are created in the program files folder. However sanjay said "you can right click on left panel and select the folder type and copy your stuff inside that" What I need to understand is which stuff must copy into the folder

    If you think it you can achieve it

    Thursday, May 31, 2012 9:27 AM
  • Monday, June 4, 2012 6:37 AM