PDA

View Full Version : Force a shortcut to open a URL using IE only.


Staggan
10-11-2006, 04:50 PM
Can I get a shortcut I write to the desktop during install to use IE even if it is not the default browser on the users machine ?


Thanks

pww
10-12-2006, 02:38 PM
you should make the shortcut to point to IE with the url you want to be opened set as a parameter,like
----
iexplore.exe "http://www.indigorose.com"
----

Staggan
10-16-2006, 10:58 AM
This is the current line I use

Shell.CreateShortcut(Shell.GetFolder(SHF_STARTMENU PROGRAMS).."\\%ProductName%", "XYZ", "http://www.XYZ.com", "", "", SessionVar.Expand("%AppFolder%\\XYZ.ico"), 0, SW_SHOWNORMAL, nil, "");


How would I force this shortcut to use IE ? I tried a couple of things, but could not get it to work...

Thanks

Staggan
11-20-2006, 08:30 AM
Can anybody help with this ? still looking for a resolution...

Thanks

Adam
11-20-2006, 01:54 PM
This line of code works on my system, but it does reply on iexplore.exe being installed to the Program Files directory.


Shell.CreateShortcut(Shell.GetFolder(SHF_DESKTOP), "Shortcut to My File", SessionVar.Expand("%ProgramFilesFolder%\\Internet Explorer\\iexplore.exe"), "http://www.indigorose.com", SessionVar.Expand("%ProgramFilesFolder%\\Internet Explorer"), "", 0, SW_SHOWNORMAL, nil, "");


Adam Kapilik

Staggan
11-29-2006, 10:15 AM
Hi This works thanks....

Is there any way I can check if IE is installed ? and perhaps show an error dialogue if it is not ?