mritter Posted August 13, 2006 Share Posted August 13, 2006 (edited) The timer bug is deeper than the divide by zero. Your fix works, thank you, but does not prevent the problem from happening. You need to add 2 lines to main.js:function main(){// wpipath=WPIPath(); // Done in wpi.hta cddrv=FindCDRom(); if (Seconds<1) <----- This line Seconds=1; <----- This line startSecs=Seconds;...........................}And you should start using the new cmd line args:wpi.hta options=myoptions.js config=yourconfig.js check=thisone timer=30The old method will be eliminated some time down the road. Edited August 13, 2006 by mritter Link to comment Share on other sites More sharing options...
Dynaletik Posted August 13, 2006 Share Posted August 13, 2006 Thank you mritter. So do we need the fixed tTimer function AND the 2 lines in mian.js or just the 2 lines in main.js? I use both fixes now and it seems to work, I hope you thought it like that. Link to comment Share on other sites More sharing options...
mritter Posted August 13, 2006 Share Posted August 13, 2006 The main.js is the main fix, but do use both. Link to comment Share on other sites More sharing options...
ThunderHK Posted August 17, 2006 Share Posted August 17, 2006 (edited) Hello I'm FrenchI have a bug with WPI 5.3, i search on all the forum but i have not find the solution I use Virtual PC to simulate my cd iso, the installation operate correctly but when i push on "start installation" on WPI, the next windows appears :Installer.hta is %cdrom%\%oem%\$1\WPI\Common and is copied on C:\WPI\Common on installationPlease help me, ThanX before Edited August 18, 2006 by ThunderHK Link to comment Share on other sites More sharing options...
zorphnog Posted August 18, 2006 Share Posted August 18, 2006 ThunderHK: The link to your picture is broken. Can you fix it so we can have a look? Or write out the message? Thanks. Link to comment Share on other sites More sharing options...
ThunderHK Posted August 18, 2006 Share Posted August 18, 2006 I fix the broken link , excuse-me Link to comment Share on other sites More sharing options...
bvstaff Posted August 18, 2006 Share Posted August 18, 2006 Hi,I start using WPI.Actually i migrate from the version 4.3 to version 5.3. When i use and "install order" it doesn't work ? In the extract, wpipathapp is a new variable which i created to point on the parent folder of wpipath This is an extract of th ceonfig.js : prog[pn]=['MS_VISIO_2003-STANDARD-SP2_EN_v2'];desc[pn]=['Visio Office 2003 user license'];uid[pn]=['MSVISIO2003STDSP2'];dflt[pn]=['no'];cat[pn]=['Office'];forc[pn]=['no'];gcond[pn]=['FileExists(\'%programfiles%\')'];cmd1[pn]=['%wpipathapp%\\WPI_APPLI\\MS_VISIO_2003-STANDARD-SP2_EN_v2\\install.vbs'];pn++;prog[pn]=['ORACLE_ORACLE-CLIENT-PATCHSET_9-2-0-5_EN_v1'];ordr[pn]=[999];desc[pn]=['Patchset for oracle 9.2.0.1'];uid[pn]=['ORACLEPATCHSET'];dflt[pn]=['no'];cat[pn]=['Applications'];forc[pn]=['no'];deps[pn]=['ORACLECLIENT'];gcond[pn]=['FileExists(\'%programfiles%\')'];cmd1[pn]=['%wpipathapp%\\WPI_APPLI\\ORACLE_ORACLE-CLIENT-PATCHSET_9-2-0-5_EN_v1\\install.vbs'];pn++;prog[pn]=['ORACLE_ORACLE-CLIENT_9_EN_v1'];ordr[pn]=[1];desc[pn]=['Oracle Client 9.0 version 9.2.0.1'];uid[pn]=['ORACLECLIENT'];dflt[pn]=['no'];cat[pn]=['Applications'];forc[pn]=['no'];gcond[pn]=['FileExists(\'%programfiles%\')'];cmd1[pn]=['%wpipathapp%\\WPI_APPLI\\ORACLE_ORACLE-CLIENT_9_EN_v1\\install.vbs'];pn++;prog[pn]=['SOFTWARE995_PDF995_EN_v1'];desc[pn]=['PDF generator 100 License - HKG'];uid[pn]=['PDF995'];dflt[pn]=['yes'];cat[pn]=['Applications'];forc[pn]=['no'];gcond[pn]=['FileExists(\'%programfiles%\')'];cmd1[pn]=['%wpipathapp%\\WPI_APPLI\\SOFTWARE995_PDF995_EN_v1\\install.vbs'];pn++; Link to comment Share on other sites More sharing options...
bvstaff Posted August 18, 2006 Share Posted August 18, 2006 Hi,Is WPI running thru the network ? I tried with the version 4.3 i get a message error.I tried with the version 5.3 too i get a message 'can't find the glossy them' The path is like .\\<IP>\....\TOTALWPI\WPI.HTA The folder TOTALWPI contains all files and fodler needed. Actually i burn the same source on a DVD, it's running as well .Thanks per advance WPI experts. Link to comment Share on other sites More sharing options...
zorphnog Posted August 18, 2006 Share Posted August 18, 2006 (edited) @bvstaff Have you tried creating a batch file for mounting the network path and starting wpi as stated in the manual?Per the manual:@ECHO OFFSETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSIONSET SHARE=\\SERVER\SHARETITLE Running WPI from "!SHARE!"...PUSHD "!SHARE!"ECHO.Mounting "!SHARE!" to "!CD!"...PUSHD WPIECHO.Starting WPI...START /wait wpi.htaPOPDECHO.Unmounting network-drive...POPDWith your setup, assuming TOTALWPI is in your shared folder:@ECHO OFFSETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSIONSET SHARE=\\<IP>\<Path to Share folder>TITLE Running WPI from "!SHARE!"...PUSHD "!SHARE!"ECHO.Mounting "!SHARE!" to "!CD!"...PUSHD TOTALWPIECHO.Starting WPI...START /wait wpi.htaPOPDECHO.Unmounting network-drive...POPDIf TOTALWPI is your shared folder then remove "PUSHD TOTALWPI" and one of the "POPD" commands. Edited August 18, 2006 by zorphnog Link to comment Share on other sites More sharing options...
ThunderHK Posted August 18, 2006 Share Posted August 18, 2006 Hello I'm FrenchI have a bug with WPI 5.3, i search on all the forum but i have not find the solution I use Virtual PC to simulate my cd iso, the installation operate correctly but when i push on "start installation" on WPI, the next windows appears :Installer.hta is %cdrom%\%oem%\$1\WPI\Common and is copied on C:\WPI\Common on installationPlease help me, ThanX beforeSomebody answer me please ? Link to comment Share on other sites More sharing options...
zorphnog Posted August 18, 2006 Share Posted August 18, 2006 (edited) Sorry, I don't know French. Would you mind translating the error window?Is it something about having to download the Installer.hta file?Are you purposely trying to copy Installer.hta to the C: drive, or is it forcing you to do so? Edited August 18, 2006 by zorphnog Link to comment Share on other sites More sharing options...
ThunderHK Posted August 18, 2006 Share Posted August 18, 2006 I translate this windows:I test the 2 options but the bug is same .... Link to comment Share on other sites More sharing options...
Major1206 Posted August 20, 2006 Share Posted August 20, 2006 System copies your wpifolder, because you putted it into the %oem% distribution folder. Everything in %oem%\$1\ is copyied to the %systemdrive%\ i.e. disk where you installed windows Link to comment Share on other sites More sharing options...
ThunderHK Posted August 20, 2006 Share Posted August 20, 2006 Ok, therefore do I have to make launch wpi since CD, without making it copy from the HD, it is well that? Link to comment Share on other sites More sharing options...
pretender69 Posted August 20, 2006 Share Posted August 20, 2006 (edited) item name, unique id's in 5.2 or earlier i believe when you edited the name of your application in wpi that they used to auto update the unique id's, this broken in 5.3 ?also in previous versions you could edit boxes.js if (DoGray) txt += ' disabled';now if you do this it also removes the coloring of items already installed using file exists. Edited August 20, 2006 by pretender69 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