Visual Studio Publish Installs Program But I Can't Find the Files - c#

I have VS community edition and I can't find my installed files. I go to the properties window of my start up project and click down to Publish. My publishing folder location is j:\projectinstall. My installation folder is \c\program files (x86)\TestProject\ (For some reason, VS doesn't allow destinations such as c:\program files (x86)) I run publish then run the install on another workstation. Everything works fine -- I get a shortcut on the desktop and I double click it and the file runs. The problem is that it's like the files don't exist. I can't find file location, there is no target. I do a search on my hard drive and the files are just not there. Any help would be greatly appreciated. I tried it with VS 2015 and 2017.
I found the file under c:\users..\appdata\localapps... but I don't want it published into some buried folder. Please help.

The problem is that the VS Community Edition doesn't come with the proper tools to make an installer. I found a free installer program online: Inno Setup

Related

Folder Appdata Unity and Visual Studio Community 2019 (For Unity) Can it be deleted?

I uninstalled Unity & Visual Studio Community 2019 from my computer (C:\Program File).
But there are still folders on the computer. Can I delete it? I don't want these folders. Will there be problems later?
Folder About Unity
AppData\Roaming\Unity
AppData\Roaming\UnityHub
AppData\Local\Unity
AppData\Local\Unity-Updater
AppData\LocalLow\Unity
Foder About Visual Studio Community 2019 (For Unity)
AppData\Roaming\Visual Studio Setup
AppData\Roaming\Microsoft\VisualStudio
AppData\Local\Microsoft\VisualStudio
AppData\Local\Microsoft\VisualStudio Services
C:\Program File (x86) \ Microsoft Visual Studio
In the future I may install Unity & Visual Studio Community again.
But I'm not sure if deleting these folders will cause the program to stop working
If you want to uninstall unity completely. You can try the steps below. If you re-download the unity software, it is best to uninstall it completely.
1. Clear the registry of unity.
First, enter "regedit" in Run to open the registry interface.
Delete all items under HKEY_CURRENT_USER\Software\Unity, including the Unity folder.
Delete all items under HKEY_CURRENT_USER\Software\Unity Technologie, same as above.
2. Clear temporary files. Maybe the paths are not exactly the same, just search for similar ones and delete them.
C:\ProgramData\Unity (ProgramData folder may be hidden, show hidden files to view)
C:\Users\Administrator\AppData\Local\Unity
C:\Users\Administrator\AppData\LocalLow\Unity
C:\Users\Administrator\AppData\Roaming\Unity

Change Published Project Install Directory in Windows8.1

I am trying to change the default installation directory of my projects when I publish them but I seem to have no choice over where the published setup.exe actually puts the program. It seems after setup.exe running and application installed, all the processed files are under the folder of C:\Users\{username}\AppData\Local\Apps\2.0\ (Something like that, I dont remember the exact directory as it is very long). This is not what i want as I installed the program in the C:\Program Files\ but all the log files go to the C:\Users\{username}\AppData\Local\Apps\2.0\. This is really really annoying.
The application I published is C# Windows Form Application
And I have looked through online and found that somebody suggested to create an MSI package for C# Windows Application Using a Visual Studio Setup Project instead of publishing the program:
Publish Windows form application how change the installation path
It is supposed that the above website can solve this problem. Are there any other suggestions to solve this redirection problem after publishing the C# Windows Form Application? Thank you.
When you use the Publish funtion in Visual Studio, you are creating click-once publication. This type of deployment has relatively fixed rules and not everything can be configured. It allways installs into an obfuscated folder under windows user profile. It is similar to the fact, that you cannot change location where windows-store modern apps are installed under Windows 8.1.
You can create MSI setup project for your app - but in Visual Studio 2012 this type of project is missing and it was re-introduced againg in Visuals Studio 2013. There you can specify install folder. You can also use Install Shield Lite with Visual Studio 2012.
You wrote:
This is not what i want as I installed the program in the C:\Program
Files\
It is not possible to install ClickOnce application using Publish button in Visual Studio into C:\Program Files\.
If you have just problem with the location of your log files, you need to specify a different folder within your application code. Make sure that user, who is running your app, has write access to that folder - it should be in some user's profile folder or in a public folder. Avoid %ProgramFiles% as a folder for your log files - it is not a good practice.
Instead of Application.StartupPath you should use path accessible to all users including non-admin, like:
Path.Combine(Environment.GetFolderPath(SpecialFolder.CommonApplicationData),"MyCompanyName")
You can use InstallShield to create installation wizards/Setup.
Here's the free version for Visual Studio

How to log a project that is being deployed from Visual Studio?

I have a C# project written using Visual Studio Express 2013 for Windows Desktop. When I run the project in debug mode via Visual Studio (on Windows 8 Pro) it executes just fine, and so does copying the files out of the bin directory.
I need to deploy to a Windows 7 Embedded System with the correct version of .NET Framework. I tried:
copying the files over with the .dll and everythig from the bin folder and when starting I get no error, but doesn't start at all. I get no information at all.
tried the one click installer (choosing the option to install from dvd) and it seemed to install fine, but when I start it, I get same issue. Not starting, and no messages.
I also tried the Advanced Installer (free version) and when importing the visual studio project files it fails with the message "Failed to start Visual Studio. Error: Invalid Class String"
[UPDATE] Advanced Installer cannot import VS Express solutions because the API from VS that provides assistance on import is not available for VS Express edition. Only solutions created with paid editions of VS can be imported in Advanced Installer.
So how can I log or see what is happening to debug this?

How to Create Installer for my Project

Hi guys i have a c# project that i want to create an installer.I want the installer to do the following:
Copy all the files that my application is using to a user chosen path (copy the files to the chosen path).
Ask for a specific Path(my c# program requires Google Drive Application to be installed and need its path)
Create Folders and Text files in that Path.
Please help me guys thanks.
Project Setup & Install was dropped after Visual Studio 2010. You'll either have to go the WiX route, or if you have Visual Studio 2013, you can create an InstallShield Limited project. There are several alternatives as well, just do a search.
Here's a link to a page that gives a video walkthrough of how to create an application installer with InstallShield Limited from Visual Studio 2013:
http://learn.flexerasoftware.com/content/IS-EVAL-InstallShield-Limited-Edition-Visual-Studio

Delete Visual Studio solution folders

I have Viusal Studio 2008 on my PC at work and Visual Studio Express 2010 installed on my PC at home.
I have downloaded some source code from the Internet (DotNetNuke) and I am trying to step through it on my PC at home. The problem is that the DotNetNuke source code uses Solution folders and the express editions do not support them. When I open the solution I am faced with errors for every project that is part of a solution.
Is there a way of deleting the solution folders by editing a configuration file, without deleting the projects that are part of the solution folder?
Yes there is but you have to be careful. Open the .SLN file in something like notepad++/notepad. And just remove the the references to the solution folder. Then move the .SLN file to the folder with the code.

Categories

Resources