cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mayurbirari
Level 5

Relative path in DIsplay icon not working

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. \App.ico, then the icon is not shown.
I'm using pure installscript project.
If anybody has the solution, please suggest.

Thanks,
Mayur.
Labels (1)
0 Kudos
(3) Replies
DebbieL
Level 17

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: \App.ico).
0 Kudos
mayurbirari
Level 5

Thanks Debbie. That works well.
But then I was wondering, how does it work when the direct physical path is hardcoded?
0 Kudos
DebbieL
Level 17

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.
0 Kudos