No6 Posted December 18, 2005 Share Posted December 18, 2005 I would like to change the default order of installation (Starting at 00500) to something higher, say, 900 or even 1000. I'm not a whiz at jscript, (picked it up when I started playing with WPI) so I can't locate where exactly I need to look. Can someone point me to the right direction? Link to comment Share on other sites More sharing options...
codejunkie Posted December 18, 2005 Share Posted December 18, 2005 (edited) Ok well I edited WPI so I can have more than 99 programs. now I have a limit of 9999 and could easily up it again.the File is "Common\configwizardtemplate.htm"<div align="right">Install order</div></td> <td width="40" valign="bottom" > <input name="ordr" type="text" class="CfgTextBox" id="ordr" size="3" maxlength="3"></td>to<div align="right">Install order</div></td> <td width="40" valign="bottom" > <input name="ordr" type="text" class="CfgTextBox" id="ordr" size="4" maxlength="4"></td>This was because the first 2 number I have to define the section then the last 2 for which program in that section.Drivers - 00XXCommon - 01XXOS Specific - 02XXOffice Progs - 03XXMultimedia - 04XXInstant Messengers - 05XXOther - 06XXDownload Clients - 07XXMaintenance Tools - 08XXWeb Dev Tools - 09XXGames - 10XXWebHosting Apps - 11XXProgramming Tools - 12XXSync Tools - 13XXthats how It use to be before I started using WPI but its still simularExample of me old systemcmdow @ /HID@echo offEcho Setting WebHost RegKey NumSet KeyNum=11SET RUNONCEEX=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExSET RUN=HKLM\SOFTWARE\Microsoft\windows\CurrentVersion\RunSET D=%SYSTEMDRIVE%\DriversSET KEY=%RUNONCEEX%\%KeyNum%MD %systemdrive%\LogsREG ADD %RUNONCEEX% /V TITLE /D "Installing Applications" /fREG ADD %KEY%01 /VE /D "Apache v2.0.55" /fREG ADD %KEY%01 /V 1 /D "%CDROM%\APPS\Apache\apache_2.0.55-win32-x86-no_ssl.msi" /fREG ADD %KEY%02 /VE /D "PHP v4.4.1" /fREG ADD %KEY%02 /V 1 /D "%CDROM%\APPS\Runtimes\PHP\php-4.4.1-installer.exe /s" /fREG ADD %KEY%03 /VE /D "FrontPage Extention" /fREG ADD %KEY%03 /V 1 /D "%CDROM%\APPS\Runtimes\FrontPage\WECCOM.MSI /qb" /fREG ADD %KEY%04 /VE /D "IIS UrlScan" /fREG ADD %KEY%04 /V 1 /D "%CDROM%\APPS\iislockd\unattend.cmd" /fREG ADD %KEY%05 /VE /D "IIS Lockdown Wiz" /fREG ADD %KEY%05 /V 1 /D "%CDROM%\APPS\iislockd\iislockd.exe" /fREG ADD %KEY%06 /VE /D "MySQL Server" /fREG ADD %KEY%06 /V 3 /D "%CDROM%\APPS\MySQL\v4.1\mysql_server.msi /qb" /fREG ADD %KEY%06 /V 1 /D "%CDROM%\APPS\MySQL\v4.0.26\setup.exe -s -f2\"%systemdive%\Logs\MySQL.log\"" /fREG ADD %KEY%06 /V 2 /D "%CDROM%\APPS\MySQL\Admin\mysql-administrator.msi /qb" /fPAUSE Edited December 18, 2005 by codejunkie Link to comment Share on other sites More sharing options...
No6 Posted December 19, 2005 Author Share Posted December 19, 2005 That is exactly what I was trying to do, and for the same reason. Only I was looking at the wrong file. Thank you for posting your work, It'll be easy to modify things now! Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted December 19, 2005 Share Posted December 19, 2005 Will change the next version to allow a limit of 9999. Link to comment Share on other sites More sharing options...
No6 Posted December 22, 2005 Author Share Posted December 22, 2005 When WPI writes the RunOnceEx entries it starts numbering at 500 for installs that have no particular order. Is it possible to start that numbering at 5000? I cannot locate exactly how and where that number is allocated. Any help would be greately appreciated. Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted December 22, 2005 Share Posted December 22, 2005 It is in program.js look here is the modified entry://--------------------------------------------------------------------//Create a program objectfunction program(idx){ position = "program.js"; var i = '0' + ((ordr[idx]==null)?(idx+5000):ordr[idx][0]); while (i.length<4) i = "0" + i; this.ordr = ; this.cat = cat[idx] ; this.prog = prog[idx] ; this.desc = desc[idx] ; this.textl= textl[idx] ; this.texti= texti[idx] ; this.regb = regb[idx] ; this.cmd1 = cmd1[idx] ; this.cmd2 = cmd2[idx] ; this.cmd3 = cmd3[idx] ; this.cmd4 = cmd4[idx] ; this.cmd5 = cmd5[idx] ; this.cmd6 = cmd6[idx] ; this.picf = picf[idx] ; this.picw = picw[idx] ; this.pich = pich[idx] ; this.rega = rega[idx] ; this.forc = forc[idx] ; this.cons = cons[idx] ; this.uid = uid[idx] ; this.deps = deps[idx] ; this.excl = excl[idx] ; this.cond = cond[idx] ; this.dflt = (dflt[idx]==null)?['no']:[dflt[idx][0]] ; this.configs=(configs[idx]==null)?['']:[configs[idx][0]]; Link to comment Share on other sites More sharing options...
No6 Posted December 23, 2005 Author Share Posted December 23, 2005 Jackpot! Thank you very much 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