MSFN Forum: XPinstall Reference Thread - MSFN Forum

Jump to content


  • 46 Pages +
  • 1
  • 2
  • 3
  • 4
  • Last »
  • You cannot start a new topic
  • This topic is locked

XPinstall Reference Thread Precursor to XPlode... Rate Topic: -----

#21 User is offline   visaversa 

  • Face it...
  • PipPipPip
  • Group: Members
  • Posts: 428
  • Joined: 14-October 03

Posted 25 January 2004 - 03:20 AM

! E:\Balder Unattended\Docs and scripts\xpinstall.zip: Either multipart or corrupt ZIP archive

Can somebody els send a copy by mail?


#22 User is offline   Wraith 

  • Dr. Nick
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,256
  • Joined: 01-January 04

Posted 25 January 2004 - 03:20 AM

If you're having trouble: Alternate Download Link

#23 User is offline   visaversa 

  • Face it...
  • PipPipPip
  • Group: Members
  • Posts: 428
  • Joined: 14-October 03

Posted 25 January 2004 - 03:21 AM

that's a good one, this works.. thanks Wraith

#24 User is offline   dare2001 

  • Bring Back The 80's
  • Group: Members
  • Posts: 43
  • Joined: 18-August 03

Posted 25 January 2004 - 04:40 AM

Nice one Wraith.
This is what we need something that looks cool and isn't hard to setup.
Happy Australia Day Weekend.

dare2001 :afro:

#25 User is offline   visaversa 

  • Face it...
  • PipPipPip
  • Group: Members
  • Posts: 428
  • Joined: 14-October 03

Posted 25 January 2004 - 08:36 AM

Nice one Wraith, very proffesional look...
Little to wish for ;-)...
adding the %cdrom% var would be nice besides the %SYSTEMDRIVE%.

VV

#26 User is offline   big_gie 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 617
  • Joined: 27-July 03

Posted 25 January 2004 - 08:55 AM

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

#27 User is offline   big_gie 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 617
  • Joined: 27-July 03

Posted 25 January 2004 - 09:21 AM

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 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 January 2004 - 09:29 AM

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

#29 User is offline   big_gie 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 617
  • Joined: 27-July 03

Posted 25 January 2004 - 09:47 AM

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 User is offline   big_gie 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 617
  • Joined: 27-July 03

Posted 25 January 2004 - 12:45 PM

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 File(s)



#31 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 January 2004 - 01:35 PM

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.

#32 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 January 2004 - 01:40 PM

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.

#33 User is offline   XtremeMaC 

  • MSFN SuperB
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5,070
  • Joined: 13-October 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 January 2004 - 03:09 PM

@Wraith
HI I just had to chance to look at your installer
it looks super cool!!

#34 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 January 2004 - 03:27 PM

XtremeMaC, on Jan 26 2004, 02:39 AM, said:

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

#35 User is offline   MtK 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 909
  • Joined: 02-December 03

Posted 25 January 2004 - 03:36 PM

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

#36 User is offline   MtK 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 909
  • Joined: 02-December 03

Posted 25 January 2004 - 03:39 PM

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

#37 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 January 2004 - 03:45 PM

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


#38 User is offline   MtK 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 909
  • Joined: 02-December 03

Posted 25 January 2004 - 03:49 PM

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

#39 User is offline   Wraith 

  • Dr. Nick
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,256
  • Joined: 01-January 04

Posted 25 January 2004 - 04:15 PM

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

#40 User is offline   Wraith 

  • Dr. Nick
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,256
  • Joined: 01-January 04

Posted 25 January 2004 - 04:19 PM

I've added XPinstall to my mantis bugtracker: http://mantis.voidfx.com/

Viewing only account is view/view.

Share this topic:


  • 46 Pages +
  • 1
  • 2
  • 3
  • 4
  • Last »
  • You cannot start a new topic
  • This topic is locked

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy