My Libraries shortcuts don't work - windows-7

I don't know why but my Libraries shortcuts don't work anymore,
When I press on them nothing happens (nor from the start menu nor from Windows Explorer)
I think that this is something from the registry but I don't know what,
Please help me!

Sounds like something has gone wrong in your file associations, save the following as a .reg file and run it to restore .library-ms:
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\.library-ms]
[HKEY_CLASSES_ROOT\.library-ms]
#="LibraryFolder"
"Content Type"="application/windows-library+xml"
[HKEY_CLASSES_ROOT\.library-ms\ShellNew]
"Handler"="{c7ca6167-2f46-4c4c-98b2-c92591368971}"
"NullFile"=""
"IconPath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,\
00,6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,\
2d,00,31,00,30,00,30,00,31,00,00,00
[HKEY_CLASSES_ROOT\.library-ms\ShellNew\Config]
"IsFolder"=""
"IsOptIn"=""
"NoEmptyFile"=""
[HKEY_CLASSES_ROOT\LibraryFolder]
#="Library Folder"
"NeverShowExt"=""
"NoOpenWith"=""
"IncludeShare"=""
"IncludeSync"=""
"CanRecursivelySearch"=""
"NoPreviousVersions"=""
"FriendlyTypeName"="#shell32.dll,-34560"
"EditFlags"=dword:00100000
"DefaultDropEffect"=dword:00000004
"TileInfo"="prop:System.ItemTypeText"
"ExtendedTileInfo"="prop:System.ItemTypeText"
"InfoTip"="prop:System.ItemTypeText;System.DateModified"
"PreviewDetails"="prop:System.DateModified;*System.SharedWith"
"FullDetails"="prop:System.ItemNameDisplay;System.ItemTypeText;System.DateModified;*System.SharedWith"
"NoJumpListPathTooltip"=""
[HKEY_CLASSES_ROOT\LibraryFolder\background]
[HKEY_CLASSES_ROOT\LibraryFolder\background\shellex]
[HKEY_CLASSES_ROOT\LibraryFolder\background\shellex\ContextMenuHandlers]
[HKEY_CLASSES_ROOT\LibraryFolder\background\shellex\ContextMenuHandlers\New]
#="{D969A300-E7FF-11d0-A93B-00A0C90F2719}"
[HKEY_CLASSES_ROOT\LibraryFolder\background\shellex\ContextMenuHandlers\Sharing]
#="{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}"
[HKEY_CLASSES_ROOT\LibraryFolder\DefaultIcon]
#="%SystemRoot%\\System32\\imageres.dll,-8"
[HKEY_CLASSES_ROOT\LibraryFolder\shellex]
[HKEY_CLASSES_ROOT\LibraryFolder\shellex\ContextMenuHandlers]
[HKEY_CLASSES_ROOT\LibraryFolder\shellex\ContextMenuHandlers\LibraryFolder]
#="{0af96ede-aebf-41ed-a1c8-cf7a685505b6}"
[HKEY_CLASSES_ROOT\LibraryFolder\shellex\IconHandler]
#="{14074e0b-7216-4862-96e6-53cada442a56}"
[HKEY_CLASSES_ROOT\LibraryFolder\shellex\LibraryDescriptionHandler]
#="{fe5afcf2-e681-4ada-9703-ef39b8ecb9bf}"
[HKEY_CLASSES_ROOT\LibraryFolder\shellex\PropertySheetHandlers]
[HKEY_CLASSES_ROOT\LibraryFolder\shellex\PropertySheetHandlers\{66275315-bfa5-451b-88b6-e56ebc8d9b58}]
[HKEY_CLASSES_ROOT\LibraryFolder\shellex\SharingHandler]
#="{fe5afcf2-e681-4ada-9703-ef39b8ecb9bf}"
[HKEY_CLASSES_ROOT\LibraryFolder\shellex\{BB2E617C-0920-11D1-9A0B-00C04FC2D6C1}]
#="{9DBD2C50-62AD-11D0-B806-00C04FD706EC}"
[HKEY_CLASSES_ROOT\LibraryFolder\shellex\{e357fccd-a995-4576-b01f-234630154e96}]
#="{9DBD2C50-62AD-11D0-B806-00C04FD706EC}"
[HKEY_CLASSES_ROOT\LibraryLocation]
[HKEY_CLASSES_ROOT\LibraryLocation\ShellEx]
[HKEY_CLASSES_ROOT\LibraryLocation\ShellEx\ContextMenuHandlers]
[HKEY_CLASSES_ROOT\LibraryLocation\ShellEx\ContextMenuHandlers\OpenContainingFolderMenu]
#="{37ea3a21-7493-4208-a011-7f9ea79ce9f5}"
[-HKEY_CLASSES_ROOT\SystemFileAssociations\.library-ms]
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.library-ms]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.library-ms]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.library-ms\OpenWithList]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.library-ms\OpenWithProgids]
"LibraryFolder"=hex(0):

Just delete the non-working icons.
Then right click on library icon and press "Restore Original Icons".
so easy :p
Don't play with registry

Related

Can't show the whole long line in GoLand console

I wrote the code as follows:
func main() {
fmt.Println("111111111111111111111111111111111111111111111111111111111111" +
"1111111111111111111111111111")
}
Though I have unselected the checkbox of "use soft wraps in console":
The output in GoLand console is:
The output in windows cmd is:
What can I do to show the whole long line in GoLand console, just in windows cmd?
This is because GoLand 2020.1 enabled pty on Windows but default and old settings were not correctly migrated.
Before doing the workaround below, upgrade to 2020.1.2, which should solve the issue. If it doesn't, then proceed with the workaround below.
Disable go.run.processes.with.pty registry key in Ctrl+Shift+A | Registry... and this will be solved.
For more details, see the related issue.

Adding command to context menu in Windows fails

I have (exported from my Registry):
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.md]
#="markdownfile"
with a default value "markdownfile". I also have
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\markdownfile]
[HKEY_CLASSES_ROOT\markdownfile\shell]
[HKEY_CLASSES_ROOT\markdownfile\shell\MarkAPL ==> HTML5]
[HKEY_CLASSES_ROOT\markdownfile\shell\MarkAPL ==> HTML5\command]
#="\"C:\\Programs\\..." \"%1\""
Yet "MarkAPL ==> HTML" does not show; instead it shows the filename in bold.
If I create ".aa" with a default value "markdownfile" then the command shows on any file with the extension ".aa". Clearly something else is having an impact here, but what?!
It appears that when a user chooses "Start files with this extension with that application" from the Windows Explorer then sometimes - but by no means always - that takes precedence over the mechanism I tried to use.
After deleting the offending Registry entries it worked:
HKEY_USERS...\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.md\OpenWithList...

VS Code - Integrated terminal exited with code 1

My VS Code integrated terminal is only toggling up for a second then disappearing with the command Ctrl+`(Tried to change it - still not working :)),
showing the Integrated terminal exited with code 1 error.
Any ideas for fixing it?
I had the same problem on Windows 10. The problem was that I had VSCode running in compatibility mode (Windows 8). If that is that case for you, just uncheck "Run this program in compatibility mode for" checkbox in Compatibility tab of the VSCode properties, click in OK and restart VSCode.
I had the same problem just a few minutes ago, in my case this error was a path consequence, my windows user folder has an accent (c:/users/josé /..) , so, just try to move your project into another folder, like "C:/projects".
Current Solution is using a none-English named Folder as project Folder.
Here is my research:
default value "terminal.integrated.shell.windows": "C:\\WINDOWS\\system32\\cmd.exe"
Following is the debug info in VScode:
terminalInstance.ts:55 Integrated terminal exited with code 1
(anonymous function) # terminalInstance.ts:55
emitTwo # events.js:100
emit # events.js:185
ChildProcess._handle.onexit # internal/child_process.js:204
Following is debug info in Atom:
C:\Users\mzvast\AppData\Local\atom\app-1.9.1\resources\app.asar\src\task.js:52
Unable to start terminal process. Win32 error code: 267 Error: Unable
to start terminal process. Win32 error code: 267
at Error (native)
at Server. (C:\Users\mzvast.atom\packages\platformio-ide-terminal\node_modules\pty.js\lib\pty_win.js:67:9)
at emitOne (events.js:90:13)
at Server.emit (events.js:182:7)
at Pipe.onconnection (net.js:1439:8)
(anonymous function) #C:\Users\mzvast\AppData\Local\atom\app-1.9.1\resources\app.asar\src\task.js:52
(anonymous function) #C:\Users\mzvast\AppData\Local\atom\app-1.9.1\resources\app.asar\src\task.js:126
module.exports.Emitter.simpleDispatch # C:\Users\mzvast\AppData\Local\atom\app-1.9.1\resources\app.asar\node_modules\event-kit\lib\emitter.…:25
module.exports.Emitter.emit # C:\Users\mzvast\AppData\Local\atom\app-1.9.1\resources\app.asar\node_modules\event-kit\lib\emitter.…:125
(anonymous function) # C:\Users\mzvast\AppData\Local\atom\app-1.9.1\resources\app.asar\src\task.js:78emitTwo
# events.js:100
emit # events.js:185
handleMessage # internal/child_process.js:718
channel.onread # internal/child_process.js:444
The win32 error code 267 seem to be,according to microsoft:
ERROR_DIRECTORY
267 (0x10B)
The directory name is invalid.
Close vscode, create a new folder somewhere on your pc, but not inside the directory which was previously opened with vscode. Open this new directory with vscode and then try opening your terminal. If your terminal opens, then the problem was with your previous directory. This happened with me, the directory didn't exist but was listed in my file explorer. Now, whenever your start your terminal, it will start with the same directory which is opened in your vscode. In this case, the directory didn't exist or had same issues, hence the problem.
Important!!
First, try this method.
Create a dummy directory anywhere on your PC, except the present directory that
is open in your Explorer.
Save any thing that is open.
Open the dummy directory that you created File > Open a folder > 'Your Folder'
Try opening integrated terminal using View > Terminal.
If this works, then there's a problem with the directory. Create a new directory and migrate all files to that directory.
If not, then try changing the settings listed here in other answers or check whether VSCode is running in Compatibility Mode or not.
I had the same Exit code 1.. And found the solution as below..
Open the settings on Visual Studio Code and click Edit in settings.json as marked:
Change the terminal.integrated.shell.windows settings on the red marked line as you see:
just uncheck "Run this program in compatibility mode for" checkbox in Compatibility tab of the VSCode properties, click in OK and apply and restart VSCode.

Access parameter passed through custom protocol through .reg file

I am currently trying to make enable making calls from our intranet software directly through dialer.exe.
I have prepared this registry script and added it to the local registry:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\sip]
#="URL:Telephone Dialer"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\sip\DefaultIcon]
#="\"C:\\Windows\\System32\\dialer.exe\",1"
[HKEY_CLASSES_ROOT\sip\shell]
"URL Protocol"=""
[HKEY_CLASSES_ROOT\sip\shell\open]
[HKEY_CLASSES_ROOT\sip\shell\open\command]
#="\"C:\\Windows\\System32\\dialer.exe\" \"%1\""
When a link with the following protocoll: sip:123456 gets called the registry realizes that its connected with the dialer exe. Unfortunately I can't access the passed throuhg value which would be necessary to have in the dialer.exe input field in order to just press "Dial" and call the number.
What should I do different here?
I found a solution.
The following steps need to be done:
Step1: Download the Beta software from here
Step2: Extract the Dial.exe into ..\Program Files\Dial\
Step3: Create a new registry entry as following:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\sip]
"EditFlags"=hex:02,00,00,00
#="URL:Sip Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\sip\shell]
[HKEY_CLASSES_ROOT\sip\shell\open]
[HKEY_CLASSES_ROOT\sip\shell\open\command]
#="\"C:\\Program Files\\Dial\\Dial.exe\" \"%1\""
Step4: Save it as .reg and execute the file.
Step5: Check if \Windows\System32\ contains the following file: msvcr100.dll
IF it doesn't, paste in the file from the zip folder.
If it does then it's done.
Now you only need to take care, that the number you want to dial starts with sip: Example: Dial

File Replace during upgrade

We use Inno Setup(version 5.4.2) as the packaging tool to generate our installer. While upgrading our software from older version to current version,
we try to overwrite existing binaries/drivers. This is often leading to issues as some monitoring software like 'HP ArcSight Logger/Connector', 'SplunkUniversalForwarder' etc. are holding file handles on our binaries and casuing overwrite to fail. Our installer shows beolow popup message on encountering this issue each time.
"C:\Windows\System32\drivers\xxx.sys
An error occurred while trying to replace the existing file:
DeleteFile failed; code 5.
Access is denied.
Click Retry to try again, Ignore to skip this file(not recommended), or Abort to cancel installation"
Interestingly, even after above getting above pop-up, we were able to rename xxx.sys to xxx.sys.old manully. We used to suggest cusotmers to rename
xxx.sys to xxx.sys.old and 'Retry' the installation. After renaming, upgrade used to complete without any issues.
Questions
1) Is it possible to rename xxx.sys through program always, when we hit this issue.
2) Any process to reproduce the DeleteFile failed; code 5 issue?
Using the installer you can rename the existing file and install the new file using the correct file name with help from the windows registry.Remember to ask the user to reboot their computer to complete the install.Another option would be to either use the installer to rename the file and again using the window's registry to delete the unneeded file.
Window's registry allows you to delete or rename files on reboot as part of an install.
Reference to use of PendingFileRenameOperations:
http://support.microsoft.com/kb/181345
Example to rename from microsoft support:
The syntax used is (without quotes):
"\??\source file !\??\target file"
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
Value name: PendingFileRenameOperations Data type : REG_MULTI_SZ
Value data: \??\c:\temp\win32k.sys !\??\c:\winnt\system32\win32k.s
The same command can be used to delete a file as well although requires the use of nulls.
http://www.pcreview.co.uk/forums/pendingfilerenameoperations-delete-file-t1715654.html
Same example used to delete a file:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
Value name: PendingFileRenameOperations Data type : REG_MULTI_SZ
Value data: \??\c:\temp\win32k.sys\0\0\0
I hope this helps you!

Resources