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
- :
- Display icon to my application at ADD/Remove program
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
‎Jan 03, 2006
01:54 AM
Display icon for Add/Remove program in Installshield Multiplatform 11.5
I am facing an issue with installable created using Installshield Multiplatform 11.5 for Windows. The add/remove program corresponding to the installed version of the product picks up an icon from the installed folder which is not the correct one.
Is there any way to configure an icon for Add/Remove programs? In registry, for many other products, there is property called as DisplayIcon. If the DisplayIcon value is set for the product, it shows correct icon in Windows Add/Remove program. Is there any way to that in Installshield 11.5?
Thanks in advance.
Is there any way to configure an icon for Add/Remove programs? In registry, for many other products, there is property called as DisplayIcon. If the DisplayIcon value is set for the product, it shows correct icon in Windows Add/Remove program. Is there any way to that in Installshield 11.5?
Thanks in advance.
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 20, 2006
12:31 AM
You can set the customized Icon for your product in ADD/Remove Programs by setting DisplayIcon key in registry for your product,
I think your are already aware of that, by set the customized display icon we need to create one .reg file with following contents
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Your_product]
"DisplayIcon"="icon file location"
replace all \ with \\
then exceucte this file after install action in ISMP
you need to execute this file using following command
regedit.exe /S your_registry_file
Hope this will help you,
Shankar
I think your are already aware of that, by set the customized display icon we need to create one .reg file with following contents
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Your_product]
"DisplayIcon"="icon file location"
replace all \ with \\
then exceucte this file after install action in ISMP
you need to execute this file using following command
regedit.exe /S your_registry_file
Hope this will help you,
Shankar
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 08, 2006
04:44 AM
Is there some other way to configure icon displayed in Add/Remove programs menu except modifying win registry? Actually, modifiying the regisrty isn't the appropriate behavior for my installer. Maybe there is some possibility to configure displayed icon in InstallShield IDE?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 21, 2006
11:11 AM
Is there some other way to configure icon displayed in Add/Remove programs menu except modifying win registry?
None that Ive seen. Ive struggled with this issue as well, and just bit the bullet with the Windows Registry Update bean. One thing you need to be cautious of that I found is that your user needs to have admin privileges on the machine when installing, or this bean will explode, throw exceptions, and the install will fail. I used the AdminCondition bean to check first if the user is admin before fiddling with the registry.
Best of luck
-Dave
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 09, 2008
05:40 PM
I am new to InstallShield, not sure this answers your question.
After open the InstallShield project, on the left side, there is a folder named "Installation Information", (the first folder in my project) the first attribute is "General Information", click it. In the middle pane, click "General Information", there is a sub attribute called "Add or Remove programs", click it. on the right pane, the first row is "Display Icon", just input the icon file name, normally one of your exe files, then build.
Good luck and please let me if this solves your problem.
Charlie
After open the InstallShield project, on the left side, there is a folder named "Installation Information", (the first folder in my project) the first attribute is "General Information", click it. In the middle pane, click "General Information", there is a sub attribute called "Add or Remove programs", click it. on the right pane, the first row is "Display Icon", just input the icon file name, normally one of your exe files, then build.
Good luck and please let me if this solves your problem.
Charlie
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 06, 2008
04:38 AM
Hello All
I am trying the same .
I am trying to
copy my my .reg file to $V(IS_DESTINATION) using copy file then
windows registry update using action called "Windows Registry Update"
giving the path as $V(IS_DESTINATION)/myreg file
my .reg has following content ;
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\our_GUID
"Display Icon" = "$P(absoluteinstallLocation)/file.ico
I am using one execute process to execute process to execute my .reg file.
but at the end of installation it is asking me do you want update the registry if say yes or mo it will say it can not open my .reg file .
but the icon is not changed at the ARP still it is default one
If Any hints or sugesstion are appriciated ::confused:
I am trying the same .
I am trying to
copy my my .reg file to $V(IS_DESTINATION) using copy file then
windows registry update using action called "Windows Registry Update"
giving the path as $V(IS_DESTINATION)/myreg file
my .reg has following content ;
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\our_GUID
"Display Icon" = "$P(absoluteinstallLocation)/file.ico
I am using one execute process to execute process to execute my .reg file.
but at the end of installation it is asking me do you want update the registry if say yes or mo it will say it can not open my .reg file .
but the icon is not changed at the ARP still it is default one
If Any hints or sugesstion are appriciated ::confused:
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 22, 2008
03:45 PM
Instead of using a .reg file to update the registry write some Java code to do it. I have had success using java code to update the icon for add/remove programs .
public void onUpdateAddRemove(com.installshield.event.wizard.WizardActionContext arg0)
{
try {
String icon = arg0.resolveString("$PATH($P(absoluteInstallLocation)/junk1.ico)");
String installLocation = arg0.resolveString("$P(absoluteInstallLocation)");
installLocation = FileUtils.normalizeFileName(installLocation, '/');
// Product_bean is the Bean ID for the Product
// Installation Design -> Product Name -> Advanced -> Bean Id
String uid = arg0.resolveString("$P(bean5.key.UID)");
int hash = installLocation.hashCode();
String uidandhash = uid + hash;
arg0.getServices().getISDatabase().setVariableValue("ICON",icon );
arg0.getServices().getISDatabase().setVariableValue("HASHKEY",uidandhash);
ProductService ps = ( ProductService )arg0.getService( ProductService.NAME );
ps.setRetainedProductBeanProperty( ps.DEFAULT_PRODUCT_SOURCE, "bean5", "registryKey", uidandhash );
} catch(ServiceException se) {
arg0.logEvent(this,Log.ERROR, se.getMessage());
} catch(ISDatabaseException s) {
arg0.logEvent(this,Log.ERROR, s.getMessage());
}
}
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)