View Full Version : Relative path in DIsplay icon not working

01-13-2009, 06:55 AM
I want to show a custom icon in the As remove programs. SO I am setting Display Icon property in the General Information->Add or Remove Programs view.
The problem is that when I hardcode the actual physical path then the icon is showing up correctly. But when I try to give relative path for eg. <ISPROJECTDIR>\App.ico, then the icon is not shown.
I'm using pure installscript project.
If anybody has the solution, please suggest.


01-13-2009, 08:42 AM
In InstallScript projects, the path that you specify should be the path on the target system, not on your development system. You can use system variables in your path (for example: <TARGETDIR>\App.ico).

01-14-2009, 03:36 AM
Thanks Debbie. That works well.
But then I was wondering, how does it work when the direct physical path is hardcoded?

01-14-2009, 09:19 AM
If your UI dialogs allow end users to change the destination path of your product, and they do change the path, the hard-coded path for the icon will be wrong. What if, for example, you hard-code a value that begins with C:\, but an end user doesn't have a C drive? I think in many cases, hard-coding the path is not recommended.