startup

Program needing elevation in Startup registry key (windows 7)

那年仲夏 提交于 2019-11-28 14:04:45
I have a program that I'd to run when the computer starts. I've put its path inside "SOFTWARE\Microsoft\Windows\CurrentVersion\Run". This is in Windows 7. When the computer starts nothing happens. I'm thinking this is because the program needs elevation when I run it. But Windows does not ask for permission to elevate and gives no feedback. It simply ignores it. I've read that Vista tells you that the program was blocked etc. Does anybody have any idea why Windows 7 simply ignores the application? Thank you very much in advance. Alireza Windows Vista and 7 block programs requiring elevation

Eclipse workspace crashes on startup

不羁的心 提交于 2019-11-28 11:57:56
I am using Spring Tool Suite(STS) 3.0.0 release (eclipse.buildId=3.0.0.201208091018-RELEASE-e42). It was running fine for a couple of months but lately my main workspace is crashing on splash screen with error as shown in last part of this post. I have tried 'STS.exe -clean' and reverting installation(via new workbench) to a earlier configuration .. but nothing seems to work. I was driving it as a single tool (i.e. almost all dev. related tasks even like connecting to server, database) so this is very frustrating :-(. Any help would be greatly appreciated. !ENTRY org.eclipse.ui.workbench 4 2

How to configure a start up managed bean?

£可爱£侵袭症+ 提交于 2019-11-28 11:10:30
I want a managed bean to run internally on start up in my JSF web application when the application loads. How can I write this class and configure in Glassfish? In JSF with CDI, observe the initialization of the application scope . @Named @ApplicationScoped public class App { public void startup(@Observes @Initialized(ApplicationScoped.class) Object context) { // ... } public void shutdown(@Observes @Destroyed(ApplicationScoped.class) Object context) { // ... } } When having OmniFaces at hands, this can be simplified with @Eager . @Named @Eager @ApplicationScoped public class App {

How to change StartupUri of WPF Application?

爱⌒轻易说出口 提交于 2019-11-28 10:50:11
I am trying to modify App.cs and load the WPF XAML files from code behind but its not working as it should. No matter whatever I try to set as StartupUri it doesnt start, the program quits after this. public partial class App : Application { protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); LoginDialog dlg = new LoginDialog(); if (dlg.ShowDialog() != true) return; switch (dlg.ChoiceApp) { case ChoiceApp.CustomerEntry: StartupUri = new Uri("/MyApp;component/Forms/CustomerEntry.xaml", UriKind.Relative); break; case ChoiceApp.VendorEntry: StartupUri = new Uri("/MyApp

C# Run application MINIMIZED at windows startup

≯℡__Kan透↙ 提交于 2019-11-28 10:34:06
I got the following code to run the application at windows startup: private void SetStartup(string AppName, bool enable) { string runKey = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"; Microsoft.Win32.RegistryKey startupKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(runKey); if (enable) { if (startupKey.GetValue(AppName) == null) { startupKey.Close(); startupKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(runKey, true); startupKey.SetValue(AppName, Application.ExecutablePath.ToString()); startupKey.Close(); } } else { startupKey = Microsoft.Win32.Registry.LocalMachine

How to make my program run at startup?

天涯浪子 提交于 2019-11-28 10:31:00
I'm programming a desktop application similar to Google desktop but with my own gadget with vb.net 2008 how can i make my application when the user install it on their computer to run at the time of start up? Let assume that my application name is windowsAplication1 and I'm using windows XP and the program will be installed on C drive? Shoban You can add it to registry with the following code My.Computer.Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", True).SetValue(Application.ProductName, Application.ExecutablePath) you can remove it using My.Computer

Any way to boost JVM Startup Speed?

时光怂恿深爱的人放手 提交于 2019-11-28 09:52:42
It is said that Java is 10x faster than python in terms of performance. That's what I see from benchmarks too. But what really brings down Java is the JVM startup time. This is a test I made: $time xlsx2csv.py Types\ of\ ESI\ v2.doc-emb-Package-9 ... <output skipped> real 0m0.085s user 0m0.072s sys 0m0.013s $time java -jar -client /usr/local/bin/tika-app-0.7.jar -m Types\ of\ ESI\ v2.doc-emb-Package-9 real 0m2.055s user 0m2.433s sys 0m0.078s Same file , a 12 KB ms XLSX embedded file inside Docx and Python is 25x faster !! WTH!! It takes 2.055 sec for Java. I know it is all due to startup time,

When AppInitialize method get invoked in ASP.NET?

我们两清 提交于 2019-11-28 08:18:41
During practice of customizing VirtualPathProvider, I found that it the custom VirtualPathProvider can be registered in Global.asax or in AppInitialize method according to MSDN http://msdn.microsoft.com/en-us/library/system.web.hosting.virtualpathprovider.aspx . However, MSDN doesn't clearly describe the method AppInitialize. Does any static AppInitialize method in App_code folder will be automatically invoked by ASP.NET runtime at start up? While there is precious little documentation about the AppInitialize() method, you are correct in your assumption that any class in your App_Code folder

What makes WPF application startup slow?

廉价感情. 提交于 2019-11-28 06:33:21
I noticed that WPF application startup is sometimes pretty slow. Does anybody know if the the cause is the elements initialization or DLLs loading or something else? The text below was extracted from this MSDN article on Improving WPF applications startup time (Edit: now merged into WPF Application Startup Time ) Application Startup Time The amount of time that is required for a WPF application to start can vary greatly. This topic describes various techniques for reducing the perceived and actual startup time for a Windows Presentation Foundation (WPF) application. Understanding Cold Startup

Starting a Java application at startup

吃可爱长大的小学妹 提交于 2019-11-28 06:21:56
问题 I have a Java application. The application has a setting that decides whether or not the application starts at startup. Currently, I have it this by placing/removing a shortcut in the StartUp items folder. However, I am wondering if there is a better way to handle this behaviour. EDIT Yes, it's Windows. Sorry for not clearing that before. The application has an UI where the user may trigger actions, also the application runs a few tasks in the background periodically while running. @Peter,