PDA

View Full Version : Problem with icon and space in Add/Remove applet



san_patil
05-10-2004, 11:44 AM
Hi Folks,

I have two problems , and any inputs on it will be highly appreciated.

After I have installed by product and when I go to the "Add/Remove Program" applet of windows from the control panel,

1. The icon it shows associated with my product is random ( it shows any wierd icon belonging to other products associated with my product). How do I assocaite my icon to the product in the add remove program

2. The space occupied by my product is only around 5 MB , but the windows "Add/Remove" applet shows weird space occupied by my product .. some times it shows 300 MB sometimes .. 2GB etc.
How do I display correct space occupied by my product in the "Add/Remove Progarms" applet.

I am using Installshield 9.0 , Installscript project..

thanks much
Sandeep !

Paul Boerefijn
05-11-2004, 02:13 AM
Hi Sandeep,

You can solve problem 1 by using this source in the OnMoved section. With this source you can add the extra information in the Add/Remove panel:

if (SYSINFO.WINNT.bWin2000) || (SYSINFO.WINNT.bWinXP) then
//Extra settings in Add/Remove programs
//Only add the icon if the operating system is Windows 2000/XP
svKey="Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\"+PRODUCT_GUID;
svIconFile=TARGETDIR ^ "\\YourPath\\YourIcon.ico";
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
RegDBSetKeyValueEx(svKey,"DisplayIcon" , REGDB_STRING, svIconFile,-1 );
RegDBSetKeyValueEx(svKey,"InstallLocation" , REGDB_STRING, TARGETDIR, -1 );
RegDBSetKeyValueEx(svKey,"Publisher" , REGDB_STRING, IFX_COMPANY_NAME, -1 );
RegDBSetKeyValueEx(svKey,"Contact" , REGDB_STRING, "info@YourOrg.com", -1 );
RegDBSetKeyValueEx(svKey,"DisplayVersion" , REGDB_STRING, IFX_PRODUCT_VERSION, -1 );
RegDBSetKeyValueEx(svKey,"HelpLink" , REGDB_STRING, "http://YourOrg.com", -1 );
RegDBSetKeyValueEx(svKey,"HelpTelephone" , REGDB_STRING, "+31 348 123 456", -1 );
RegDBSetKeyValueEx(svKey,"URLUpdateInfo" , REGDB_STRING, "http://www.YourUpdateSite..com", -1 );
RegDBSetKeyValueEx(svKey,"Comments" , REGDB_STRING, @SW_COMMENT, -1 );
endif;


Regards,

Paul