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:
-
where test.reg is the name of the Windows Registry file.$WIN_WINDOWS$$/$regedit.exe /s "$USER_INSTALL_DIR$$/$test.reg" - 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.
Related Articles
Create a 64-bit Windows Registry Entry via an InstallScript Custom Action 9Number of Views Business Adapter Studio or MGSBI.exe fails to open adapter files if encryption details in MGSBI registry entry cannot be p… 4Number of Views Deleting a 64 bit Windows Registry Entry via an InstallScript Custom Action 5Number of Views Known Issue: Business Adapter Studio or MGSBI.exe fails to open adapter files if encryption details in MGSBI registry entr… 47Number of Views Creating File Association in Windows 9Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago