Jump to content

How to use different Config files


Recommended Posts

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 instance

wpigames.hta and wpiapps.hta isn't a problem

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

Thanx

I think I have found it

Is it correct that I only need to change the following files

Config.js

configwizard.js

wpi.hta

I do want to use the same settings for both installers, they will be started from an menu.

Edited by andreasfc
Link to comment
Share on other sites


Two weeks ago was

I catched this idea and edit my htaconfig.cmd:

@echo off

title WPI konfig. pagal poreikius

COLOR A0

:getchoice

cls

Echo Pasirinkite, kokios krypties bus sistema

Echo.

Echo 0. Bazinis

Echo 1. Media

Echo 2. Remontas

Echo 3. Visas diegimas

Echo 4. Games

Echo.

set /p Choice="Nuspauskite 0, 1, 2 3 ar 4, kuris atstovauja sistemos konfig. paketa:* "

if %Choice%=="" goto getChoice

if %Choice%==0 goto Bazinis

if %Choice%==4 goto Games

if %Choice%==3 goto Visas

if %Choice%==1 goto Media

if %Choice%==2 goto Remontas

goto getchoice

:Visas

COLOR 50

copy configvisas.js %systemdrive%\wpi\Wpiscripts\config.js

copy Wallpapervisas.jpg %systemdrive%\wpi\themes\default\wallpaper.jpg

copy Wpivisas.css %systemdrive%\wpi\themes\default\wpi.css

goto finish

:Media

COLOR 40

copy configMedia.js %systemdrive%\wpi\Wpiscripts\config.js

copy WallpaperMedia.jpg %systemdrive%\wpi\themes\default\wallpaper.jpg

copy WpiMedia.css %systemdrive%\wpi\themes\default\wpi.css

goto finish

:Games

COLOR A0

copy configGames.js %systemdrive%\wpi\Wpiscripts\config.js

copy WallpaperGames.jpg %systemdrive%\wpi\themes\default\wallpaper.jpg

copy WpiGames.css %systemdrive%\wpi\themes\default\wpi.css

goto finish

:Remontas

COLOR 90

copy configRemontas.js %systemdrive%\wpi\Wpiscripts\config.js

copy WallpaperRemontas.jpg %systemdrive%\wpi\themes\default\wallpaper.jpg

copy WpiRemontas.css %systemdrive%\wpi\themes\default\wpi.css

goto finish

:Bazinis

COLOR 40

copy configBazinis.js %systemdrive%\wpi\Wpiscripts\config.js

copy WallpaperBazinis.jpg %systemdrive%\wpi\themes\default\wallpaper.jpg

copy WpiBazinis.css %systemdrive%\wpi\themes\default\wpi.css

goto finish

:finish

"%SystemDrive%\WPI\WPI.cmd"

echo Viskas atlikta (Pradedamas diegimas)

My [wpi] folder is in the root, not in the [install] folder.

0 - basic

1 - media

2 - maintenance

3 - all

4 - games

** press 0, 1, 2, 3, 4 digit to meet system configuration

Every configuration has its style - wallpaper, apps, wpi.css (to change font colors)

advancedservers posted 27 July AUTO CONFIG

Edited by stasys44
Link to comment
Share on other sites

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

No need to run WPI from CD

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

Here is a fragment from winnt.sif:

[GUIRunOnce]

command10=%systemdrive%\wpi\htaconfig.cmd

When 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

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