CSIDL_DESKTOP fails in application that is launched from an service - c++

I have an application which has the method
shgetspecialfolderpath
to get a folder path. It works fine when I directly run the application. But when I launch the application from a window service, the CSIDL_DESKTOP fails and shgetspecialfolderpath returns error code 2.

Related

Can Windows Application Packaging be used to package a console web app?

I have a solution that creates two applications: an ASP.NET Core Web Console App (server) and a UWP app (client). Both installers are created using Windows Application Packaging Projects using sideloading. Building and testing the client and server apps are functioning as expected. Deploying (installing) the client and server apps on desktop PCs also seem to function as expected. However, when it comes to running the apps, only the client seems to be working as expected. When launching the server (console web app) it displays a console window then disappears immediately.
Since this is a console app, I opened a command prompt and changed directory to where this application is installed (C:\Program Files\WindowsApps\AppName). I attempted to run the console app from the command line and I got the message "Access Denied". Assuming this directory is locked down by the system, I decided to to test the console app functionality by copying the directory from C:\Program Files\WindowsApps to C:\Temp. I then changed directory to C:\Temp and attempted to run the program. It runs as expected. So there seems to be nothing wrong with my console web app other than it cannot run if installed in the WindowsApp location. I tried searching for information regarding using Windows Application Packaging to package console apps but I didn't have much luck. Would it help to add and app.manifest and set the "requestedExecutionLevel" to "requireAdministrator"? Should I use a different type of packaging for the console Web App?

Log Issue on Dontnet Framework application when application deploy on windows container

I create one application in the Dotnet Framework WEBAPI. I used to container service to deploy this application, I used two dotnet framework container one for build one for rum. (dotnet/framework/sdk) use to create build and (dotnet/framework/aspnet) use to deploy. Application deploy successfully, when hit api give response correct but log not generated. IN the local system we use visuale studio 2019 to run application then log generated.enter image description here

How to keep Meteor server running?

A Meteor app is on an Amazon AWS EC2 instance running Ubuntu.
Once logged in remotely via SSH and starting up the app, everything runs fine.
But as soon as the terminal window closes, it seems to shut down the app and it is no longer available in the browser.
How do you make the app continue to run after the terminal window has been closed?

Install Windows Service and Console Application using a single setup and deployment

I have created a console application that works as background app in C++. I am trying to run this application through windows service to start automatically if the app crashed.
What I can't do is to create a windows service which can trigger the xxx.exe.
How can I make this windows service AND background application as a single setup file for installation ?

Windows, Mingw Qt Application Does Not Run On Deployed Computers

I have created a Qt application with Mingw. The application runs properly on the development computer after copying the required DLL's to the directory. However, when deploying on external computers, the application does not run at all.
Update:
In addition, the application uses Sqlite3 via QtSql.
It's quite likely you're still missing some dll.
Check the Windows event log for any errors after running the application. (Administrative Tools->Event Viewer).
Try launching the application from a command prompt window.
Try Dependency Walker.
Another thought is some missing configuration file or registry settings.
Double check against the Qt docs for deploying Windows Qt applications.