controlpanel

Custom “Repair” and “Uninstall” functions for MSI installers (when called from the Control Panel)

隐身守侯 提交于 2019-12-13 17:43:53
问题 The Add/Remove Programs (or Programs and Features ) Control Panel applet usually allows to uninstall or repair a program. For a non-MSI installation it's easy to define what should happen, when a user clicks the "Change" or "Uninstall" button. Just set the appropriate keys in the Registry ( HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\<AppName> ). My question is how to make the "Change", "Repair", and "Uninstall" buttons to work my way (e.g. to start a custom program

Modifying the Power Scheme using Batch Files in Windows XP

*爱你&永不变心* 提交于 2019-12-13 03:11:44
问题 I'm trying to write two batch files that will allow me to switch the Power Scheme (Control Panel -> Power Options -> Power Schemes Tab) from Home/Office Desk to Portable/Laptop and back. My operating system is Windows XP SP3. My reason for doing this is because I want to disable SpeedStep when I'm playing games on my laptop (i.e. put it on the Home/Office Desk scheme) and enable SpeedStep otherwise (back to Portable/Laptop). Windows XP turns turns off dynamic switching in Home/Office Desk

Hide “security warning message” in Java Control Panel

假装没事ソ 提交于 2019-12-11 04:28:31
问题 Am using applet for file downloading. I need to uncheckable few options in "java control panel" for to hide the "security waring messages" in browser(this is one time activity). But, Is there any possibility to hide the "security warning message" via java coding? Java Version: 1.7.0.25 Thanks for looking into this.. 回答1: Is there any possibility to hide the "security warning message" via java coding? No. If there was, it would be a bug. Depending on what warning is shown, it might be possible

Rails web application control panel with ajax tabs and validation

孤街浪徒 提交于 2019-12-06 15:41:10
问题 I'm looking to build a rails web app with an admin control panel. I'd like the control panel to use a tabbed interface for controlling users, projects, tasks etc, and I'd like to switch between tabs using jquery tab UI controls with ajax. Also using restful authentication for users and my own code for projects, tasks etc. Here's what I can't wrap my head around. Normally, I'd have a controller for each tab, so validation is simple, if there's an error (say in the user) i just render the

How to programmatically open control panel?

試著忘記壹切 提交于 2019-12-04 09:58:55
How do I open a custom control panel programmatically, like custom.cpl? Specifically, how do I open a 64-bit cpl when running as 32-bit application? Vista added support for canonical names so you don't have to hard code dll filenames and tab indexs Example: WinExec("%systemroot%\system32\control.exe /name Microsoft.WindowsUpdate", SW_NORMAL); (Names are always in english) See MSDN for a list XP/2000 supports "control.exe mouse" and a few other keywords, see the same MSDN page for a list (You can probably find some undocumented ones by running strings on control.exe) vividos Since I didn't find

How can you programmatically turn off or on 'Windows Features'

给你一囗甜甜゛ 提交于 2019-12-01 04:12:47
Currently, users must go into Control Panel > Programs > Turn Windows features on or off, then click on the check the box of the feature that they want to activate. I'd like to give them the ability to do this from my application. Any idea on how to automate this process via .NET (preferably in C#)? I do this using NSIS for IIS using : $Sysdir\pkgmgr.exe /n:$Temp\iis7Unattend.xml You can call the pkgmgr program from your c# program and usually you would create an unattend file with the instructions for the pkgmgr to use for the feature. You need to use System.Diagnostics.Process.Start().

Windows 10 equivalent of LaunchAdvancedAssociationUI

馋奶兔 提交于 2019-11-30 00:11:03
Since Windows 10, the IApplicationAssociationRegistrationUI::LaunchAdvancedAssociationUI method does not work anymore. On Windows Vista, 7 and 8, it opens the Control Panel on the Set Program Associations page for specified application. On Windows 10, it does nothing. It's even documented in Microsoft documentation: Starting in Windows 10, this does not launch the association dialog box. It displays a dialog to the user informing them that they can change the default programs used to open file extensions in their Settings (Even the second part of the statement is no longer true in the current

Registry settings immediate effect using C#

梦想与她 提交于 2019-11-29 15:49:36
I have used the following code to disable the control panel: RegistryKey RegKey = Registry.CurrentUser.CreateSubKey( @"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"); RegKey.SetValue("NoControlPanel", false, RegistryValueKind.DWord); RegKey.Close(); The above code disables control panel only after restarting, I would like to apply the setting immediately without restarting. Please help me. Try this... private const int HWND_BROADCAST = 0xffff; private const int WM_WININICHANGE = 0x001a, WM_SETTINGCHANGE = WM_WININICHANGE, INI_INTL = 1; SendMessage(HWND_BROADCAST, WM

How to read “List Separator” settings from Regional configuration of control panel?

独自空忆成欢 提交于 2019-11-29 05:24:22
I'm making multi culture plugin for MS Word,Excel where I need to identify setting value provided in Regional Settings under "List Separator" Option, how can I read using C# ? This List separator is later on being used to construct Excel formulas, word mail merge header, etc. Try using System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator or System.Globalization.CultureInfo.GetCultureInfo("en-US").TextInfo.ListSeparator if you look for a specific culture's information. 来源: https://stackoverflow.com/questions/6834534/how-to-read-list-separator-settings-from-regional

Cron job in a different timezone

走远了吗. 提交于 2019-11-29 03:54:20
Is there a way of setting up a cronjob for a specific timezone? My shared hosting is in USA (Virginia) and I am in UK. If I set a cron job to be executed at 1600 hrs every friday, then it will execute when its 1600 in Virginia. I was wondering if I can setup my cronjob in such a way that it understands which timezone to pick. I am not too worried about daylight saving difference. I have asked my shared hosting providers about it and they said I should be able to set the timezone in some cron ini files, but I could not find any. I think that you should check /etc/default/cron or just type