How window task manager group processes under an application? - process

As titled, I am wondering how window task manager group processes into 1 application name. Please see below picture for what I want to do.
I have checked out this post. Therefore, I have 2 questions.
How to have an application process to house rest of the processes (including background process) in the task manager such that I can monitor the performance of the application at all
How to rename that root application, and the icon since my application is spawning some python processes at background etc. I would like to name them as "company product" instead of "python" in the task manager.
Any guidelines will be appreciated.
Some more background:
In our application, we spawn many processes (python, postgres, redis etc)
Currently, we bundle the entire application as window application via inno setup
The actual start up process:
Launch a python script (__main__.py)
Create the necessary UI components
Create background processes like redis, postgres etc

Related

vb.net - How to make a "hub" or a main menu of multiple exe projects that will update independently?

I have approx 22 vb.net windows form based projects that are run by different users throughout my company. I publish them using one-click to a network server, then install on each user computer using the set-up file on that server. That way, when I publish an update, it is automatically pushed to each user when they open their programs.
I'd like to consolidate all of this into 1 program. So for example, the Accounting dept, IT Dept, and Customer Service Dept would all have the same icon/program to open, and they choose which program specific to them to open from that main menu. The goal is to remove all 22 programs from user computers and only have 1 installed that runs each individually (somehow).
My dilemma is program updates. When I update a program for the Accounting Dept, IT doesn't need that update. But since it would be only 1 installation and 1 publish, every user on the network would receive updates not relevant to them. So how do I create one main program "hub" for all users that only receives updates to the programs that they need?
You can launch the click once programmatically
Dim url = "\\Software\Production\ClickOnceApp\ClickOnceApp.application"
Process.Start("rundll32.exe", "dfshim.dll,ShOpenVerbApplication " & url)
Just point to the url on your server, where it's installed from. This will launch the app the same way windows does, so it would check for updates when it's run as if it's run from the start menu.
Then you could maintain a list of 22 applications' names and locations in the 23rd app's settings, xml, sql, etc., and add user groups, permissions, etc.
It could be a winforms app which provides buttons according to the configuration above for launching all these apps. Yes, I think this is actually a pretty neat idea.

Counting how many script in SSIS have been completed

In SSIS package i have multiple scripts running within a job. At any given time i want to read how many scripts have been executed eg, 5/10 (50%) have been completed. Please tell how can i achieve that?
Currently there is no such functionality provided by SSIS to track progress of package execution.
It seems you need to write your own custom utility/application to implement same or use third party one.
There are few ways to do -
Using a switch called /Reporting or /Rep of DTEXEC at the command-line . For example:
DTEXEC /F ssisexample.dtsx /Rep P > progress.txt
2.Implement package logging or customize it.
3 . Implement Event handler on required executable. You can also use OnPipelineRowsSent log of Data Flow Task.
If you want to write your own application then below thread will provide nice starting point.
How do you code the Package Execution Progress window in C#
In my experience, we are using another software to monitor the jobs that are running. http://en.wikipedia.org/wiki/CA_Workload_Automation_AE
You can also try to create your own application that runs on the background that checks that status of your jobs, through checking the logs.

Test Automation Framework - Stuck

I am wondering about where to start in building a test framework here.
I create a vb.net application to display the list of projects available. Allow user to select the project, time and date when test needs to get executed.
Once the user decides the time and task, I want my system to schedule a task onto a remote machine where the test execution would happen at the specified time.
I am stuck at point two. any pointers or question is much appreciated.
I use testcomplete for automation.
I want my system to schedule a task onto a remote machine where the test execution would happen at the specified time
There's a Windows Task Scheduler and associated API that supports scheduling tasks at specific times. The API is aimed at C++ programmers.
You could use the Task Scheduler Managed Wrapper available on CodePlex for easy interop with VB.Net.
The task to execute could be copied to a network drive so that it is accessible from the remote machine.
For point 2 you'll have to call TestComplete from the command line as per these instructions:
http://support.smartbear.com/viewarticle/55587/
You can also call TestExecute from the command line, it's a cut down version of Test Complete that will run your tests. Your license may or may not include that.
Did you also consider taking a look at Jenkins for scheduling your test runs?

Grouping in the "Processes" tab of Task Manager

How do I have my application's process to show like "Adobe Acrobat Update Service" and other processes which also don't appear on Apps group, but on Background processes group?
There are three different groups that show up in the Processes tab of Task Manager:
Apps - any processes that are showing UI (have a top-level window)
Background Processes - any non-UI, non-Windows processes
Windows Processes - any non-UI, Windows processes
Processes can move between groups while they are running. This can be demonstrated pretty easily using Windows Explorer. Windows Explorer will show up in either the Apps or Windows Processes group depending upon whether it is showing any UI (for example, the Run dialog or a folder).

In windows 8 metro style app, how to update live tile while app is not running?

In windows 8 metro style app, how to update live tile while app is not running ?
And the live tile start to run when OS system begin to start.
http://blogs.msdn.com/b/windowsappdev/archive/2012/04/16/creating-a-great-tile-experience-part-1.aspx
"3.Use polling notifications from the cloud to update the tile while the app is not running"
But I cannot find any example code.
I also try MSDN's PushNotificationSample, But I don't know how to set the "Server URI"?
Does anyone have similar experiences?
Okay, let's get you answered! Here is every single way and resources for each way to get you started. Your scenario isn't clear to me, so I will try to be generic.
There are four ways to update a live tile in Windows 8! And this is true for the primary app tile and the subsequent secondary tiles created by the app, too.
1> The first is that the app, while running, can update the tile
http://thesociablegeek.com/windows-8/livetiles/working-with-live-tiles-locally/
But, you were asking how to update when it is not running:
2> A user can deploy a background task with their Windows 8 app. This background task executes periodically and can update the tile of the app during its execution. The minimum frequency of background tasks is 15 minutes. Windows 8 allocates 1 CPU second every two hours to a task. Your task can execute as often as you want until you exhaust its allocation.
http://thesociablegeek.com/windows-8/livetiles/modifying-live-tiles-in-a-background-process/
3> An app can open a WNS (Windows Notification Services) channel while it is running. When it is not running, a web service can push tile updates across WNS.
http://msdn.microsoft.com/en-us/library/windows/apps/hh465460.aspx
http://visualstudiomagazine.com/articles/2012/03/25/using-push-notifications-in-windows-8.aspx
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/Hh868253(v=win.10).aspx
4> A tile can be configured to pull from a URL. The XML from that URL is periodically evaluated for deltas and the tile is refreshed when detected. Tiles expire by default after three days.
http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.notifications.tileupdater.startperiodicupdate.aspx
http://msdn.microsoft.com/en-us/library/windows/apps/hh761476.aspx
Point of clarification: you can't cause something like a tile update when the OS is booted. For one, in Windows 8 the idea of rebooting (or at least shutting down) is practically deprecated. But your Store app can only execute in the ways above - and can't do something like the StartUp folder (in the past) or RegEdit/Run (in the past) just the stuff above. But maintenance or timer triggers get you pretty close.
And, that's the answer. Best of luck, dude!
Try background tasks # http://code.msdn.microsoft.com/windowsapps/Background-Task-Sample-9209ade9