Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

XPinstall Reference Thread

- - - - -

  • This topic is locked This topic is locked
919 replies to this topic

#26
big_gie

big_gie

    Senior Member

  • Member
  • PipPipPipPip
  • 617 posts
  • Joined 27-July 03
voidfx.com seems down..

I want this!!! :)

another alternate link maybe?

thanks I cant wait to see!!!!

[EDIT]

voidxp is up now :rolleyes:

trying it...


How to remove advertisement from MSFN

#27
big_gie

big_gie

    Senior Member

  • Member
  • PipPipPipPip
  • 617 posts
  • Joined 27-July 03
This is really nice!!!

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

#28
prathapml

prathapml

    Follow the rules please :-)

  • Patrons
  • 6,791 posts
  • Joined 14-November 03
  • OS:Windows 8 x64
  • Country: Country Flag
@wraith - can I use other system variables (those that are possible from the 'SET' command in comand prompt) ?

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?
Posted ImageCheers !!!   Donate to MSFN and Help Keep This Site Running
||Please Read the Forum Rules||  Etiquette   || Welcome to MSFN - Forum Basics || Before posting
prathapml :: MSFN Supermod :: Private Message me if you ever have a problem while at MSFN

#29
big_gie

big_gie

    Senior Member

  • Member
  • PipPipPipPip
  • 617 posts
  • Joined 27-July 03
I would like to suggest this too:

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
big_gie

big_gie

    Senior Member

  • Member
  • PipPipPipPip
  • 617 posts
  • Joined 27-July 03
hum...

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 Files



#31
prathapml

prathapml

    Follow the rules please :-)

  • Patrons
  • 6,791 posts
  • Joined 14-November 03
  • OS:Windows 8 x64
  • Country: Country Flag
Carried out a testing for my needs using XPinstall just now.
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
\---Textmode
I 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.
Posted ImageCheers !!!   Donate to MSFN and Help Keep This Site Running
||Please Read the Forum Rules||  Etiquette   || Welcome to MSFN - Forum Basics || Before posting
prathapml :: MSFN Supermod :: Private Message me if you ever have a problem while at MSFN

#32
prathapml

prathapml

    Follow the rules please :-)

  • Patrons
  • 6,791 posts
  • Joined 14-November 03
  • OS:Windows 8 x64
  • Country: Country Flag
XPinstall.exe has been renamed to GUIinst.exe by me, but it seems XPinstall is hard-coded to look in the folder where the executable is present for an "XPinstall.xml" file - so I couldn't rename the xml file without problems.


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.
Posted ImageCheers !!!   Donate to MSFN and Help Keep This Site Running
||Please Read the Forum Rules||  Etiquette   || Welcome to MSFN - Forum Basics || Before posting
prathapml :: MSFN Supermod :: Private Message me if you ever have a problem while at MSFN

#33
XtremeMaC

XtremeMaC

    MSFN SuperB

  • Member
  • PipPipPipPipPipPipPipPipPipPip
  • 5,070 posts
  • Joined 13-October 03
  • OS:Windows 7 x64
  • Country: Country Flag
@Wraith
HI I just had to chance to look at your installer
it looks super cool!!



#34
prathapml

prathapml

    Follow the rules please :-)

  • Patrons
  • 6,791 posts
  • Joined 14-November 03
  • OS:Windows 8 x64
  • Country: Country Flag

@Wraith
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).
Posted ImageCheers !!!   Donate to MSFN and Help Keep This Site Running
||Please Read the Forum Rules||  Etiquette   || Welcome to MSFN - Forum Basics || Before posting
prathapml :: MSFN Supermod :: Private Message me if you ever have a problem while at MSFN

#35
MtK

MtK

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 909 posts
  • Joined 02-December 03
Hi,

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...
Posted Image
"Know Your Limits And Ignore Them..."

#36
MtK

MtK

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 909 posts
  • Joined 02-December 03
Hi,

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...
Posted Image
"Know Your Limits And Ignore Them..."

#37
prathapml

prathapml

    Follow the rules please :-)

  • Patrons
  • 6,791 posts
  • Joined 14-November 03
  • OS:Windows 8 x64
  • Country: Country Flag
Thanks for the info mtk. and going as per your own post above,
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'>

Posted ImageCheers !!!   Donate to MSFN and Help Keep This Site Running
||Please Read the Forum Rules||  Etiquette   || Welcome to MSFN - Forum Basics || Before posting
prathapml :: MSFN Supermod :: Private Message me if you ever have a problem while at MSFN

#38
MtK

MtK

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 909 posts
  • Joined 02-December 03
i've tried this...

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%"
Posted Image
"Know Your Limits And Ignore Them..."

#39
Wraith

Wraith

    Dr. Nick

  • Member
  • PipPipPipPipPipPip
  • 1,256 posts
  • Joined 01-January 04
Bugs, bugs, bugs, bugs, bugs, bugs, bugs, bugs, bugs!

Aren't you all happy I just woke up? :rolleyes:

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 :-)
Posted ImagePosted Image
Posted ImagePosted Image
Posted ImagePosted Image

#40
Wraith

Wraith

    Dr. Nick

  • Member
  • PipPipPipPipPipPip
  • 1,256 posts
  • Joined 01-January 04
I've added XPinstall to my mantis bugtracker: http://mantis.voidfx.com/

Viewing only account is view/view.
Posted ImagePosted Image
Posted ImagePosted Image
Posted ImagePosted Image

#41
visaversa

visaversa

    Face it...

  • Member
  • PipPipPip
  • 428 posts
  • Joined 14-October 03
big-gie

I also get an popup with command line option about Q817778 wich say "program argument invalid"


extract hotfix KB817778 to hotfixes\KB817778\update
and change the line in the xml to

<file name='Applying 817778...'program='%SYSTEMDRIVE%\PostInstall\hotfixes\KB817778\update\update.EXE' arguments='-u -q -z -o'></file>

works for me
VV

#42
Wraith

Wraith

    Dr. Nick

  • Member
  • PipPipPipPipPipPip
  • 1,256 posts
  • Joined 01-January 04

XPinstall.exe has been renamed to GUIinst.exe by me, but it seems XPinstall is hard-coded to look in the folder where the executable is present for an "XPinstall.xml" file - so I couldn't rename the xml file without problems.


Yep, I'm adding the ability to have it as a command line argument now.

Could we please know what this section does in the .xml does?

     <hidewindow>Windows Update</hidewindow>

This thing tells XPinstall to look for a window with that title. If it exists, it hides it from view until XPinstall has finished.

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.


Use double quotes - "
I changed everything to single quotes only because some argument listings need double's. Either will work.



I'm adding system variables now. They now work for both the program and the arguments.

ADDENV("USERPROFILE");
ADDENV("SYSTEMDRIVE");
ADDENV("WINDIR");
ADDENV("PROGRAMFILES");
ADDENV("SYSTEMROOT");
ADDENV("ALLUSERSPROFILE");
ADDENV("APPDATA");
ADDENV("HOMEDRIVE");
ADDENV("HOMEPATH");
ADDENV("HOMESHARE");
ADDENV("TEMP");
ADDENV("TMP");

Anything else? %SOURCE% may come later, still have to do a bit of research.
Posted ImagePosted Image
Posted ImagePosted Image
Posted ImagePosted Image

#43
killerbee

killerbee

    Senior Member

  • Member
  • PipPipPipPip
  • 500 posts
  • Joined 22-April 03
hi wraith,

i have just tweaked my custom XPCD from RunOnceEx and svcpack.inf for updates to ur tool.

I can only say WOW - FANTASTIC!!

This is exactly what i needed to let my CD look REAL professional.

To improve it, it would be cool to add the %ALLUSERSPROFILE%-variable as well
(hehe u edited ur post while i wrote mine) :)

cya

Killer Bee
My Rig: ABit NF7-S - Barton2500+@2.2GHz(50°Cel. max while Prime95)
1GB RAM - 2* Mushkin 512MB CL2 232 - Soundstorm with a Logitec Z-5500 Digital - 1*Samsung 160GB SATA1 - 1*80GB Hitachi SATA1 - 1* Pioneer DVR-106DB - 1*LG DVD - 1*Yamaha CRW-F1 - 4Port USB2 Card
In a Chieftec Mesh Blue Big Tower with WindowKit and Blue Lights

#44
Wraith

Wraith

    Dr. Nick

  • Member
  • PipPipPipPipPipPip
  • 1,256 posts
  • Joined 01-January 04
:)

I'll upload a newer version in a couple of minutes, with those variables in it.
Posted ImagePosted Image
Posted ImagePosted Image
Posted ImagePosted Image

#45
Wraith

Wraith

    Dr. Nick

  • Member
  • PipPipPipPipPipPip
  • 1,256 posts
  • Joined 01-January 04
Okie dokie people, get your v1.1 while it's hot :D

Supported environment variables:
%SOURCEPATH%
%USERPROFILE%
%SYSTEMDRIVE%
%WINDIR%
%PROGRAMFILES%
%SYSTEMROOT%
%ALLUSERSPROFILE%
%APPDATA%
%HOMEDRIVE%
%HOMEPATH%
%HOMESHARE%
%TEMP%
%TMP%

Not entirely sure about sourcepath - it's being read from HKLM\Software\Microsoft\Windows\CurrentVersion\Setup\SourcePath, but I don't actually know when it's first written to during the installation. Someone want to test and see where it works and where it doesn't?

Colour config may come later, as well as that complete string :)

Have fun :rolleyes:
Posted ImagePosted Image
Posted ImagePosted Image
Posted ImagePosted Image

#46
killerbee

killerbee

    Senior Member

  • Member
  • PipPipPipPip
  • 500 posts
  • Joined 22-April 03
wow, it just came right for the next "CD-recreation and Testing in VMWare"-Session.

but i stumbled across a problem with the old version - i can't apply .reg files with this line:

<item name='Registry Tweaks'>
<file name='Installing Registry Tweaks...' program='%systemdrive%\windows\REGEDIT.exe' arguments='/S %systemdrive%\install\regtweaks.reg'></file>
</item>
I think when the variables in the arguments section would get interpreted the above line should work.


i hope u can fix this last issue i found :)

Cya

Killer Bee
My Rig: ABit NF7-S - Barton2500+@2.2GHz(50°Cel. max while Prime95)
1GB RAM - 2* Mushkin 512MB CL2 232 - Soundstorm with a Logitec Z-5500 Digital - 1*Samsung 160GB SATA1 - 1*80GB Hitachi SATA1 - 1* Pioneer DVR-106DB - 1*LG DVD - 1*Yamaha CRW-F1 - 4Port USB2 Card
In a Chieftec Mesh Blue Big Tower with WindowKit and Blue Lights

#47
Wraith

Wraith

    Dr. Nick

  • Member
  • PipPipPipPipPipPip
  • 1,256 posts
  • Joined 01-January 04
I just realised the new version doesn't actually do anything - I didn't remove something I used to test out the XML :D

Fixed :rolleyes:


Time for breakfast, methinks :)
Posted ImagePosted Image
Posted ImagePosted Image
Posted ImagePosted Image

#48
killerbee

killerbee

    Senior Member

  • Member
  • PipPipPipPip
  • 500 posts
  • Joined 22-April 03
hi there,

i just tested my first install with v1.1 but not using any new features yet and it works fine.

If some1 knows how to Integrate the Adv.Networking Pack during the T-9min stage would be cool to know

In a few mins i will see if it works with installations after first and second reboot.

Cya

Killer Bee
My Rig: ABit NF7-S - Barton2500+@2.2GHz(50°Cel. max while Prime95)
1GB RAM - 2* Mushkin 512MB CL2 232 - Soundstorm with a Logitec Z-5500 Digital - 1*Samsung 160GB SATA1 - 1*80GB Hitachi SATA1 - 1* Pioneer DVR-106DB - 1*LG DVD - 1*Yamaha CRW-F1 - 4Port USB2 Card
In a Chieftec Mesh Blue Big Tower with WindowKit and Blue Lights

#49
Wraith

Wraith

    Dr. Nick

  • Member
  • PipPipPipPipPipPip
  • 1,256 posts
  • Joined 01-January 04
v1.2 uploaded.

Seperate XML file as command line argument, colours, "complete" string.

Anyone else got any suggestions? I'm getting bored again :)
Posted ImagePosted Image
Posted ImagePosted Image
Posted ImagePosted Image

#50
big_gie

big_gie

    Senior Member

  • Member
  • PipPipPipPip
  • 617 posts
  • Joined 27-July 03
this is amazing :)

Does it supports all the variables possible? :rolleyes:

I'm testing it right now... will post back my impressions!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN