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?
Page 1 of 1
Install Order
#2
Posted 18 December 2005 - 03:01 PM
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"
to
This was because the first 2 number I have to define the section then the last 2 for which program in that section.
Example of me old system
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 - 00XX
Common - 01XX
OS Specific - 02XX
Office Progs - 03XX
Multimedia - 04XX
Instant Messengers - 05XX
Other - 06XX
Download Clients - 07XX
Maintenance Tools - 08XX
Web Dev Tools - 09XX
Games - 10XX
WebHosting Apps - 11XX
Programming Tools - 12XX
Sync Tools - 13XX
Example of me old system
cmdow @ /HID @echo off Echo Setting WebHost RegKey Num Set KeyNum=11 SET RUNONCEEX=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx SET RUN=HKLM\SOFTWARE\Microsoft\windows\CurrentVersion\Run SET D=%SYSTEMDRIVE%\Drivers SET KEY=%RUNONCEEX%\%KeyNum% MD %systemdrive%\Logs REG ADD %RUNONCEEX% /V TITLE /D "Installing Applications" /f REG ADD %KEY%01 /VE /D "Apache v2.0.55" /f REG ADD %KEY%01 /V 1 /D "%CDROM%\APPS\Apache\apache_2.0.55-win32-x86-no_ssl.msi" /f REG ADD %KEY%02 /VE /D "PHP v4.4.1" /f REG ADD %KEY%02 /V 1 /D "%CDROM%\APPS\Runtimes\PHP\php-4.4.1-installer.exe /s" /f REG ADD %KEY%03 /VE /D "FrontPage Extention" /f REG ADD %KEY%03 /V 1 /D "%CDROM%\APPS\Runtimes\FrontPage\WECCOM.MSI /qb" /f REG ADD %KEY%04 /VE /D "IIS UrlScan" /f REG ADD %KEY%04 /V 1 /D "%CDROM%\APPS\iislockd\unattend.cmd" /f REG ADD %KEY%05 /VE /D "IIS Lockdown Wiz" /f REG ADD %KEY%05 /V 1 /D "%CDROM%\APPS\iislockd\iislockd.exe" /f REG ADD %KEY%06 /VE /D "MySQL Server" /f REG ADD %KEY%06 /V 3 /D "%CDROM%\APPS\MySQL\v4.1\mysql_server.msi /qb" /f REG ADD %KEY%06 /V 1 /D "%CDROM%\APPS\MySQL\v4.0.26\setup.exe -s -f2\"%systemdive%\Logs\MySQL.log\"" /f REG ADD %KEY%06 /V 2 /D "%CDROM%\APPS\MySQL\Admin\mysql-administrator.msi /qb" /f PAUSE
This post has been edited by codejunkie: 18 December 2005 - 03:02 PM
#3
Posted 18 December 2005 - 08:01 PM
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!
#4
Posted 18 December 2005 - 09:42 PM
Will change the next version to allow a limit of 9999.
#5
Posted 21 December 2005 - 10:58 PM
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.
#6
Posted 21 December 2005 - 11:42 PM
It is in program.js look here is the modified entry:
//--------------------------------------------------------------------
//Create a program object
function 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 = [i] ;
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]];
//--------------------------------------------------------------------
//Create a program object
function 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 = [i] ;
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]];
Share this topic:
Page 1 of 1



Help

Back to top









