![]() |
|
#1
|
|||
|
|||
|
Refresh icons on install, again
Several posts to the group have dealt with the question of icons not refreshing after installation, but none seem to address the problem I have encountered. Installshield website and IS 6 online help (updated) seem to offer no help. I am creating a start menu and desktop icon during installation. The icons are defined on the resources pane and connected to a file group that includes the icon files (ICO format), which is part of a required component. The target is specified with a relative path that may include spaces, ie. "<myDir>\subDir" After the installation, the displayed icon is the default flying windows logo. The properties of the shortcut reveal that all of the specifications (target, start folder, etc.) I made were correctly used. If I try to change the icon manually, I see that the my icon file is correctly shown. If I click "ok" in the change icon dialog and click "ok" in the shortcut properties sheet, the icon suddenly refreshes to my icon. Is something wrong with the Explorer Shell? Should I add something to my script to force the shell to refresh? My setup is Win2k with IS 6.11 (I have ordered 6.2). Your comments and suggestions are greatly appreciated. Bill ====================================== William Scharffenberg william.a.scharffenberg@usace.army.mil |
|
#2
|
|||
|
|||
|
Re: Refresh icons on install, again
Well, no one seems to have any ideas. I have quit using the IDE for icons and registry settings. At least I know that doing from the script will always work. Bill ====================================== William Scharffenberg william.a.scharffenberg@usace.army.mil "William Scharffenberg" <william.a.scharffenberg@usace.army.mil> wrote in message news:3993334e.0@208.30.171.38... > Several posts to the group have dealt with the question of icons not > refreshing after installation, but none seem to address the problem I have > encountered. Installshield website and IS 6 online help (updated) seem to > offer no help. > > I am creating a start menu and desktop icon during installation. The icons > are defined on the resources pane and connected to a file group that > includes the icon files (ICO format), which is part of a required component. > The target is specified with a relative path that may include spaces, ie. > "<myDir>\subDir" After the installation, the displayed icon is the default > flying windows logo. The properties of the shortcut reveal that all of the > specifications (target, start folder, etc.) I made were correctly used. If > I try to change the icon manually, I see that the my icon file is correctly > shown. If I click "ok" in the change icon dialog and click "ok" in the > shortcut properties sheet, the icon suddenly refreshes to my icon. > > Is something wrong with the Explorer Shell? Should I add something to my > script to force the shell to refresh? My setup is Win2k with IS 6.11 (I > have ordered 6.2). Your comments and suggestions are greatly appreciated. > > Bill > > ====================================== > William Scharffenberg > william.a.scharffenberg@usace.army.mil > > |
|
#3
|
|||
|
|||
|
Re: Refresh icons on install, again
I don't have input for you, but I'm having the same problem. -- Thank you, Tim Wittbrod Integral Technologies tel: +1-317-845-9242 fax: +1-317-845-9275 www.integraltech.com "William Scharffenberg" <william.a.scharffenberg@usace.army.mil> wrote in message news:3993334e.0@208.30.171.38... > Several posts to the group have dealt with the question of icons not > refreshing after installation, but none seem to address the problem I have > encountered. Installshield website and IS 6 online help (updated) seem to > offer no help. > > I am creating a start menu and desktop icon during installation. The icons > are defined on the resources pane and connected to a file group that > includes the icon files (ICO format), which is part of a required component. > The target is specified with a relative path that may include spaces, ie. > "<myDir>\subDir" After the installation, the displayed icon is the default > flying windows logo. The properties of the shortcut reveal that all of the > specifications (target, start folder, etc.) I made were correctly used. If > I try to change the icon manually, I see that the my icon file is correctly > shown. If I click "ok" in the change icon dialog and click "ok" in the > shortcut properties sheet, the icon suddenly refreshes to my icon. > > Is something wrong with the Explorer Shell? Should I add something to my > script to force the shell to refresh? My setup is Win2k with IS 6.11 (I > have ordered 6.2). Your comments and suggestions are greatly appreciated. > > Bill > > ====================================== > William Scharffenberg > william.a.scharffenberg@usace.army.mil > > |
|
#4
|
|||
|
|||
|
re:Refresh icons on install, again
I'm only replying to this in hopes of generating interest. I have had precisely the same problem. I have tried broadcasting to Windows that the environment has changed to no avail. i.e. I've tried: #define HWND_BROADCAST 0xffff #define WM_SETTINGCHANGE 0x001A szParameter = "Environment" pParameter = &szParameter SendMessage (HWND_BROADCAST, WM_SETTINGCHANGE, 0, pParameter) which of course refreshes environment settings. Is it possible that either WM_SETTINGCHANGE or szParameter needs to be different? I have yet to find one that will refresh the Explorer shell. Thanks in advance, Ed Freedman edwardf@eschergroup.com "Timothy Wittbrod" <twittbrod@integraltech.com> wrote in message news:3a895e3e$1@12.41.20.38... > I don't have input for you, but I'm having the same problem. > > -- > Thank you, > Tim Wittbrod > Integral Technologies > tel: +1-317-845-9242 > fax: +1-317-845-9275 > www.integraltech.com > > "William Scharffenberg" <william.a.scharffenberg@usace.army.mil> wrote in > message news:3993334e.0@208.30.171.38... > > Several posts to the group have dealt with the question of icons not > > refreshing after installation, but none seem to address the problem I have > > encountered. Installshield website and IS 6 online help (updated) seem to > > offer no help. > > > > I am creating a start menu and desktop icon during installation. The > icons > > are defined on the resources pane and connected to a file group that > > includes the icon files (ICO format), which is part of a required > component. > > The target is specified with a relative path that may include spaces, ie. > > "<myDir>\subDir" After the installation, the displayed icon is the > default > > flying windows logo. The properties of the shortcut reveal that all of > the > > specifications (target, start folder, etc.) I made were correctly used. > If > > I try to change the icon manually, I see that the my icon file is > correctly > > shown. If I click "ok" in the change icon dialog and click "ok" in the > > shortcut properties sheet, the icon suddenly refreshes to my icon. > > > > Is something wrong with the Explorer Shell? Should I add something to my > > script to force the shell to refresh? My setup is Win2k with IS 6.11 (I > > have ordered 6.2). Your comments and suggestions are greatly appreciated. > > > > Bill > > > > ====================================== > > William Scharffenberg > > william.a.scharffenberg@usace.army.mil > > > > > > |
|
#5
|
|||
|
|||
|
re:Refresh icons on install, again
I've had some luck with this, at least for refreshing icons for new file associations; perhaps another switch for SHChangeNotify (SHCNE_ALLEVENTS?) would do the trick? #define SHCNE_ASSOCCHANGED 0x08000000 #define SHCNF_IDLIST 0x0000 prototype Shell32.SHChangeNotify(LONG, LONG, POINTER, POINTER); // ...and later... SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, NULL, NULL); "Edward W Freedman" <edwardf@eschergroup.com> wrote in message news:3a8abe24$1@12.41.20.38... > [...] I have yet to find > one that will refresh the Explorer shell. -- Robert M. Dickau Senior Technical Trainer InstallShield Software Corp. www.installshield.com/training |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|