manifest

Is it possible to start a process with uiAccess=true from another process with uiAccess=true

别来无恙 提交于 2019-12-06 14:43:51
问题 A process is already running that has uiAccess=true in it's manifest. Is it possible for this program to start another such process with uiAccess=true ? Currently, whenever Process.Start is called for the second process a Win32Exception is thrown with message: The requested operation requires elevation Running the first process as Administrator stops the failure however this is not an option for me. I know it is possible to do this from a service using SetTokenInformation etc. (and I'm

Adding his application to the “add to Home screen”/“Shortcut” section

ぐ巨炮叔叔 提交于 2019-12-06 14:07:27
In my android application, I create shortcuts by code to some activities within my application. I do this feature by using the broadcast: intent.setAction("com.android.launcher.action.INSTALL_SHORTCUT"); sendBroadcast(intent); and that's cool, that really work! Now I would like to do something different: I have seen that some actions can "register" somewhere to be added in the Android menu, when you long press on the Home like this one: http://www.androidtapp.com/wp-content/uploads/2010/02/UltimateFaves-Add-Home-Screen-Shortcut.jpg So my main question is the next one: How is that possible to

Modify exe manifest of InstallShield X (Version 10.5)

ⅰ亾dé卋堺 提交于 2019-12-06 11:51:58
I have InstallScript Project created with InstallShield X (Version 10.5) When I run mt.exe from Windows SDK v7.1A with the following manifest: MySetup.exe.manifest <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> <security> <requestedPrivileges> <requestedExecutionLevel level='requireAdministrator' uiAccess='false' /> </requestedPrivileges> </security> </trustInfo> </assembly> using the following command: # wrong file! MySetup.exe will be truncated! mt.exe

Chrome Extension - Find all open tabs and execute script on all

给你一囗甜甜゛ 提交于 2019-12-06 10:42:32
问题 Trying to modify my code for when the extension button is clicked, it will execute on all open tabs instead of only the active one. background.js chrome.browserAction.onClicked.addListener(function(tab) { chrome.tabs.executeScript(null, { file: "jquery-2.1.0.min.js" }, function() { chrome.tabs.executeScript(null, {file: "change.js"}); }); }); manifest.json { "manifest_version": 2, "name": "GSHOP", "version": "2", "description": "I do Stuff", "background": { "persistent": false, "scripts": [

EventSource in .NET 4.6 & Event Viewer

有些话、适合烂在心里 提交于 2019-12-06 10:25:37
问题 I'd like to ask a very specific question about writing to the event viewer using the System.Diagnostics.Tracing.EventSource and .NET 4.6 class. In the past, if you wanted to use the event viewer channels you needed to write/generate an XML manifest and register it with the operating system. Is this still the case? If so I'm struggling to find out how to get the build to generate the manifest, I belive this is possible with the EventSource nuget package, but I'd like to use the in built class

How to have android action bar back button return to fragment

半城伤御伤魂 提交于 2019-12-06 09:46:39
Hello all I have implemented a back button in the action bar in my app but I dont know how to return from an activity to a fragment or a fragment to fragment. so if someone could show me how to return from an activity to a fragment or even a fragment to another fragment that would be amazing. Here is the code i have right now public class Article extends Activity{ private WebView webview; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.articleview); // etc... getActionBar().setDisplayHomeAsUpEnabled(true); Bundle b =

Manifest Merger Failed - support:appcompat-v7:26.+

为君一笑 提交于 2019-12-06 08:33:33
问题 Error:Execution failed for task ':app:processDebugManifest'. Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:cardview-v7:25.3.1] AndroidManifest.xml:24:9-31 is also present at [com.android.support:appcompat-v7:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1). Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:22:5-24:34 to override. I am trying to make an App with a target SDK of

UAC: Manifest file is ignored

依然范特西╮ 提交于 2019-12-06 07:25:40
One of my Executables writes some configuration into a XML file to C:\Program Files\MyApp\config.xml. It needs to run as Administrator on Vista / Server 2008, otherwise the OS won't let it write to that location. I included a manifest file named config.exe.manifest, to automatically request administration rights at launch. Here's my manifest file: <?xml version="1.0" encoding="utf-8"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security> <requestedPrivileges> <requestedExecutionLevel level=

Is it possible to modify assembly manifests other than by ILDASM/ILASM hacking?

99封情书 提交于 2019-12-06 07:16:30
问题 We have a customer who have two .NET assemblies, A and B: Assembly A references assembly B. Assembly A is unsigned, not obfuscated, no source code is available. Assembly B is signed, not obfuscated, there is source code available. I want to modify assembly A and change the manifest so that instead of referencing a signed version of B, it references an unsigned version. I know it's possible using ILDASM to dump the IL, edit the references then recreate using ILASM, but is there a better way?

Android AppWidget Configuration - Start in new task

天大地大妈咪最大 提交于 2019-12-06 06:24:45
问题 I've searched and searched and searched for this! So I've got an app widget and it has a configuration activity that I can open when pressing a button on the app. The scenario is: Had the app opened. Closed the app with the home button. Selected to add my widget I have configured the widget. Placed on my home screen Then open the configuration activity again with the button on the widget. Cancel the new config by pressing back will put me back into the app. When pressing back I want to just