XPinstall Reference Thread Precursor to XPlode...
#21
Posted 25 January 2004 - 03:20 AM
Can somebody els send a copy by mail?
#24
Posted 25 January 2004 - 04:40 AM
This is what we need something that looks cool and isn't hard to setup.
Happy Australia Day Weekend.
dare2001 :afro:
#25
Posted 25 January 2004 - 08:36 AM
Little to wish for ;-)...
adding the %cdrom% var would be nice besides the %SYSTEMDRIVE%.
VV
#26
Posted 25 January 2004 - 08:55 AM
I want this!!!
another alternate link maybe?
thanks I cant wait to see!!!!
[EDIT]
voidxp is up now
trying it...
#27
Posted 25 January 2004 - 09:21 AM
Would it be possible to look @ source? I would like to translate it (french) and I'm sure many people would like to translate it in other languages
keep up the good work!!
[EDIT]
Oups!!! Sorry I just found that the XPInstall.xml has all the strings!!! no need for translation...
#28
Posted 25 January 2004 - 09:29 AM
like, for example, %CD% or %systemroot%.
And of course, the other ones like %userprofile%, %appdata%, etc.
If i am right, the app will simply query the system to find out that variable. Is it so?
#29
Posted 25 January 2004 - 09:47 AM
the possibility to check inside of a folder and run each of the files. That would be nice for hotfixes.
This is my hotfixes.js file:
Shell = WScript.CreateObject("WScript.Shell");
Environnement_system = Shell.Environment("SYSTEM");
Environnement_process = Shell.Environment("PROCESS");
Network = WScript.CreateObject("WScript.Network");
Dossiers = new ActiveXObject("Scripting.FileSystemObject");
path = WScript.ScriptFullName;
path = path.substr(0,path.lastIndexOf("\\")+1);
windir = Environnement_process("SYSTEMROOT")
systemdrive = Environnement_process("SYSTEMDRIVE");
Hotfixes1 = Dossiers.GetFolder(systemdrive + "\\setup\\hotfixes\\hotfixes1");
Hotfixes2 = Dossiers.GetFolder(systemdrive + "\\setup\\hotfixes\\hotfixes2");
Autres = Dossiers.GetFolder(systemdrive + "\\setup\\hotfixes\\Autres");
Hotfixes1_enumerateur = new Enumerator(Hotfixes1.Files);
Hotfixes2_enumerateur = new Enumerator(Hotfixes2.Files);
Autres_enumerateur = new Enumerator(Autres.Files);
type1_switch = " /Q /U /O /N /Z";
type2_switch = " /Q:A /R:N";
for (i=0; !Hotfixes1_enumerateur.atEnd(); Hotfixes1_enumerateur.moveNext()) {
Shell.Run(Hotfixes1_enumerateur.item() + type1_switch, 0, true);
}
for (i=0; !Hotfixes2_enumerateur.atEnd(); Hotfixes2_enumerateur.moveNext()) {
Shell.Run(Hotfixes2_enumerateur.item() + type2_switch, 0, true);
}
for (i=0; !Autres_enumerateur.atEnd(); Autres_enumerateur.moveNext()) {
if (Autres_enumerateur.item() == "Q832483.EXE") {
Shell.Run(Autres_enumerateur.item() + " /C:\"dahotfix.exe /q /n\" /q", 0, true);
}
}
What it does is:
check in %systemdrive%\setup\hotfixes\hotfixes1 and run each files with the "/Q /U /O /N /Z" switch. it then look in %systemdrive%\setup\hotfixes\hotfixes2 and run each file with the "/Q:A /R:N" switch. This is nice because all I have to do is put the hotfixes in the good folder and nothing to change in the script.
This could be nice in xpinstall!!
#30
Posted 25 January 2004 - 12:45 PM
I've run thrue 4 problems...
first, I'm calling winrar to unrar Thunderbird:
<item name='Thunderbird v0.4 Fr'> <file name='Thunderbird v0.4 Fr' program='%PROGRAMFILES%\WinRAR\unrar.exe' arguments='x %SYSTEMDRIVE%\setup\thunderbird\thunderbird.rar -inul * D:\Thunderbird\'></file> </item>
But i get an error:
Windows can't find
'%PROGRAMFILES%\WINRAR\UNRAR.EXE'
Secondly, I'm running this:
<item name='Nettoyage'> <file name='Nettoyage' program='wscript' arguments='%SYSTEMDRIVE%\setup\scripts\nettoyage.js'></file> </item>
but I get this error:
Impossible to find the script file
"C:\setup\xpinstall\%SYSTEMDRIVE%\setup\scripts\nettoyage.js"
Running hotfixes I get two errors... with Q17787 I get a RUNDLL popup error:
Error in loading C:\Documents
Specified module cant be found
I also get an popup with command line option about Q817778 wich say "program argument invalid"
I've taken some screenshots wich are attachted...
Attached File(s)
-
errors.zip (102.18K)
Number of downloads: 315
#31
Posted 25 January 2004 - 01:35 PM
It's able to use the %systemdrive% variable, but not something like %systemroot% or %programfiles% or %CD%. I would sure like the capability for such things.
Anyway, until wraith is able to implement that, this is what I'll be doing:
My $OEM$ directory tree listing
$OEM$ +---$$ | \---system32 | \---OOBE +---$1 | \---install | +---Applications | \---base +---$Docs | +---All Users | | +---Desktop | | \---Start Menu | \---Default User | \---SendTo +---$Progs +---D +---E +---GUIsetup | |--- GUIinst.exe | |--- XPinstall.xml | +---apps | +---junk | \---tweaks +---SysPrep \---TextmodeI keep XPinstall.exe and the .xml file in the GUIsetup folder shown above.
I have this as one of the commands in cmdlines.txt - ".\GUIsetup\GUIinst.exe"
Since I don't want to have files copied over to C:\, I have applications install this way (please have a look once again at my folder structure and position of the GUIinst.exe to understand the relative position of where GUIinst.exe is running from) :
Here's a snippet of code from my customised XPinstall.xml-
<?xml version="1.0" encoding="iso-8859-1"?> <XPinstall> <config> <title>Installing Important Applications</title> <hidewindow>Windows Update</hidewindow> </config> <items> <item name='Updating Windows Components'> <file name='Microsoft enhancements to XP...' program='apps\PowerCalc.exe' arguments='/s /v/qb'></file> </item> <item name='WinRAR'> <file name='WinRAR 3.20 Corporate Edition' program='apps\wrar320ce.exe' arguments='/s'></file> </item> <item name='Installing Hotfixes'> <file name='tweaks' program='tweaks\main.bat' arguments=''></file> </item> </items> </XPinstall>I've just mentioned 3 Apps here, take it forward for more apps in the same way.
#32
Posted 25 January 2004 - 01:40 PM
Could we please know what this section does in the .xml does?
<hidewindow>Windows Update</hidewindow>
One limitation of XML shows up in the above post - try changing the part of the code above that says "Microsoft enhancements to XP..." to "Microsoft's enhancements to XP..." - and you'll see that because of that inverted comma, all that gets displayed is "Microsoft" instead of "Microsoft's enhancements to XP...". I don't think this is a bug in XPinstall, the nature of tags in XML would cause this. If anyone comes up with a workaround for this, please tell us. Well, something is better than nothing.
Also, does anyone know how I can have this command run from the XML in XPinstall ?
shutdown.exe -r -f -t 60 -c "Windows XP will now restart in a minute..."
Hey wraith, your app is really wonderful and customisable (although, as I said, it lacks system variable support). I'm waiting excitedly to see what the beta brings in.
#33
Posted 25 January 2004 - 03:09 PM
HI I just had to chance to look at your installer
it looks super cool!!
#34
Posted 25 January 2004 - 03:27 PM
XtremeMaC, on Jan 26 2004, 02:39 AM, said:
HI I just had to chance to look at your installer
it looks super cool!!
Exactly !!!!!
I still haven't recovered from the shock I got today morning on seeing his installer.
Tried it out on my CD. Its very customizable, and he hasn't taken any shortcuts (by way of hardcoding the app). I'm sure it involved lots and lots and lots of hard work and bug-fixing.
Er.... It would sure have been useful to all of us if you'd also attempted to answer some of the questions here.
WTH, I've been visiting this topic every 2 minutes to see if there're any new posts by wraith or somebody else (to solve the issues mentioned previously).
#35
Posted 25 January 2004 - 03:36 PM
about the reboot use this:
<file name='Rebooting...' program='Shutdown' arguments='-r -f -t 60 -c "Windows XP will now restart in a minute..."' />
it works fine...
#36
Posted 25 January 2004 - 03:39 PM
Has anyone used this for registry tweakings?
i've used this like this:
<file name='Registry' program='REGEDIT' arguments='%systemdrive%\Registry\StartMenu.reg'/>
& got an error saying cannot open "%systemdrive%\Registry\StartMenu.reg"
using the same command with "C:\" instead of "%systemdrive%\" works fine...
#37
Posted 25 January 2004 - 03:45 PM
probably the line must have been:
<file name='Registry' program='REGEDIT' arguments='/S "%systemdrive%\Registry\StartMenu.reg"'>I'm pretty sure it will work now.
Or maybe:
<file name='Registry' program='REGEDIT.exe' arguments='/S %systemdrive%\Registry\StartMenu.reg'>
#38
Posted 25 January 2004 - 03:49 PM
i've removed the "/S" argument to see the result
In either case, no registry file was imported
well, removing the "%systemdrive%" from the argument solved the problem, while running the command from START/RUN it works fine with the "%systemdrive%"
#39
Posted 25 January 2004 - 04:15 PM
Aren't you all happy I just woke up?
There's no %CDROM% environment variable, I *may* add something along the lines of %INSTALLSOURCE%, but I guess I'll have to see if that variable has already been written to the registry.
I just looked at the code - I forgot to replace the environment variables in the arguments... silly me
There's one other string that isn't in the XML - the 52% complete - I'll add that for the ext version.
The problem with the environment variables is that the string has to be parsed manually - ShellExecuteEx() doesn't seem to parse it itself. Don't suppose anyone has a fix?
Anyways, I'll probably add some things like configurable colours. Base ones look the same as normal windows install, but some ppl are using custom DLL's that have different colours.
Time to go bug hunting :-)
#40
Posted 25 January 2004 - 04:19 PM
Viewing only account is view/view.



Help
This topic is locked

Back to top









