I don't know if it's the right thing to do but this does the trick for me: #include <shlobj.h>
int wmain(int argc, wchar_t* argv[]) { SHChangeNotify(0x08000000, 0, NULL, NULL); return 0; } -----Original Message----- From: Brad Smith [mailto:brads...@tpg.com.au] Sent: 28 August 2011 15:04 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Application's icons still appearing in windows Explorereven after uninstall Hi, I'm registering a filetype associated with my program's executable in Windows 7, and it works perfectly: ... <!-- Registration of file types --> <ProgId Id='WixExample01.wixexample' Description='WixExample01 data file'> <Extension Id='wixexample' ContentType='application/wixexample'> <Verb Id='open' Command='Open' TargetFile='WixExample01.exe' Argument='"%1"' /> </Extension> </ProgId> ... However, I noticed that after the application is uninstalled, the application's data files *still* have the icon viewable with the data files. (i.e. 'MyDataFile.wixexample' still has the application icon viewable in Windows Explorer). I noticed the associated entry in the registry has correctly been removed (i.e. Under HKEY_CLASSES_ROOT\.wixexample) along with all the other things typical with an uninstall. When I log off or restart the machine, the icons are correctly removed. It's as if windows needs a 'refresh'. I get the feeling this is a windows or windows installer issue, and not really a Wix problem. Can anyone point me in the right direction so the icons in the application's data files disappear immediately after an uninstall occurs? Thank-you. ----------------------------------------------------------------------------- - EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ------------------------------------------------------------------------------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users