silent

Why is svchost.exe terminating my C# application?

家住魔仙堡 提交于 2019-12-04 11:29:11
For some reason, my C# application is being terminated by svchost.exe and I'm trying to understand why. It was terminating the application silently until I turned on Silent Process Exit logging using Gflags.exe from the Windows Debugging Tools. It happens infrequently on machines that I can't running debugging tools on (customer pcs). The event doesn't really provide me with much info to go on. The termination code is 805306369=0x30000001, but I can't seem to find anything useful online that would tell me how to interpret that number. I was hoping that the Silent Process Exit log would shed

Android silent apk update

删除回忆录丶 提交于 2019-12-04 05:49:37
问题 I would like to have a silent update in my app without any user interaction. But I always get the error code 139. The hardware is rooted! Can anyone help? Here is the code: public class UpdateAPK extends Activity { protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.updateapk); if (isRooted() == true) { Toast.makeText(UpdateAPK.this, "Hardware is rooted", Toast.LENGTH_LONG).show(); try { Process install = Runtime.getRuntime().exec

NSIS - Silent Autoupdate Application

浪子不回头ぞ 提交于 2019-12-03 14:25:53
I have an NSIS install kit for my .net c# application. Is there a way to silently autoupdate my application, considering that I already downloaded the new update (new NSIS app version) to local computer ? Thanks! :) (In case you need to detect the command line /Autoupdate=yes) !include FileFunc.nsh !insertmacro GetParameters !insertmacro GetOptions Var CMD_ARGS Var CMD_RES Function .onInit # #installer stuff. # StrCpy $CMD_ARGS "" StrCpy $CMD_RES "no" ${GetParameters} $CMD_ARGS ClearErrors ${GetOptions} $CMD_ARGS /Autoupdate= $CMD_RES StrCmp $CMD_RES "yes" is_update is_not_update is_update:

Play sound on iOS 9 in silent mode

☆樱花仙子☆ 提交于 2019-12-03 05:57:19
In iOS 9 (Xcode 7, Swift 2.0) I'm trying to play a sound in silent mode using the following code: try! AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryPlayback, withOptions: .MixWithOthers) try! AVAudioSession.sharedInstance().setActive(true) AudioServicesPlayAlertSound(1005) According to other answers and Apple's documentation I thought this should work but it doesn't play a sound on iOS 9 when in silent mode. It does play it when not in silent mode. From Apple's doc: AVAudioSessionCategoryPlayback -- Playback only. Plays audio even with the screen locked and with the Ring

Run CMD Silently

こ雲淡風輕ζ 提交于 2019-12-01 07:19:31
问题 I'm trying to run CMD silently, but each time I get an error. Could someone please tell me where I'm going wrong? Dim myProcess As Process myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden myProcess.StartInfo.CreateNoWindow = True myProcess.StartInfo.FileName = ("cmd.exe" & CmdStr) myProcess.Start() CmdStr is already a string to do certain things that I want in the application. 回答1: I suppose your cmdStr is a string with parameters for CMD. If so you need to use the Arguments

grant system permissions to an app in the android emulator

吃可爱长大的小学妹 提交于 2019-11-30 10:41:23
问题 I am building an app that will be bundled on an android device as a system app. The manufacturer is a ways out on delivering the device to us, so in the meantime I'd like to grant my app system level permissions in the emulator so I can work on an auto update feature that will do silent installs of APKs without any interactions from the user. From what I've read, its my understanding that the only way to be able to do silent installs on android is if your app is signed with the same cert as

grant system permissions to an app in the android emulator

孤街醉人 提交于 2019-11-29 22:25:42
I am building an app that will be bundled on an android device as a system app. The manufacturer is a ways out on delivering the device to us, so in the meantime I'd like to grant my app system level permissions in the emulator so I can work on an auto update feature that will do silent installs of APKs without any interactions from the user. From what I've read, its my understanding that the only way to be able to do silent installs on android is if your app is signed with the same cert as the OS. So how can I simulate this in the emulator? If you want a signatureOrSystem permission, you just

Printing a Report Server-Side and Silently

无人久伴 提交于 2019-11-29 04:44:54
I am trying to write a program that allows me to print a ssrs report(.rdl file) from the server-side code to a predetermined printer without any pop ups asking me which printer I want to use can this be done? EDIT Also pasted the code for the ReportViewerDisposer implementation I'm using. Together with the class ReportViewerDisposer found here I'm using the following code, which is part of a larger project, but you should be able to adapt it easily: private string m_printerName; private string m_server; private string m_path; private string m_name; private Dictionary<string, string> m

Silence Android Phone in Java

﹥>﹥吖頭↗ 提交于 2019-11-28 18:29:50
How can I silence the android phone in java? A code sample is VERY helpful. You can use the AudioManager class. In this class you're looking for setRingerMode() function. AudioManager audiomanage = (AudioManager)getSystemService(Context.AUDIO_SERVICE); audiomanage.setRingerMode(AudioManager.RINGER_MODE_SILENT); The values you can pass into the function are: The ringer mode, one of RINGER_MODE_NORMAL , RINGER_MODE_SILENT , or RINGER_MODE_VIBRATE . You have to add this into the manifest file: android.permission.MODIFY_AUDIO_SETTINGS Use the AudioManager class's methods to silence audio. For

ErrorActionPreference and ErrorAction SilentlyContinue for Get-PSSessionConfiguration

喜欢而已 提交于 2019-11-28 09:01:54
My case: $ErrorActionPreference = "Stop"; "1 - $ErrorActionPreference;" Get-ChildItem NoSuchFile.txt -ErrorAction SilentlyContinue; "2 - $ErrorActionPreference;" Get-ChildItem NoSuchFile.txt -ErrorAction Stop; "3 - $ErrorActionPreference;" Output: 1 - Stop; 2 - Stop; and display an error... Now, $ErrorActionPreference = "Stop"; "1 - $ErrorActionPreference;" (Get-PSSessionConfiguration -Name "MyShellUri" -ErrorAction SilentlyContinue) "2 - $ErrorActionPreference;" Output: 1 - Stop; and display an error... Why doesn't work -ErrorAction SilentlyContinue) for Get-PSSessionConfiguration ? Update: