desktop-shortcut

Creating a Desktop Shortcut Using a Web Page

我的未来我决定 提交于 2019-11-28 04:09:43
问题 I am trying to create something on a webpage that allows my users to create a desktop shortcut. Because my users are NOT technically savvy, I would like to avoid having them try to drag and drop. Is there a way that I could create a button on a webpage (either using JavaScript or .Net) that automatically creates a desktop shortcut for the user?¡ 回答1: Easy way: Using what the browsers offer In Firefox, dragging & dropping a link to the desktop creates a shortcut in Windows 7. I'm sure all or

Inno Setup desktop shortcut (link) which has “Run as administrator” advanced property set

谁都会走 提交于 2019-11-28 02:16:15
问题 I am struggling to get Inno setup (5.5.9u) to created a desktop shortcut that has an icon and has the advanced property of "Run as administrator" set. Issue This question, is a little different than: How to set 'Run as administrator' on a file using Inno Setup Since what I am trying to do is not run a program at setup time with admin rights, (setup is already running at Admin), but rather leave a link on the desktop that has has the advanced property of "Run as Administrator" . Code Sample

Setting correct icon for Shortcut in VS2010 Setup Project

回眸只為那壹抹淺笑 提交于 2019-11-27 06:37:40
问题 I have a small app with a setup project. If I create a shortcut to my Primary Output, then this gets a standard Win7 icon and not the icon specified in my exe's Application Icon? Whats the best way to make sure my desktop shortcut icon is the same icon as my exe? e.g. If I change the exe's icon then I'd like the Setup icon to change as well. 回答1: If you set the icon for the shortcut you can set a primary output as source. In the file system editor of the setup project, click on the "(Icon)"

How to create a Run As Administrator shortcut using Powershell

白昼怎懂夜的黑 提交于 2019-11-27 03:15:20
问题 In my PowerShell script, I create a shortcut to a .exe (using something similar to the answer from this question): $WshShell = New-Object -comObject WScript.Shell $Shortcut = $WshShell.CreateShortcut("$Home\Desktop\ColorPix.lnk") $Shortcut.TargetPath = "C:\Program Files (x86)\ColorPix\ColorPix.exe" $Shortcut.Save() Now, when I create the shortcut, how do I add to the script to make it default to running as Administrator? 回答1: This answer is a PowerShell translation of an excellent answer to