Given that you have Windows installed already, you should have REGEDIT.EXE;
the Win9X version can run from DOS.  You can create a REG file and import it
with REGEDIT /S xxx.REG.

Here's part of an AutoIt script that does the same thing (lines separated so
that you can see what's wrapped):

; Add MSI 2 to install queue if needed

IfEqual,HaveMSI2,Yes,goto,GotMSI2

RegWrite,REG_SZ,HKEY_LOCAL_MACHINE,Software\\Microsoft\\Windows\\CurrentVers
ion\\RunOnceEx\\000 MSI 2,,Installing MSI 2

RegWrite,REG_SZ,HKEY_LOCAL_MACHINE,Software\\Microsoft\\Windows\\CurrentVers
ion\\RunOnceEx\\000 MSI 2,MSI 2,%MYTEMP%\\instmsiw /q /c:"msiinst.exe
/delayrebootq"

GotMSI2:


If you've installed IE before, you'll remember the progress box that pops up
before the desktop appears but after logging on.  This is the same thing,
with "Installing MSI 2" as the text.  Since the desktop hasn't appeared, and
these items run asynchronously, the only thing that you really have to worry
about is interference from the logon script, which runs at the same time as
these items do.  Note the "000 " at the beginning of the key name; that's to
put the MSI installation alphabetically before any of the other items, to
make sure that it runs first.

I've been using AutoIt scripts for upgrading computers; the script checks to
see if it's running with admin privileges, and if not, uses RUNAS to restart
itself under an admin account.  It then checks to see what software needs to
be upgraded, and if anything does, copies the needed files from CD to the
hard drive, sets them up to run at logonr as shown above, saves the old user
name, etc., puts in the admin name and password and sets it up for
autologon.  A cleanup script is set as the last item to run (using a name of
"zzz Cleanup", to force it alphabetically last), which restores the user
name, etc., deletes the temporary files, and reboots the system one last
time.

--Scott.


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Given that perl is not installed because we need to install the windows
installer and reboot how do we set windows to run the update scripts on
reboot.  Ther must be a way to do it from dos but how?

> According to my notes (based on the docs for the Windows Installer Cleanup
> Tool), the MSI version is checked by looking at the version info for
> %SYSTEMROOT%\SYSTEM32\MSI.DLL; it's "2.0" for the current version.  I see
> that once you install something with MSI, MSI continues to run in the
> background, so if possible it should be the first thing done after a
reboot.
> So, if the version is 2.0 (assuming that you have a way of checking via
> script), it probably got updated properly, else it definitely didn't and
the
> system needs to be rebooted.
> 
> >From looking at the MSI docs, I get the impression that it's a good idea
to
> upgrade MSI first, even if the apps that you're installing only need 1.x.
> My impression is that the repair features work better that way.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

> Installing win2k fails because the perl install depends on a more resent
> version of the windows installer. You can install the latter windows
> installer but it requires a reboot.  I tried it without a reboot and it
> appears to work so maybe ok.


-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to