andreasfc Posted August 22, 2005 Share Posted August 22, 2005 (edited) I have a question about the config.js file.Is it possible to use more than 1 config.js file within 1 installer.I want to use a seperate config file for applications and one for games.The changing of the filenames, for instancewpigames.hta and wpiapps.hta isn't a problemalso are the 2 config files, seperately pointing to them isn't a problem too, but when changing the config file it is not working.Anyone had an idea?ThanxI think I have found itIs it correct that I only need to change the following filesConfig.jsconfigwizard.jswpi.htaI do want to use the same settings for both installers, they will be started from an menu. Edited August 22, 2005 by andreasfc Link to comment Share on other sites More sharing options...
stasys44 Posted August 22, 2005 Share Posted August 22, 2005 (edited) Two weeks ago was I catched this idea and edit my htaconfig.cmd:@echo offtitle WPI konfig. pagal poreikiusCOLOR A0:getchoicecls Echo Pasirinkite, kokios krypties bus sistemaEcho.Echo 0. Bazinis Echo 1. Media Echo 2. Remontas Echo 3. Visas diegimasEcho 4. GamesEcho. set /p Choice="Nuspauskite 0, 1, 2 3 ar 4, kuris atstovauja sistemos konfig. paketa:* " if %Choice%=="" goto getChoice if %Choice%==0 goto Bazinisif %Choice%==4 goto Games if %Choice%==3 goto Visas if %Choice%==1 goto Media if %Choice%==2 goto Remontas goto getchoice :VisasCOLOR 50copy configvisas.js %systemdrive%\wpi\Wpiscripts\config.jscopy Wallpapervisas.jpg %systemdrive%\wpi\themes\default\wallpaper.jpgcopy Wpivisas.css %systemdrive%\wpi\themes\default\wpi.cssgoto finish:MediaCOLOR 40copy configMedia.js %systemdrive%\wpi\Wpiscripts\config.jscopy WallpaperMedia.jpg %systemdrive%\wpi\themes\default\wallpaper.jpgcopy WpiMedia.css %systemdrive%\wpi\themes\default\wpi.cssgoto finish:GamesCOLOR A0copy configGames.js %systemdrive%\wpi\Wpiscripts\config.jscopy WallpaperGames.jpg %systemdrive%\wpi\themes\default\wallpaper.jpgcopy WpiGames.css %systemdrive%\wpi\themes\default\wpi.cssgoto finish:RemontasCOLOR 90copy configRemontas.js %systemdrive%\wpi\Wpiscripts\config.jscopy WallpaperRemontas.jpg %systemdrive%\wpi\themes\default\wallpaper.jpgcopy WpiRemontas.css %systemdrive%\wpi\themes\default\wpi.cssgoto finish:BazinisCOLOR 40copy configBazinis.js %systemdrive%\wpi\Wpiscripts\config.jscopy WallpaperBazinis.jpg %systemdrive%\wpi\themes\default\wallpaper.jpgcopy WpiBazinis.css %systemdrive%\wpi\themes\default\wpi.cssgoto finish:finish"%SystemDrive%\WPI\WPI.cmd"echo Viskas atlikta (Pradedamas diegimas)My [wpi] folder is in the root, not in the [install] folder.0 - basic1 - media2 - maintenance3 - all4 - games** press 0, 1, 2, 3, 4 digit to meet system configurationEvery configuration has its style - wallpaper, apps, wpi.css (to change font colors)advancedservers posted 27 July AUTO CONFIG Edited August 22, 2005 by stasys44 Link to comment Share on other sites More sharing options...
andreasfc Posted August 25, 2005 Author Share Posted August 25, 2005 This is one of the options but, when running from a dvd/cd there would be a problem, because I cannot write to the dvd/cd.Anyone has another option?Thanx Link to comment Share on other sites More sharing options...
scuzzy47 Posted August 25, 2005 Share Posted August 25, 2005 You might save the files needed to your hard disk, and then open them from there, for example, when you install windows, you have a little program copying your config files to hdd, then when you run your wpi, you make it run the files on your hdd..Dunno if this is the right solution, just thinking out loud... Link to comment Share on other sites More sharing options...
stasys44 Posted August 25, 2005 Share Posted August 25, 2005 No need to run WPI from CDThere is a folder $OEM$ and subfolders $1 $$ in it - on my DVD root.$OEM$ ----$1 -------WPI----$$WPI is copied to systemdrive during Windows instalation.I run WPI after Windows instalation by GUIRunOnceHere is a fragment from winnt.sif:[GUIRunOnce]command10=%systemdrive%\wpi\htaconfig.cmdWhen you need to install some programs that was not post-installed you are able to run WPI using CD autorun (start menu > your_run_wpi.cmd > %systemdrive%\wpi\htaconfig.cmd). 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