-
I created a VB6 program that could open a file with a custom file extension (******.msw). Windows recognizes the msw only when I manually set it up in the file options--file types. This would be hassled for me to do if I am distributing the program to many users. How can I make this setup automated when the users install the program? Is there a way to do in VB code or need to configure in the Package and Deployment Wizard??? Thanks!
-
There are registry changes that can be made to do this, unfortunately the P&D wizard doesn't give this option.
You can either
1) add this feature to the P&D wizard as the vb project comes with vb6 and lets you modify and recompile it (MSDN has the details)
2) Use a different program!
I use Inno, it's free, it has more options for registry, icons, uninstall etc. The compression's better and it compiles to single executable. (also looks better to the user) You have to write a script for it to work but there are examples and once you have a template it's easy.
I sometimes use the P&D wizard just to see what files are needed and need registering, then use INNO to distribute.
You can get it here http://www.jordanr.dhs.org/
-
My application automatically ask you for associations when you start it the first time. It opens the options window showing the current associations. You can check any registry value for the validation for the association. The advantage is that you can change the associations from your program whenever you want.