Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Icon/url deployment to win7/8/xp pc's?  Best tool / method?

Posted on 2013-06-03
9
Medium Priority
?
384 Views
Last Modified: 2013-06-05
I need to deploy this custom icon/shortcut onto dektop pc's running xp/win7/win8 (some internal employees, some outside customers).

I created an .ICO (icon) file and want it associated with a .URL file which I need to deploy to users.

I copied the icon into c:\windows , and set the properties of the .url to point to that.

I used Inno Setup to push the icon files to c:\windows and the url to the common desktop.

This seems kinda clunky, and relies on the destination pc having a folder: c:\windows.

Is there a better way?

Any thoughts?  (did I mention: needs to be FREE!)

BTW, I do own a copy of winrar

Thanks,
Mike
0
Comment
Question by:mike2401
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 25

Expert Comment

by:SStory
ID: 39218794
Assuming you are developing for Windows you can almost guarantee C:\windows, but you could use an environment variable %HOMEDRIVE% instead of C: if you are worried. If you want it to be cross platform then this is not a great idea.  Are you referring to a favicon that will appear in the browser by the url or an icon on the page for some reason? If on the page then you could embed it in the HTML page as base64 encoded and use an <img> to get to that and avoid the extra file.
0
 

Author Comment

by:mike2401
ID: 39218889
thanks for the reply.

I'm referring to having a custom icon/url on the desktop, instead of a blue-E.

As for environmental variables, I'll have to check to see if that is permissible inside the .url file:

[DEFAULT]
BASEURL=https://www22.verizon.com/foryourhome/OrderStatus/OrderStatusResults.asp
[InternetShortcut]
URL=http://dataproplus.xiscirc.com:8080/DataPro
Modified=50250251E7C0C40134
IconFile=C:\WINDOWS\curtisdatapro.ico
IconIndex=0
HotKey=0
IDList=
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
0
 
LVL 25

Expert Comment

by:SStory
ID: 39219196
Well, it depends upon your target platform really. c:\windows will be on a windows pc on 99.9% of all of them.

You can drop to a command prompt, type SET and press enter to see all the environment variables for locations where you might put it otherwise. If it is just to be used by the user that installed it then their profile root would be good. On 7 this is
c:\users\<username>\

on XP it is c:\documents and settings\<username>\

If this is a setup program you probably have variables that can tell it to use APPDATA\YourAppName\curtisdatapro.ico and it would create

(or LOCALAPPDATA)

C:\Users\<USERNAME>\AppData\Roaming\CurtisDataPro

or

C:\Users\<USERNAME>\AppData\Local\CurtisDataPro
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 25

Accepted Solution

by:
SStory earned 2000 total points
ID: 39219218
Here is a free installer system:

http://sourceforge.net/projects/nsis/

Will this be installed from CD, or a zip file or what?  Basically you could use ZipGenius to create a self executing zip file that when clicked on will uncompress and then run setup.exe.  That setup.exe could be any program you want to write, including a dotnet setup.exe if you can assume dotnet will be there, or a Windows C program if not. You could then make it do anything.  Is your app all online and you just need the icon to point to that website?  You will definitely have to install the .ICO somewhere, unless you can use a favicon on that HTML page and when you create a shortcut to it on the desktop it uses that.

These are just some thoughts.  I have actually at one time, done like Microsoft does and wrote my on straight Visual C setup.exe app that merely displayed links on it to things it would run to install thing x then y from a CD. So there are lots of options.
0
 

Author Comment

by:mike2401
ID: 39219318
Thanks @SStory.  Good point about the self extracting zip.  I think at one point I did it that way, but don't remember why I stopped.

Essentially, the "setup" is really just copying the .url to the desktop and .ico to c:\windows .

I can't see why a self extracting zip wouldn't be able to do it.

Mike
0
 
LVL 25

Expert Comment

by:SStory
ID: 39220395
The only thing of the self extr. zip is that it expects a setup.exe. Zip Genius will do this if the setup contains a setup.exe file.
0
 

Author Comment

by:mike2401
ID: 39222111
Thanks again @SStory.  Since I finally got my inno script to work by upgrading to the latest version, and running it on win7, I got over the hump.  I will close the call with my gratitude, and the next time I need to do it, I will try your suggestions.

Regards,
Mike
0
 

Author Closing Comment

by:mike2401
ID: 39222116
Thanks!
0
 
LVL 25

Expert Comment

by:SStory
ID: 39223690
You are welcome!
0

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Progress

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question