Jump to content

Install Order


Recommended Posts

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


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 - 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

thats how It use to be before I started using WPI but its still simular

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

Edited by codejunkie
Link to comment
Share on other sites

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

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 = ;

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...