Page 1 of 1

Web Install

Posted: Mon Oct 03, 2011 2:17 am
by Sascha
Hi,
I know the way under installshield to create a webinstaller that creates some html and checks if version x is installed, if not install, if yes just skip.
The benefit is that the html can run every time on startup of an web application for the install without prompting for exceute an file.
I'm very certain installaware can do this as well, but can not figure it out.
Can some one pls point me into the right direction?

thanks

Re: Web Install

Posted: Mon Oct 03, 2011 1:12 pm
by giaviv
Hi,

Are you referring to Microsoft's OneClick?

By html do you mean that you can install an application by visiting a certain webpage?

Re: Web Install

Posted: Mon Oct 03, 2011 8:13 pm
by Sascha
Hi,
See the code below

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>

<head>



<!------------------------------------------------------------------>

<!--                                                              -->

<!-- installing.htm - sample page for                             -->

<!--                  One-Click Install installation page         -->

<!--                                                              -->

<!-- Copyright © 2001-2002 InstallShield Software Corporation     -->

<!--                                                              -->



<title>InstallShield One-Click&trade; Install - QBT Setup</title>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252;"/>

<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/nav4-0">



<style media="all" type="text/css">

BODY {

    font-family: "Verdana", "Arial", sans-serif;

    font-size: xx-small;

    color: black;

    background-color: white;

    margin: 0em;

}



IMG {

    border: none;

}



P {

    font-size: xx-small;

}



A {

    color: #002B55;

}



HR {

    width: 100%;

    height: 1px;

    color: #002B55;

}



TD {

    text-align: left;

    vertical-align: top;

}



.upperleft {

    background-image: url(UL.gif);

    background-position: top left;

    background-repeat: no-repeat;

}



.upperright {

    background-image: url(UR.gif);

    background-position: top right;

    background-repeat: no-repeat;

}



.lowerleft {

    background-image: url(LL.gif);

    background-position: bottom left;

    background-repeat: no-repeat;

}



.lowerright {

    background-image: url(LR.gif);

    background-position: bottom right;

    background-repeat: no-repeat;

}

</style>



<script language="JavaScript">

// Determine the browser version.

ns = -1;

ie = -1;

var reqstring;



if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1) 

{

	if (parseFloat(navigator.appVersion) >= 4.0) 

	{ 

		ie = 1;

	} 

	else if (navigator.appVersion.indexOf("MSIE 3.02") != -1) 

	{ 

		ie = 1;

	} 

	else 

	{ 

		reqString = "Microsoft Internet Explorer 3.02 or higher"; 

	}

} 

else if (navigator.appName.indexOf("Netscape") != -1)

{

	if (parseFloat(navigator.appVersion) >= 4.04) 

	{ 

		ns = 1;

	} 

	else 

	{ 

		reqString = "Netscape Communicator 4.04 or higher"; 

	}

} 

else 

{ 

	reqString = "Netscape Communicator 4.04 or Internet Explorer 3.02 or higher"; 

}



function WriteInstallingMsg()

{

	if ((ns == 1) || (ie == 1))

	{

		document.write("Installing QBT...");

	}

}



function WriteBrowserTooOldMsg()

{

	if ((ns == -1) && (ie == -1))

	{

		document.write("Cannot install QBT. " + reqString + " is required.");

	}

}

</script>



</head>

<body onLoad="window.close()">



<map name="Help">

    <area href="http://support.installshield.com/help/oneclick/defaulthelp.htm" target="_blank" coords="470, 65, 535, 90" shape="rect">

</map>



<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 120px; background-image: url(header_fill.jpg); background-repeat: repeat-x;" id="Table1">

    <tr>

        <td style="width: 639px;"><img src="oci_header.jpg" width="639" height="120" border="0" usemap="#Help"></td>

        <td>&nbsp;</td>

    </tr>

</table>



<script language="JavaScript">

WriteBrowserTooOldMsg(); // On Netscape 3.03, document.write doesn't work inside tables.

</script>



<center>

<table border="0" cellpadding="10" cellspacing="0" style="width: 60%; background-color: #EDF1F4; margin-top: 1em;" id="Table2">

    <tr>

        <td class="upperleft">

            <span style="color: #002B55; font-size: medium;"><script language="JavaScript">WriteInstallingMsg();</script></span>

            <noscript>

            <b>Please enable both Javascript and Java in your browser through the Options or Preferences menu in your browser and reload this page.</b> If your browser does not support Java or Javascript, please install one of these browsers and return to this page.

            <ul>

                <li><a href="http://www.microsoft.com/windows/ie/">Microsoft Internet Explorer</a></li>

                <li><a href="http://browsers.netscape.com/browsers/">Netscape</a></li>

            </ul>

            </noscript>

        </td>

        <td class="upperright">&nbsp;</td>

    </tr>

    <tr>

        <td colspan="2"><hr noshade></td>

    </tr>

    <tr>

        <td>

            <p style="color: #002B55;">

            <b><span id="txtSize">580 K</span></b>

            <br>

            <b><span id="txtModemTime">1 minutes 48 seconds</span></b> over a dial-up connection

            <br>

            <b><span id="txtBroadbandTime">12 seconds</span></b> over a broadband connection

            </p>

        </td>

        <td>&nbsp;</td>

    </tr>

    <tr>

        <td class="lowerleft">&nbsp;</td>

        <td class="lowerright">&nbsp;</td>

    </tr>

</table>

</center>



<script language="JavaScript">

if (ie == 1)

{

	document.write("<object CLASSID='clsid:1D5C0A70-D5DF-41E7-B6E3-CE6DA94E1621' CODEBASE='install.cab#Version=4,0,0,4' BORDER=0 VSPACE=0 HSPACE=0 ALIGN=TOP HEIGHT=0% WIDTH=0%></object>");

}

else if (ns == 1)

{

    document.writeln("<applet archive=\"install.jar\" code=\"ISSetupApplet.class\" height=\"0\" width=\"0\"></applet>");

}

</script>



</body>

</html>

Re: Web Install

Posted: Tue Oct 04, 2011 9:11 am
by giaviv
Sascha,

We apologize, but InstallAware does not support OneClick.