Incroyable HULK Posted November 26, 2004 Author Share Posted November 26, 2004 WPI is a replacement for RunOnceEx or batch files wich allow to select the software you want to install at the end of your unattended installation.What I want to acheive is different. I want to use my Unattended CD to perform additional task when inserted into any kind of computer.With autorun.inf, my HTML interface is launched and then the technician can read documentation, install software with just a click, install drivers, etc. Link to comment Share on other sites More sharing options...
Incroyable HULK Posted November 26, 2004 Author Share Posted November 26, 2004 Ah Crap! My JavaScript doesn't work afterall; it launch a regular installation and doesn't take my switches into account. I guess I'll have to point to a batch file... Link to comment Share on other sites More sharing options...
prathapml Posted November 26, 2004 Share Posted November 26, 2004 If you need content on the page and links to start apps from there - and need it to be easily modifiable (and look good visually too), then what you need is:Autoplay Media Studio - easy to build an autorun within minutes. Link to comment Share on other sites More sharing options...
Incroyable HULK Posted November 26, 2004 Author Share Posted November 26, 2004 @prathapmlit is quite expensive! Beside I already have a licence for DiscStarter 2.0 wich is able to launch exe in HTML page without the usual Windows Warning... Link to comment Share on other sites More sharing options...
minigun Posted November 27, 2004 Share Posted November 27, 2004 1. Rename the .html to .hta - that makes it a HTML application that runs without a browser-like toolbar, etc. (useful to have a "pro" looking autorun).2. Setup an autorun.inf in the root of the CD, which will run this HTA file.how do i get the .hta file to run?? i get the error "not a valid win32 application" (when its on the CD works fine otherwise) what have i missed out?? Link to comment Share on other sites More sharing options...
prathapml Posted November 27, 2004 Share Posted November 27, 2004 Does the .HTA file open properly when you double-click on it?Which version of windows and IE is on the machine you're trying this?It works directly calling the HTA for me, but if nothing else doesn't work for you, you can try this code in the autorun.inf:[AutoRun]open="iexplore FILENAME.HTA" Link to comment Share on other sites More sharing options...
minigun Posted November 27, 2004 Share Posted November 27, 2004 yeah woprks fine when i click on it...using win XP pro SP2do i need to use meta tag info?? if so what??btw... i think i found a bug in Nlite ISO creation... if i remeake the ISO the files dont change to the updated version?!? but it works if i change the ISO file name Link to comment Share on other sites More sharing options...
gunsmokingman Posted November 27, 2004 Share Posted November 27, 2004 Here is a HTA Template with One Button function.When presses it will run a winsif maker that i am working on,just edit the location to match your needs.<td width=93.45pt valign=left style='width:93.45pt;border:transparent windowtext 1.0pt; mso-border-alt:solid windowtext .5pt;padding:.4cm .4pt .01cm 1.4pt;height:88.45pt'><b style='mso-bidi-font-weight:Bold-Italic'><code><A class="jakePrint" title="THIS IS THE TEXT POP UP AREA, ADD MORE TEXT HERE IF NEEDED"><!--[if gte vml 1]><v:shape id="_x0000_i1027" type="#_x0000_t75" style='width:68pt;height:0pt'> <v:imagedata src="http://www3.telus.net/GSMJAK1E/AUABuilder/BgImgs/Run001.png" o:title="Msc03"/><form action="http://www3.telus.net/GSMJAK1E/AUABuilder/CmdWinSif/PlainSifCnet.cmd" method=Get"> <INPUT TYPE="submit" ACTION="http://www3.telus.net/GSMJAK1E/AUABuilder/CmdWinSif/PlainSifCnet.cmd" VALUE="Press This" id=msviGoButton><span style='font-size:8.0pt;font-family:"Comic Sans MS";color:#1B9541'></v:shape><![endif]--><![if !vml]><img border=0 width=29 height=19 src="TemplateBasic_files/image005.gif" v:shapes="_x0000_i1026"><![endif]>This Runs Just a test Of My Winnt.sif maker </code></a></form> <table> </table>Here what you want to edit for your path to some thing <INPUT TYPE="submit" ACTION="http://www3.telus.net/GSMJAK1E/AUABuilder/CmdWinSif/BitTorrent-3.4.2.exe"/s"/v/qn"VALUE="Press This" EDIt So It Will Install This BitTorrent-3.4.2.exeThan clean up the files on %systemdrive% Link to comment Share on other sites More sharing options...
Incroyable HULK Posted November 27, 2004 Author Share Posted November 27, 2004 I didn't do extensive testing with HTA files but it doesn't seems to allow me to use switches either...for now I'm stuck with a link to a batch file for every command that need a switch. I can hide the command window if cmdow is present on the system but I don't know if there is other way to hide it Link to comment Share on other sites More sharing options...
zbeta Posted November 27, 2004 Share Posted November 27, 2004 combine it with AutoIT ; ----------------------------------------------------------------------------;; AutoIt Version: 3.0; Language: English; Platform: Win9x / NT;; ----------------------------------------------------------------------------;Call setupRun (@ScriptDir & "\SETUP.EXE TRANSFORM=Unattended.MST /qb-")ofice.zip Link to comment Share on other sites More sharing options...
Bilou_Gateux Posted November 27, 2004 Share Posted November 27, 2004 Ok, I think it works properly with javascript...<html><body><script language="javascript" type="text/javascript">var a = "SETUP.EXE TRANSFORM=Unattended.MST /qb-";var b = "SP1-Client.exe /Q:A /R:N";document.write("<a href=" + a + ">Office Pro 2003</a><br />");document.write("<a href=" + b + ">Service Pack 1</a>");</script></body></html>BUT I would prefer plain HTML... The Additional CD of my OEM computer (Fujitsu-Siemens) use html and Javascript to launch installation of automatic BIOS flash.Would you like i send you an archive of the html, js and css files ?<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><!-- InstanceBegin template="/Templates/main_frn.dwt" codeOutsideHTMLIsLocked="false" --><head><!-- InstanceBeginEditable name="doctitle" --><title>Fujitsu Siemens Computers</title><!-- InstanceEndEditable --> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link rel=stylesheet type="text/css" href="../scripts/css/styles.css"><script language="JavaScript" src="../scripts/menue/topmenu.js" type="text/JavaScript"></script><script language="JavaScript" src="../scripts/menue/sidemenu.js" type="text/JavaScript"></script><script language="JavaScript" src="../scripts/global/global.js" type="text/JavaScript"></script><!-- InstanceBeginEditable name="head" --> <!-- InstanceEndEditable --></head><body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" bgcolor="#B7B7B7" alink="#000000"><script language="JavaScript" type="text/JavaScript">InsertObjectTag('','');checkhtw2k();</script><!--MENUE DEFINITION--><!-- Dyn-Menu Definition for Layer 0 --><div id="nav0" style="position:absolute; left:137px; top:148px; z-index:2; visibility:hidden"> <table border="0" cellpadding="0" cellspacing="0"><tr><td bgcolor="#F2F2F2" width="10"><img src="../images/s.gif" border="0" width="10" height="266"></td><td valign="top" bgcolor="#F2F2F2" width="140" class="nb"><img src="../images/s.gif" width="1" height="55" alt="" border="0"><br><a class="s" href="../deskupdate/deskupdate_frn.html" OnMouseOver="kill(0,0);" OnMouseOut="kill(1,1000);">DeskUpdate</a><br><script language="JavaScript" type="text/JavaScript">if ((edition == 0) && ((DeskUpdate.OsShortName == 'WinMe') || (DeskUpdate.OsShortName == 'Win2000') || (DeskUpdate.OsShortName == 'WinXP'))) document.write("<a href='#' OnClick='window.open(\"" + path + "/html/deskupdate/auto_install_frn.html\",\"automatic\",\"scrollbars=yes,width=430,height=420\");' OnMouseOver='kill(0,0);' OnMouseOut='kill(1,1000);'> Installation automatique</a><br>");</script><a href="#" OnMouseOver="kill(0,0);" OnMouseOut="kill(1,1000);" OnClick="window.open(path+'/html/deskupdate/manual_install_frn.html', 'driver', 'scrollbars=yes, width=430, height=420');"> Mise à jour des drivers</a><br><a href="#" OnMouseOver="kill(0,0);" OnMouseOut="kill(1,1000);" OnClick="window.open(path+'/html/deskupdate/hotfixes_frn.html', 'quickfix', 'scrollbars=yes, width=430, height=420');"> Mise à jour du système<br> d'exploitation (Hotfixes)</a><br><a href="#" OnMouseOver="kill(0,0);" OnMouseOut="kill(1,1000);" OnClick="window.open(path+'/html/deskupdate/driver_info_frn.html', 'hardware', 'scrollbars=yes, width=430, height=420');"> Informations des drivers</a><br><br><a class="s" href="flashbios_frn.html" OnMouseOver="kill(0,0);" OnMouseOut="kill(1,1000);">FlashBIOS</a><br><script language="JavaScript" type="text/JavaScript">if ((edition == 0) && ((DeskUpdate.OsShortName == 'Win2000') || (DeskUpdate.OsShortName == 'WinXP'))) document.write("<a href='javascript:DeskUpdate.InstallEx(\"flashbios/systemboard/omf/dskflash.exe\",\"-auto\");' OnMouseOver='kill(0,0);' OnMouseOut='kill(1,1000);'> DeskFlash<br> (Installation automatique)</a><br>");</script><a href="systemboard/disk_frn.html" OnMouseOver="kill(0,0);" OnMouseOut="kill(1,1000);"> Create disc</a></td> </tr></table></div><!-- /Dyn-Menu Definition for Layer 0 -->Just a sample of one html file. look at the command(\"flashbios/systemboard/omf/dskflash.exe\",\"-auto\") Link to comment Share on other sites More sharing options...
Incroyable HULK Posted November 27, 2004 Author Share Posted November 27, 2004 @zbetahum... interesting. I didn't knew about this little program... I will play around with it.Thanks! Link to comment Share on other sites More sharing options...
Incroyable HULK Posted November 27, 2004 Author Share Posted November 27, 2004 @Bilou_GateuxWoW! interesting. So you don't think it is possible in HTML? I mean with quotes and backslash or anything else.Otherwise, it could be something like this in java script:<script language="JavaScript" type="text/JavaScript">document.write("<a href="SETUP.EXE\",\"-auto\">TEST</a><br>");</script>I'll need help to figure out the syntax and understand how to apply it to Office for example... Link to comment Share on other sites More sharing options...
minigun Posted November 27, 2004 Share Posted November 27, 2004 <HTML><HEAD><TITLE>Custom Windows XP Autorun menu</TITLE><script language="javascript" type="text/javascript"> function ShellExJ(command) { var splitAt = /^(.*?)(?:[<>\|\*\?](.*))?$/; var parts = command.match(splitAt); var filename = parts[1].replace(/"|'|\s*$/g, ''); if(parts.length > 1) { var params = parts[2].replace(/^\s*/, ''); } if(filename.indexOf('/') > -1) { var folder = filename.substr(0, filename.lastIndexOf('/')); } else { var folder = filename.substr(0, filename.lastIndexOf('\\')); } var objShell = new ActiveXObject("Shell.Application"); objShell.ShellExecute(filename, params, folder, 'open', 1);} </script></HEAD><BODY style="overflow:hidden"><FONT face=arial size=2 color=black>Chooses a program to install<p><a target="_new" onClick=" ShellExJ('/notepad.exe')" style=cursor:hand>Notepad</a><br /><a href="http://www.google.com">google</a><br /></BODY></HTML>this is the code i use in the .hta file... is it right?? it all works fine its just when its on the CD it wont start :-/ Link to comment Share on other sites More sharing options...
gunsmokingman Posted November 27, 2004 Share Posted November 27, 2004 (edited) Are you adding the Cd varible to the OutPutThat would give it a place to start from.This is a cmd that makes a vbs that will then send back to cmd the CD letter, Edit out the delete stuff add the vbs code to what you need.echo offmode con: cols=55 lines=2title CdVarcolor 9f> Cd.vbs echo Dim ts>> Cd.vbs echo Dim strDriveLetter>> Cd.vbs echo Dim intDriveLetter>> Cd.vbs echo Dim fs 'As Scripting.FileSystemObject>> Cd.vbs echo Const CDROM = 4>> Cd.vbs echo On Error Resume Next>> Cd.vbs echo Set fs = CreateObject("Scripting.FileSystemObject")>> Cd.vbs echo strDriveLetter = "">> Cd.vbs echo For intDriveLetter = Asc("A") To Asc("Z")>> Cd.vbs echo Err.Clear>> Cd.vbs echo If fs.GetDrive(Chr(intDriveLetter)).DriveType = CDROM Then>> Cd.vbs echo If Err.Number = 0 Then>> Cd.vbs echo strDriveLetter = Chr(intDriveLetter)>> Cd.vbs echo Exit For>> Cd.vbs echo End If>> Cd.vbs echo End If>> Cd.vbs echo Next>> Cd.vbs echo Set ts = fs.CreateTextFile(Left(Wscript.ScriptFullName, InstrRev(Wscript.ScriptFullName, ".")) ^& "cmd", True, False)>> Cd.vbs echo ts.WriteLine "set " ^& Left(WScript.ScriptName, InStr(WScript.ScriptName, ".") - 1) ^& "=" ^& strDriveLetter>> Cd.vbs echo ts.Closeping -n 2 127.0.0.1>nulstart wscript.exe Cd.vbsping -n 2 127.0.0.1>nuldel cd.vbscall cd.cmddel cd.cmdclsmode con: cols=55 lines=5color 2becho.echo Your Cd Is %CD%echo.echo set cdrom=%CD%echo.ping -n 3 127.0.0.1>nulexit Edited January 5, 2006 by gunsmokingman Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now