This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Knowledge Base
- :
- Create a Windows Registry Entry with Type REG_NONE for Windows File Type Association
Subscribe
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Create a Windows Registry Entry with Type REG_NONE for Windows File Type Association
Create a Windows Registry Entry with Type REG_NONE for Windows File Type Association
Summary
This article discusses how to configure an installer to create a Windows Registry entry with Type REG_NONE for Windows file type association.Synopsis
Since there is currently no built-in functionality for configuring an installer to register Windows file type associations, it is necessary to configure the installer to create the necessary Windows Registry entries instead. To accomplish this, it may be necessary to create a Windows Registry entry of Type REG_NONE, as described in the Microsoft documentation here, specifically under the OpenWithProgIDs Section.Discussion
InstallAnywhere currently does not support creating a Windows Registry entry of Type REG_NONE through the Set Windows Registry Entry Action. So this article discusses a possible workaround.Here are the steps for the possible workaround:
- Create a new text file in a text editor.
- Define the Windows Registry entry. For example:
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\MyIATest\MyNewKey] "MyProgID"=hex(0):
- Save the text file as a Windows Registry (.reg) file. For example, test.reg without the .txt file extension.
- Create a project in the InstallAnywhere IDE.
- Add the Windows Registry file to $USER_INSTALL_DIR$ under the Install Task.
- Add an Execute Script/Batch file Action after this File Action.
- Configure the Execute Script/Batch file Action with the following Script:
-
$WIN_WINDOWS$$/$regedit.exe /s "$USER_INSTALL_DIR$$/$test.reg"
where test.reg is the name of the Windows Registry file. - Build the project.
- Run the installer as an Administrator.
Additional Information
There is an Enhancement request for functionality for creating a Windows Registry entry of Type REG_NONE through a Set Windows Registry Entry Action with Issue# IOJ-1734266.For more information about the Set Windows Registry Entry Action, see this article.
No ratings