I want to run a .reg file inside an NSIS installer. My registry file is:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers\{adeba497-0484-4d69-aff3-d7c759f21d15}]
#="SampleV2CredentialProvider"
[HKEY_CLASSES_ROOT\CLSID\{adeba497-0484-4d69-aff3-d7c759f21d15}]
#="SampleV2CredentialProvider"
[HKEY_CLASSES_ROOT\CLSID\{adeba497-0484-4d69-aff3-d7c759f21d15}\InprocServer32]
#="SampleV2CredentialProvider.dll"
"ThreadingModel"="Apartment"
I tried to run:
WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers\{adeba497-0484-4d69-aff3-d7c759f21d15}" "SampleV2CredentialProvider"
WriteRegStr HKCR "CLSID\{adeba497-0484-4d69-aff3-d7c759f21d15}" "SampleV2CredentialProvider"
These are not working for me, and also, I don't know what I should say about the last registry. Can you please help me?
I've solved the problem using SetRegView. As I was working on a 64-bit operating system, it was trying to look to the registries as a 32bit register by default. Because of that, nothing was happening to my registry file. Setting SetRegView to 64 solved the problem for me.
SetRegView 64
WriteRegStr "HKLM" "SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers\{adeba497-0484-4d69-aff3-d7c759f21d15}" "" "SampleV2CredentialProvider"
WriteRegStr "HKCR" "CLSID\{adeba497-0484-4d69-aff3-d7c759f21d15}" "" "SampleV2CredentialProvider"
WriteRegStr "HKCR" "CLSID\{adeba497-0484-4d69-aff3-d7c759f21d15}\InprocServer32" "" "SampleV2CredentialProvider.dll"
WriteRegStr "HKCR" "CLSID\{adeba497-0484-4d69-aff3-d7c759f21d15}\InprocServer32" "ThreadingModel" "Apartment"
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...
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
I code signed my Installer/Uninstaller.exe using the below code:
signtool sign /f "mycert.pfx" /p Westell1 /t http://timestamp.verisign.com/scripts/timstamp.dll "Installer.exe"
After the code sign, when I tried to run the Installer.exe on Windows Vista 32/64 bit systems, the UAC screen not displaying the application name correctly ("Installer.exe"). It displays the application name as "Insf3e3.tmp".
Thanks in advance for the help
The text that UAC displays isn't the filename, it's the FileDescription field from the version resource in your executable.
If you're building Installer.exe yourself, you need to add a suitable version resource in your .rc file:
VS_VERSION_INFO VERSIONINFO
...
VALUE "FileDescription", "My Application"
If Installer.exe comes from an install builder, you need to look up how to set that string when you build your installer. For example, with InnoSetup you would say:
[Setup]
VersionInfoDescription=My Application
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