views:

333

answers:

3

I want to add a shortcut to the start menu group with following specifications:

  1. It should point to a website, say www.xyz.com
  2. It should have some custom icon
  3. I need to pass some parameters to it, like www.xyz.com?lang=XXXX. Where XXXX is language code e.g. 1033, 1036, etc. and it's dependent on the language chosen by the user for my application.

Please help.

A: 

if the website is always the same you could try including one shortcut.url inside your package for each language that you support and install only the one for that specific language on the disk. this way you could also control the shortcut that gets used for the .url file.

Gabriel
Thanks for the reply but this is not what I wanted.This will install a shortcut which will always point to the website with only one language, irrespective of what language chosen in the application. The shortcut is supposed to send the language selected in the application.
Nocturnal
sorry if I wasn't clear enough - the solution that i propose is to include one .url for every language and then filter the one that gets installed depending on the language the user chooses.
Gabriel
Sorry for delayed reply, but, This will also put a shortcut with one language only - in which the software is installed - right?And what I wanted was, that shortcut should point to the language selected in the application and not installed language. Anyways, I have a working solution now. Thanks for the efforts :)
Nocturnal
A: 

I found a work-around for this problem. I made an executable which parses stored language and then calls ShellExecute to start the default browser with required url and language option. I added a shortcut to this executable in the start menu, icon was included in the executable itself.

Nocturnal
A: 

Hello

I am stuckup in the same problem. if you have the dll or the code can you please provide us. IT will be very helpful for us.

Regards, Rani

rani
I don't have the dll for this but an exe. I can not send you the code as it is. I'll have to remove the project specific code from that as it's copyrighted sorry about that. But if you can please provide me with the exact requirements I'll be able to do the modifications and send it to you. Thanks.
Nocturnal