Icon Table
I'm stuck using the basic functionality (relative to AdminStudio) of InstEd and am having trouble modifying an existing shortcut in a vendor MSI (inside an MST of course). When I modify the shortcut to install to a different location (all users desktop instead of user desktop), the icon breaks. If I look on MSDN at the Shortcut table, it tells me I need to point the Icon field to the external key from the Icon table. If I look at the details for the Icon table, it tells me I need to create a binary file which will hold the icons. If I try to modify or create a new binary in the _Streams table, it looks like I'm supposed to point to the actual file that holds the icons (the main.exe in this case). When I do this, it actually saves the new binary over the top of the main.exe file.
I think I've worked out all the relationships that I need to use (feel free to correct me if I'm wrong), but I'm at a loss on how to create the binary file (and what to do with it once I've created it).
TIA
Brett
I think I've worked out all the relationships that I need to use (feel free to correct me if I'm wrong), but I'm at a loss on how to create the binary file (and what to do with it once I've created it).
TIA
Brett
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
anonymous_9363
13 years ago
Posted by:
AngelD
13 years ago
Posted by:
anonymous_9363
13 years ago
Posted by:
brettski
13 years ago
Thanks VBScab, I was hoping you'd take up the challenge of educating me :) . I thought one of the other post I saw here said that it could be in either _streams or binary table, but rereading it you're right, it's binary or icon tables. OK, so I've re-tried the icon table, but without luck and the binary table doesn't seem to hold any rows that seem to relate to the other shortcut icons.
In InstEd, I've gone into the Icon table. I click on the Data column for the row for the icon that used to work (not sure why it broke just because I change it's install location) and click on the "..." button to browse to the file that holds the icon files ... the application.exe. I can then click on the <- button to load the icons and save the MST. If I then run the installer, I don't get an icon. If instead I click the -> button to save the icons rather than loading it, InstEd over rights the selected file (the application.exe) changing the size to 40kB. Again, if I install it, I still don't get an icon.
So it seems like I'm looking at the correct locations; I'm guessing I'm just using InstEd incorrectly. Can you point me to what I'm doing wrong?
Thanks again for your help.
Brett
In InstEd, I've gone into the Icon table. I click on the Data column for the row for the icon that used to work (not sure why it broke just because I change it's install location) and click on the "..." button to browse to the file that holds the icon files ... the application.exe. I can then click on the <- button to load the icons and save the MST. If I then run the installer, I don't get an icon. If instead I click the -> button to save the icons rather than loading it, InstEd over rights the selected file (the application.exe) changing the size to 40kB. Again, if I install it, I still don't get an icon.
So it seems like I'm looking at the correct locations; I'm guessing I'm just using InstEd incorrectly. Can you point me to what I'm doing wrong?
Thanks again for your help.
Brett
Posted by:
brettski
13 years ago
Posted by:
brettski
13 years ago
Thanks AngelD and VBScab for your help. I don't know that I could get an Advertised Shortcut Icon to work, but if I just Null the Icon table it works for what I need this time. For some reason it doesn't uninstall still (was hoping it was just because the icon was broken), but that's the next thing to chase down.
Thanks again for your help
Brett
Thanks again for your help
Brett
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.