I am using Visual Studio Setup and Deployment. I have built a setup project, I want to run another setup file during installation of my main setup. Please advise how to to it.
Thanks
Related
I am new to ASP.Net Core. I have been following a tutuorial. I got to the point at which Javascript code was added to my project. I ran my program, and nothing in the script worked. After adding a few alert() calls, it was apparent that my program was not finding my script. People here and at Reddit suggested I look at the network tab of DevTools. I saw that my program was not able to find any js or css files.
Being an old-school C++/C# developer, I was running the program from a command window by going to the folder containing the executable file and typing the name of the file.
I went back to the beginning. The tutorial directs me to use the dotnet command, which is brand new to me. The first time it tells me to run my program, it tells me to go to the project directory and enter "dotnet run". It just hit me like a ton of bricks that that was what I should have done the first time. I went back to that project, used "dotnet run", and it worked.
So, my question is this: is it possible to run MyProject.exe by itself? If so, how? Copy it into my project folder? Or is the "dotnet run" command the standard way of executing an ASP.Net Core application?
I think it won't work if you directly run it (not sure if we can run MVC project using dotnet-cli (dotnet run will try to load only MSIL to CLR)).
DotNet core console application is different from .net core MVC projects
you can run your project by following ways.
1. Run using visual studio
when you create an MVC application, in the visual studio there will be multiple options to run it, you can choose IISexpress one, it will open in the default browser.
for step by step guide -> https://learn.microsoft.com/en-us/visualstudio/ide/quickstart-aspnet-core?view=vs-2019
2. publish it in IIS
For this you need to ensure few things, like hosting bundle is installed or not, IIS is correctly configured for core application or not.
for step by step guide -> https://stackify.com/how-to-deploy-asp-net-core-to-iis/
3. Use VSCode
for step by step guide -> https://learn.microsoft.com/en-us/aspnet/core/tutorials/publish-to-azure-webapp-using-vscode?view=aspnetcore-3.1
My .net application is running well in my local machine. I am using Visual Studio 2015. When I publish the website and upload it to the server space, I am getting the following error.
I can't understand why the problem has been occurring. My other projects are working well. Is there any problem during the time of publishing?
Any clue?
Thanks
Partha
Update-Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform -r
You have to run this Code under Package Manual Console PM>
for more details visit Could not find a part of the path ... bin\roslyn\csc.exe
Most probably rosalyn folder is not available in you published bin folder.
If you face difficulties with rosalyn see this link
I have created a web setup in visual studio 2013. When I install it, only the bin folder is created in IIS, hence I cannot browse my website. Help please.
I have added the Primary Output in the Web Application folder in my setup.
Your question is too confusing. Are you uploading your files on to the web server? Or are you trying to setup your visual studio for debugging, test, editing and coding purposes?
If you are trying to run Visual Studio locally, IIS is setup for you automatically.
If you are trying to setup files to a webserver, try to talk to the live support. Sometimes, we, users, dont have full control or lack of knowledge debugging it on the dedicated server.
Other thing to consider is reinstalling your visual studio carefully.
I have setup project that requires .Net Framework 2.0 before installation. So, I want to make my project to install .Net first and then my project.
How can I add .Net installation file inside my Setup Project and force it to install first during the installation process?
here
here
You can also download the setup file of the .net framework and use setup maker applications to instruct the user to install it first. Please do a little web search for similar questions before asking here. :-)
EDIT:
First create a setup file for your visual studio project without the .net framework setup file. Then use Inno Setup to make another setup file and in here use the option Inno setup provides to make the user to run the .net framework setup file first. This will make a single .exe file named setup.exe in you documents folder. See if this works for you.
Since .net framework and your program use the same install shield for installing, you can't use both of them at the same time when the other one is still running, that's why you need a different setup wizard than install shield.
EDIT(Inno Setup):
You can search Run in the index section of the help window for farther information. The programs are executed in the order appearance in your code in Inno Setup. So your Inno Setup Run section code should be something like this:
Filename: "{app}\.netFrameWorkSetup.exe"; Flags: nowait postinstall skipifsilent
Filename: "{app}\yourAppSetup.exe";
Actually it didn't get as much explaining as I expected!
Does anyone have a good way to build MSI (vdproj) projects using MsBuild or Nant?
I know one answer was to install Visual Studio on the build server and just use devenv.exe to build the project, but, I prefer not to install Visual Studio on our build servers.
Short of the method you mentioned above (devenv), there is no way to do this with the current version of MSBuild.
The method the Visual Studio team uses to run their MSI builds is with Windows Installer XML. You can learn more about using WiX to deploy setup packages here.
Please note WiX doesn't support vdproj files so it means you'll be recreating your installer projects.
Edit: Looks like I was beat to the chase when grabbing my references :)
We use Wix to automate MSI builds for IronPython and IronRuby.
EDIT: to clarify, this probably means starting over from scratch when building your installer. While Wix has a mechanism to create a configuration directly from a preexisting MSI file, I've never gotten a satisfactory result from using this tool