Palii Posted November 29, 2007 Posted November 29, 2007 (edited) I'd like to reference the icon for my usb drive dynamically from the host computer. This way, the drive can have its custom icon, but each host computer would have its own version of this icon.[autorun]icon="%CustomData%\Icons\Drive Custom IPod Shuffle.ico"Shortcuts of the drive use this icon path!F:\%CustomData%\Icons\Drive Custom IPod Shuffle.icoIt puts the drive's root in front, unless the path starts with a letter. Ideas? How could I solve this? Edited November 29, 2007 by Palii
Arie Posted November 29, 2007 Posted November 29, 2007 %CustomData% is not a standard environment variable, that's why it doesn't work.
Palii Posted November 29, 2007 Author Posted November 29, 2007 Arie:Thanks for the fast reply. I created a new environment variable. It works fine for all of shortcuts and other icon references...I just tried with %systemroot% as well....same result.[autorun]icon="%systemroot%\Drive Custom IPod Shuffle.ico"Now it desperately hangs on to this path:F:\%systemroot%\Drive Custom IPod Shuffle.icoMore ideas? Is there perhaps a way to reference such environment variables, but without starting the path string with a % character?
Palii Posted November 29, 2007 Author Posted November 29, 2007 (edited) The problem goes deeper than I initially suspected.....it happens with ALL icon paths!!! And open paths too!!! [autorun]icon="C:\Drive Custom IPod Shuffle.ico"Grrrrr....F:\C:\Drive Custom IPod Shuffle.icoWhat could cause this? Iconpackager? Registry? Edited November 29, 2007 by Palii
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now