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
- :
- InstallShield
- :
- InstallShield Forum
- :
- FileType Questions
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 30, 2009
03:13 PM
FileType Questions
I have a file extension that I want my program to open. I added the file type to my exe component, and it does open using my application. However I want the files to use a different icon than my executable is, and I don't see how to set that up.
Example of what I want:
App1.exe uses xxx.ico
samplefile.myext Opens with App1.exe, but uses yyy.ico
Also, I don't see the file type association in Tools -> Folder Options -> File Types in windows explorer.
Edit: using Basic MSI Project
Example of what I want:
App1.exe uses xxx.ico
samplefile.myext Opens with App1.exe, but uses yyy.ico
Also, I don't see the file type association in Tools -> Folder Options -> File Types in windows explorer.
Edit: using Basic MSI Project
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 01, 2009
07:38 AM
Create your extension name similar to
HKEY_CLASSES_ROOT\.xps and value as Default - abc.xyz.Doc
now create another key
HKEY_CLASSES_ROOT\abc.xyz.Doc under this create a key called DefaultIcon and create it's value as the icon.
You can embed this icon in the exe file of your choice and then get the index of it. google "File associations" This will give you all the details about this file associations and implement this in the installscript function. Use this function as a custom action in MSI projects.
Regards
Prashant Lade
HKEY_CLASSES_ROOT\.xps and value as Default - abc.xyz.Doc
now create another key
HKEY_CLASSES_ROOT\abc.xyz.Doc under this create a key called DefaultIcon and create it's value as the icon.
You can embed this icon in the exe file of your choice and then get the index of it. google "File associations" This will give you all the details about this file associations and implement this in the installscript function. Use this function as a custom action in MSI projects.
Regards
Prashant Lade
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 01, 2009
11:34 AM
you can do this in the advanced view for the component that contains the executable file that will be associated with the extension once you specify a progID for the extensions. I have found that in order to get the progID to show in the lists of the File Types view you have to click off the view and come back to it. Selecting the ProgID associated with your extension will allow you to set the icon file for the files of that extension type.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 02, 2009
09:56 AM
Lurean wrote:
you can do this in the advanced view for the component that contains the executable file that will be associated with the extension once you specify a progID for the extensions. I have found that in order to get the progID to show in the lists of the File Types view you have to click off the view and come back to it. Selecting the ProgID associated with your extension will allow you to set the icon file for the files of that extension type.
Perfect thanks
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)