Changing Default Installation Folder of Visual Studio 2005 Setup - visual-studio-2005

I have created a windows service using Visual Studio 2005. I have created a setup project that would install my application. Now, the default installation folder is always c:\program files\Default Company Name\XXXX.
Where can I change this to be something else on startup. Basically, I want the Default Company Name to be removed.
Thanks.

Just visit "Application Folder" properties ,here you can view the default location consisting [ProgramFilesFolder][Manufacturer][ProductName].. Modify according to your need

Related

Visual Studio 2019 Setup project - include Access Database Engine Redistributable 2016/2010

I'm trying to create Setup project for my application in Visual Studio 2019 that needs Access Database Engine 2010/2016.
I tried following all the information that I could find on web but no success.
I created accessdatabaseegine folder under C:\Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\Packages and put appropriate Product.xml in it and Eula.rtf & Package.xml in en folder underneath accessdatabaseegine folder. I used Eula.rtf after trying license.txt which didn't work.
But in spite of doing this, MS Access Database Engine installation option would not show up in prerequisite menu on visual studio 2019 set up project. Tried with VS 2017 as well with no result.
Any suggestions and other application installer that may help achieve this.
Thanks,
I think if you put the customized bootstrapper folder into this path: C:\Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\Packages, then it should be listed here: right-click the Setup project > Properties > click Prerequisites… button and you will see it listed in Choose which prerequisites to install window.

Publishing windows application without delete file

In my windows application, there's a file (option.xml) created by my application on the user's computer. It's created run-time with option selected by the user.
This file is in the bin directory.
When I make a new release, the installation (that I make publishing to a shared directory with visual studio wizard) delete this configuration file, so the user have to save the option again.
How can I publish a new release without delete this file?
I'm using visual studio 2013
I hope that the issue is clear.
thanks

visual studio 2010 setup project - why can't create empty folder?

Im trying to create empty folder in application folder. I created a folder in Setup project, but when im installing, the folder is not being created. I assume its because its empty. Is there a way to create it still/
Right click on the folder, select properties window, set AlwaysCreate property true. that's it. No need to create set up file with any other s/w. Visual Studio is Microsoft product.
You need to set the AlwaysCreate Property of the folder to true.
My workaround was to create an (empty) textfile in the folder.
It's not nice, but it works.
I am thankful for any hints to find a better solution.
Visual Studio setup project will not allow you to create empty folder. Instead of visual studio you can try to create setup project using WIX.
Its free and more scalable compared to Visual studio setup project.

Visual Studio Setup Project Built-In Support for Managing a Directory Name Change

I have a Setup Project that I made using Visual Studio 2010.
The application that I made (and which the Setup Project deploys) has been released for a while now such that there are users that have the application already installed on their machines.
Since the initial release of the application, the company that I work for has changed its name. Without thinking too much about it, I simply changed the [Manufacturer] name in the setup project's Deployment Project Properties to the new company name.
Unfortunately, now when a user updates their existing installation of the application with the new updated application, the directory that was in \Program Files\Old Company Name remains untouched and a new directory \Program Files\New Company Name is created and the new update is installed in this new directory.
It makes sense to me why the scenario above is happening - However, do you know if Visual Studio has options/settings that I can set that will tell the setup project to rename the existing \Program Files\Old Company Name directory to \Program Files\New Company Name and then install the update in that new directory?
If this is an update to the application then, it is really only possible through custom actions as Mark Hall suggests. However if it is a complete installation of the application then it is possible to force a uninstall of the previous version and the reinstall to the new version to the new folder.
In your Setup Projects properties update your Major version number and allow the "Product code" guid to be updated, ensure that the "RemovePreviousVersion" is true and that the "UpgradeCode" has not changed.
This should force the uninstall of the previous version and install the new version to the new folder.
To answer your question. No there is no built in way to rename your directory before install through the Visual Studio Setup Project. If it could be done it would need to be through a Custom Action See this MSDN Forum link on Custom Actions and this Forum Link also. Your best bet might be to to a full installation and then copy any settings from the old directory to the new directory then delete the old directory. That can be done running a Custom Action during the commit actions of the setup.
If you don't need the \Program Files\Old Company Name directory anymore, can't you remove it as part of new installation?

Visual Studio Setup project should not delete file during uninstall

I created Visual Studio 2005 Setup project for my application. Windows Installer during installation put one xml file into AppData/myCustomFolder. I used File System Editor and added special folder - user's app data folder, then included that xml there.
When I uninstall application from Control Panel folder from Program Files is deleted, but also my xml file from AppData is deleted too. I need to leave this xml file in the AppData always, even when user re-install application.
How I could do it?
Set the Permanent property to True
Permanent Property

Resources