Start app when user logs in first time [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
How can i start an app when user logs on first time on a machine? I need to write an app which assists the user for example configuring other software, printer etc. What i need to ensure is, that this app starts when a user first logs into this machine.
How can I achieve this?
(If it helps, I only need to support Windows 10.)

Make an auxiliar process that starts your app when the computer starts. You can refer this one...
How to run a C# application at Windows startup?
then make a value at your db, for example firstLogin and changed to 0 for this user when your app is running.

Related

C#: Check if current user is disconnected [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
In C#, how to check programatically if the current user is in Windows 'Disconnected' state?
Background: On a server, I would like all instances of my program to selv-terminate if the current user is disconnected.
The program is not running in elevated state, i.e. not as administrator.
You will have to override WndProc to hook into the Windows System Messages. This will not be possible if you're in a console app.
see: Detect Active RDP sessions

Run .Exe inside Application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I need to create an application to run programs. It should work as VmWare or VirtualBox, but to run other programs and not an operating system. Any suggestion?
What you are trying to do can't be accomplished in a simple way.
You still need a virtual machine of some sort, or an application container. I know that Microsoft is working on a Windows application container (like Docker) but I don't believe it is available yet.

Where to place the C# code for checking internet connection in App.xaml.cs #Windows phone 8.1 Development? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I'm a starter in developing windows phone 8.1 apps.
In my app, the first page has to check the internet connection if true it should navigate to next page otherwise app should close.
I'm having troubles with how to add code.
Please help me...!
The Microsoft requirements are that your app starts (leaves the splash screen) within 10 seconds. You should do all the minimal loading your app requires during the start-up process, then do the internet checking after the program has loaded. You can show a spinner or the floating dots image, if you'd like to inform the user that they need to wait for your app to do something.

Winform app with loaded DB connection [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a question regarding problem i am solving. I am editing an old Winform app; currently the only part I need does not take input from the user(automated program). However the form contains database connection settings that program uses. Currently the program needs the user to press a button to start the process (code is associated with the button). Do i need to convert whole app to Console App or is there an easier way to automate this process without messing with the database connection settings.
Right now, you have a WinForm that runs code on a button press. You need to turn this into a "headless" or automatic process. Here is what I think based on your description would be the best things to do:
Remove the button, and have the code that was being ran by the button be called by a more "automatic" process, such as "Form_Load" or a timer.
Take the code and move it into a console app. As long as you don't ask for user input within the logic, it will run and close itself when it's done.
However, this is just some broad and generic suggestions. You need to look at your code and decide for yourself what to do.

Changing user process on a system process [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have a little problem.The Device Manager is a list of processes. The process my application is active on my user (FoX0X). How to change the process to belong to the system (Replace "FoX0X" to "SYSTEM")? Besides that if you can not close it in the device manager?
I tried to use the code:
File.SetAttributes("AppName", FileAttributes.System);
But this dont work.
You can not change users a process is running under, you may be able to do impersonation to run a section of code as another user, but you can not modify the process itself to be running as another user.
To make your process run as SYSTEM it must be started under that user.

Categories