Creating application shortcut in a directory

It’s not as simple as I’d have liked, but there is a great class call ShellLink.cs at vbAccelerator This code uses interop, but does not rely on WSH. Using this class, the code to create the shortcut is: private static void configStep_addShortcutToStartupGroup() { using (ShellLink shortcut = new ShellLink()) { shortcut.Target = Application.ExecutablePath; shortcut.WorkingDirectory = … Read more

How can I add a keyboard shortcut to an existing JavaScript Function?

An event handler for the document’s keyup event seems like an appropriate solution. Note: KeyboardEvent.keyCode was deprecated in favor of key. // define a handler function doc_keyUp(e) { // this would test for whichever key is 40 (down arrow) and the ctrl key at the same time if (e.ctrlKey && e.key === ‘ArrowDown’) { // … Read more

Wix create non advertised shortcut for all users / per machine

Sorry if it’s bad etiquette to answer my own question. Recently I stumbled upon the information on DISABLEADVTSHORTCUTS property. I created an install with advertised shortcuts and set the DISABLEADVTSHORTCUTS property to 1 which produced non-advertised shortcuts. This bypasses ICE43 errors because an advertised shortcut can use a file as a keypath. Because DISABLEADVTSHORTCUTS has … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)