Loading jQuery into chrome-extension

Content scripts will never run in the context of an extension. The correct way to load scripts in your browser action popup is by including it in your code. Let your manifest file be: { “name”: “Test Extension”, “version”: “0.1”, “manifest_version”: 2, “options_page”: “options.html”, “browser_action”: { “default_icon”: “icon.png”, “default_popup”: “popup.html”, “default_title”: “Click me!” } } … Read more

reading an application’s manifest file?

Windows manifest files are Win32 resources. In other words, they’re embedded towards the end of the EXE or DLL. You can use LoadLibraryEx, FindResource, LoadResource and LockResource to load the embedded resource. Here’s a simple example that extracts its own manifest… BOOL CALLBACK EnumResourceNameCallback(HMODULE hModule, LPCTSTR lpType, LPWSTR lpName, LONG_PTR lParam) { HRSRC hResInfo = … Read more

Manifest does not force Visual Studio 2013 to restart under Admin when running application in Debug mode

You need to disable the hosting process option to get the VS restart prompt. Project + Properties, Debug tab, untick the “Enable the Visual Studio hosting process” checkbox. It can be easier to just start VS elevated right away. Right-click the shortcut, Run as Administrator. Not entirely sure if this is a bug or a … Read more

How to add an assembly manifest to a .NET executable?

If you want to add custom information to your application’s manifest, you can follow these steps: Right-click on the project in the Solution Explorer. Click “Add New Item”. Select “Application Manifest File”. This adds a file named app.manifest to your project, which you can open and modify as desired. Similar steps, with screenshots, lifted from … Read more

How to give my C# app administrative rights? manifest file

There’s a “trustinfo” dangling in your snippet. Make it look like this: <?xml version=”1.0″ encoding=”utf-8″?> <asmv1:assembly manifestVersion=”1.0″ xmlns=”urn:schemas-microsoft-com:asm.v1″ xmlns:asmv1=”urn:schemas-microsoft-com:asm.v1″ xmlns:asmv2=”urn:schemas-microsoft-com:asm.v2″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”> <assemblyIdentity version=”1.0.0.0″ name=”MyApplication.app”/> <trustInfo xmlns=”urn:schemas-microsoft-com:asm.v2″> <security> <requestedPrivileges xmlns=”urn:schemas-microsoft-com:asm.v3″> <requestedExecutionLevel level=”requireAdministrator” uiAccess=”false” /> </requestedPrivileges> </security> </trustInfo> </asmv1:assembly>

How to get manifest permissions of any installed Android app

Thanks for the hint,got it running with: final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); mainIntent.addCategory(Intent.CATEGORY_LAUNCHER); final List pkgAppsList = getPackageManager().queryIntentActivities(mainIntent, 0); for (Object obj : pkgAppsList) { ResolveInfo resolveInfo = (ResolveInfo) obj; PackageInfo packageInfo = null; try { packageInfo = getPackageManager().getPackageInfo(resolveInfo.activityInfo.packageName, PackageManager.GET_PERMISSIONS); } catch (NameNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } String[] … Read more