desktop-shortcut

Deploy a Desktop Shortcut to a Device running Windows CE 4.2 (VS2005)

怎甘沉沦 提交于 2019-12-18 10:57:22
问题 I have an application written using VS2005 in C# targeting the Compact Framework 2.0 SP2. As part of the solution, I have CAB deploy project which deploys to the device without a problem. What I can't do is create a shortcut to my application on the devices desktop. I have spent several hours reading various bits of documentation (why is the search at the MSDN site so bad?), followed the instructions but no joy. What I've done is: Add the "Windows Folder" node to the File System Created a

How do I manipulate the icon for an existing desktop shortcut using Win32?

半世苍凉 提交于 2019-12-18 07:11:42
问题 I want to be able to get the current .ico file being used for a shortcut and then change it to a different .ico file temporarily. I was planning on parsing the .lnk files manually, but I thought I might ask for an easier way here first. 回答1: Use the IShellLink interface. Here are examples from MSDN: Shell Links // CreateLink - Uses the Shell's IShellLink and IPersistFile interfaces // to create and store a shortcut to the specified object. // // Returns the result of calling the member

Inno Setup Create individual shortcuts on all desktops of all users

匆匆过客 提交于 2019-12-18 06:14:16
问题 I'm creating a shortcut on users Desktop with Inno Setup: Name: "{commondesktop}\Setup"; Filename: "{app}\Setup.exe"; WorkingDir: "{pf}\Program"; IconFilename: "{app}\Setup.ico" But users, with no admin rights, cannot delete this Shortcut, how to grant permissions to regular users, to delete this icon? Icon should be created on every user's desktop, but user should have permission to delete it. 回答1: The {commondesktop} shortcut is shared on a common desktop . So there's only one copy of the

How does Windows force “minimized” state from a desktop shortcut?

不羁岁月 提交于 2019-12-12 21:40:07
问题 I have an application that is designed to minimize to the system tray. No issues there. The problem I am having is that I cannot determine what Windows is doing to force the minimized state when I set up a desktop shortcut to that executable and launch it, such as: I put some debug outputs in the form's constructor and launched via the shortcut. I get no command line arguments and a check of WindowState yields Normal . Yet the app starts minimized to the taskbar. However, that's the rub: I

How to get the location and index of an Icon in a “.lnk” shortcut with SHGetFileInfo in C++

北城以北 提交于 2019-12-12 20:09:10
问题 I am using C++ (VS 2012) on Win7x64 and am trying to get the location and index of an icon using SHGetFileInfo with SHGFI_ICONLOCATION like this: SHFILEINFO info; memset(&info, 0, sizeof(info)); DWORD_PTR result = SHGetFileInfo(_T("C:\\Users\\Admin\\Desktop\\test.lnk"), 0, &info, sizeof(SHFILEINFO), SHGFI_ICONLOCATION); I get a 1 as result and after inspecting info.szDisplayName I see this: 0x0022CDE0 00 00 3a 00 5c 00 50 00 72 00 6f 00 ..:.\.P.r.o. 0x0022CDEC 67 00 72 00 61 00 6d 00 20 00 46

Icon not displaying for internet shortcut windows 7 on desktop

試著忘記壹切 提交于 2019-12-12 04:50:24
问题 I am creating Internet shortcut using the following code. But the icon of the shortcut which I am setting is not getting displayed in the case of desktop. But if I am manually renaming the shortcut to some other name its working fine(icon is getting loaded as shortcut image). private String CreateDeskTopShortcut(String ApplicationStartupUrl, String IconFilePath) { string deskDir = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); String UrlPath = deskDir + "\\" + "Test" +

Creating a script that creates a shortcut and then restarts the computer

匆匆过客 提交于 2019-12-12 01:58:06
问题 I need help with my code. I am trying to make a script that does 2 things: First, it creates shortcut icon on the users desktop. Second, when the user double clicks the icon a box appears asking if they want to restart their computer giving them the option to click OK to restart to CANCEL to cancel the command. When entering the script into the command prompt it just executes the restart computer option. Any help would be greatly appreciated. Here is my script: Dim answer ' ********* Main

Can I Create Chrome Application Shortcuts Programmatically from a Web Page?

℡╲_俬逩灬. 提交于 2019-12-04 10:41:49
问题 I've thought about using Chrome and HTML5 local storage to create a useful app and sell it. The problem I think I would have, however, is the delivery mechanism to get this installed on one's computer. Let's say the app was wikipedia.com (although it isn't). Manually one can go there with Chrome, then choose the wrench icon, Tools, Create Application Shortcuts, and make a desktop and application menu icon for the app. Okay, fine, but is there a way I can compose a web page link or form button

Create Shortcut in .Net for 64-Bit Machines - Compiled as 64-bit Application Only [duplicate]

只谈情不闲聊 提交于 2019-12-04 05:33:57
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Creating application shortcut in a directory There is a lot of code floating around showing how to create a shortcut in .Net, but it only works when compiled as a 32 bit application. You can't use IWshRuntimeLibrary.WshShell in a 64 bit application. Does anyone know how to create short-cuts in 64 bit applications? Note, I'm not looking for a way to do it while installing either. This is for post-install purposes

How to define the website screen shortcut icon?

做~自己de王妃 提交于 2019-12-03 04:25:55
问题 I can't find how to make Android use a custom icon (e.g. the favicon or the app-touch image that iOS uses) for a website shortcut. Can you give me a hint? 回答1: Android uses a home screen image AND a "Shortcut icon" (like favicon). If you only specify the home screen icon, the web page will not display an icon next to the URL in the web browser. The "shortcut icon" must be listed separately, even though it can be the same file. <link rel="shortcut icon" href="http://yourdomain.com/path/icon57