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 Forum
- :
- How to load the file association without reboot
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
‎Jun 13, 2008
05:37 AM
How to load the file association without reboot
Hi, All
I use the "set windows registry - multiple entries" to add file association with the specific type of data file.
The data file's icon shows correctly only when I reboot the machine or re login.
How should we do to make the data file's icon looks correctly immediately after installation finished?
Thanks!
I use the "set windows registry - multiple entries" to add file association with the specific type of data file.
The data file's icon shows correctly only when I reboot the machine or re login.
How should we do to make the data file's icon looks correctly immediately after installation finished?
Thanks!
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 13, 2008
06:05 PM
A Windows application can call the SHChangeNotify function with the SHCNE_ASSOCCHANGED flag (searching the InstallShield Windows forums will turn up examples) to do it, so presumably launching a simple executable that calls that function or a JNI DLL that calls it would do the trick...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 16, 2008
02:52 AM
Thanks!
I write an exe file using windows API SHChangeNotify as you said. and it works fine!
But one thing in my mind is if such executable works normal in Windows Vista?
Below is my code:
#include "stdafx.h"
#include
#include
#pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" ) //this is used for hide the console window when invoking
void main()
{
SHChangeNotify(SHCNE_ASSOCCHANGED,SHCNF_IDLIST | SHCNF_FLUSH,NULL,NULL);
}
I write an exe file using windows API SHChangeNotify as you said. and it works fine!
But one thing in my mind is if such executable works normal in Windows Vista?
Below is my code:
#include "stdafx.h"
#include
#include
#pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" ) //this is used for hide the console window when invoking
void main()
{
SHChangeNotify(SHCNE_ASSOCCHANGED,SHCNF_IDLIST | SHCNF_FLUSH,NULL,NULL);
}
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)