Using custom icons
Posted: Wed Jan 19, 2011 8:04 am
My installer is capable of installing several different versions of our product, tailored to different OEMs.
A previous (InstallAware 9) version of my installer had multiple blocks of code for creating desktop and taskbar shortcuts. In the Create Shortcut dialog, Icon File Path, I provided the path to each OEM's icon file to be used; this path is local to the machine where I build the installer. The installer, run on another PC, created the shortcut with the correct icon, indicating that the icon file had been _built_into_ my installer.
InstallAware 10 introduced the native engine, allowing variables to be used in the icon file path field. So I have used that, allowing me to delete my near-duplicate blocks of code for each OEM. Excellent.
The installer creates shortcuts with the correct icon when run on my PC, which I used to make the installer.
However when I run it on another PC, the shortcuts have white icons.
The shortcut's properties indicate that the path for the icon is the local path on my PC.
So now, with the native engine and using a variable in the icon path, it appears that my icons are not being built into my installer.
Is this the expected behaviour, and if so can someone suggest a workaround, please? Or is this a bug in IA 10, native engine? I expect it's to do with exactly when the string is 'cooked' and the variables are interpreted. In order for it to work as I need, that would have to be done at the time my installer is being built.
Thanks for any advice.
A previous (InstallAware 9) version of my installer had multiple blocks of code for creating desktop and taskbar shortcuts. In the Create Shortcut dialog, Icon File Path, I provided the path to each OEM's icon file to be used; this path is local to the machine where I build the installer. The installer, run on another PC, created the shortcut with the correct icon, indicating that the icon file had been _built_into_ my installer.
InstallAware 10 introduced the native engine, allowing variables to be used in the icon file path field. So I have used that, allowing me to delete my near-duplicate blocks of code for each OEM. Excellent.
The installer creates shortcuts with the correct icon when run on my PC, which I used to make the installer.
However when I run it on another PC, the shortcuts have white icons.
The shortcut's properties indicate that the path for the icon is the local path on my PC.
So now, with the native engine and using a variable in the icon path, it appears that my icons are not being built into my installer.
Is this the expected behaviour, and if so can someone suggest a workaround, please? Or is this a bug in IA 10, native engine? I expect it's to do with exactly when the string is 'cooked' and the variables are interpreted. In order for it to work as I need, that would have to be done at the time my installer is being built.
Thanks for any advice.