The install I'm working on checks to make sure the user is on Windows media player 9.0 or above. If the user is not they want me to supply a link to the install so the users can click on it and go there to run the install. Can I add a web link to an installshield 11 install?
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Adding a URL link to an Installshield 11 install
Started by
sschiessle
, Feb 18 2009 16:53
2 replies to this topic
Posted 19 February 2009 - 21:19
I don't think there's a hyperlink control but you could have a button that launches the web browser with the URL.
Stefan Krüger
InstallSite.org twitter facebook
Posted 19 February 2009 - 21:33
Acutally I found code that uses ShellExecute to load the URL. It works quite well. I just call the below function from the install. I had to add a prototype for ShellExecuteA.
prototype NUMBER Shell32.ShellExecuteA(HWND, BYVAL STRING, BYVAL STRING, BYVAL STRING, BYVAL STRING, INT);
///////////////////////////////////////////////////////////////////////////////
// //
// FUNCTION: OpenWMPLink //
// //
// EVENT: Opens the link to the Windows Media Player download page on //
// the Web. //
// //
///////////////////////////////////////////////////////////////////////////////
function OpenWMPLink()
begin
if (UseDLL(WINSYSDIR ^ "shell32.dll") < 0) then
MessageBox ("Couldn't load Shell interface dll (shell32.dll)", SEVERE);
return;
endif;
ShellExecuteA(HWND_INSTALL, "open", "http://www.microsoft...edia/download/", "", "", SW_SHOW);
UnUseDLL("shell32.dll");
end;
prototype NUMBER Shell32.ShellExecuteA(HWND, BYVAL STRING, BYVAL STRING, BYVAL STRING, BYVAL STRING, INT);
///////////////////////////////////////////////////////////////////////////////
// //
// FUNCTION: OpenWMPLink //
// //
// EVENT: Opens the link to the Windows Media Player download page on //
// the Web. //
// //
///////////////////////////////////////////////////////////////////////////////
function OpenWMPLink()
begin
if (UseDLL(WINSYSDIR ^ "shell32.dll") < 0) then
MessageBox ("Couldn't load Shell interface dll (shell32.dll)", SEVERE);
return;
endif;
ShellExecuteA(HWND_INSTALL, "open", "http://www.microsoft...edia/download/", "", "", SW_SHOW);
UnUseDLL("shell32.dll");
end;