DaveXP

Windows Update Method For An Unattended Cd

52 posts in this topic

ok we been over this and U are probally frustrated with me but I have to ask I can change

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Runonce\zz110

"1"="C:\\Install\\MozillaFirebird\\MozillaFirebird.exe/mzfb"

@="Extracting MozillaFirebird"

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Runonce\zz110

"1"="C:\\Install\\MozillaFirebird\\MozillaFirebird.exe/sI CAN CHANGE THIS "s" to be "mzfb" like above right"

@="MozillaFirebird"

0

Share this post


Link to post
Share on other sites

do the files need to be extracted first.

if they do then you need to sets of commands if not they only need one.

e.g.

if needed to be extracted

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Runonce\zz110

"1"="C:\\Install\\MozillaFirebird\\MozillaFirebird.exe/extraction switch"

@="Extracting MozillaFirebird"

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Runonce\zz110

"1"="C:\\Install\\MozillaFirebird\\MozillaFirebird.exe/mzfb"

@="MozillaFirebird"

e.g.

if not needed to be extracted

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Runonce\zz110

"1"="C:\\Install\\MozillaFirebird\\MozillaFirebird.exe/mzfb"

@="MozillaFirebird"

0

Share this post


Link to post
Share on other sites

by the way you missed out the [] on the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Runonce\zz110

it should look like this [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Runonce\zz110]

0

Share this post


Link to post
Share on other sites
:) if they is anything else anyone would like me to add please let me know.
0

Share this post


Link to post
Share on other sites

@DaveXP, i think i may have figured out how to use %systemdrive%, will not give any more info untill i have got it sussed

0

Share this post


Link to post
Share on other sites
@DaveXP, i think i may have figured out how to use %systemdrive%, will not give any more info untill i have got it sussed

Have you found out yet?

From what I understand, the %systemdrive% variable doesn't exist during the RunOnceEx stage, right? I've thought about making a first RunOnceEx entry to use one of those scripts that some members have used to find their CD-ROM drive letter and set the variable. I'll have to find the code, but its something like:

IF EXIST C:\Install\confirm.txt SET %SYSTEMDRIVE% C:\

IF EXIST D:\Install\confirm.txt SET %SYSTEMDRIVE% D:\

IF EXIST E:\Install\confirm.txt SET %SYSTEMDRIVE% E:\

which would go into those numbered entries in the registry file:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnceEx\001]

"1"="IF EXIST C:\Install\confirm.txt SET %SYSTEMDRIVE% C:\"

"2"="another one"

"3"="and so on"

@="Finding location of files..."

Just a theory though. (confirm.txt is just a blank txt file to confirm its existance in the Install folder)

0

Share this post


Link to post
Share on other sites

i dont think IF EXIST would work in a .reg file but you do have a good thery if maybe you where to set that @ the start of the .reg file instead of doing like you have, may it would work i will look up in the Windows XP Registry book to see about varibles.

0

Share this post


Link to post
Share on other sites

I'm gonna give it ago in a sec

0

Share this post


Link to post
Share on other sites

You could probably do Echo %systemdrive% >> blah.reg then import blah.reg. I assume it would save %systemdrive% as the correct letter.

-gosh

0

Share this post


Link to post
Share on other sites

This is kind of confusing

RunOnceEx doesn't like any variable at all (even tried %homedrive%\install\)

Doing an IF EXIST and SET command for %hdd% sets it to C:\, but only in the active command window. %hdd% won't work if run from anywhere else. Pretty much useless when the first runonceex key is set_variables.cmd (which is in system32) and the command window closes thus losing the variable.

Giving me a headache this is!

0

Share this post


Link to post
Share on other sites

It's been mentioned you can use %11% for system32, etc.

And Aaron, if you're feeling a little tired you can always make me a temp mod and i'll look over the place for you.

-gosh

0

Share this post


Link to post
Share on other sites

meh, i find the best way is to do it via a batch file, ie:

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY%\zz010 /VE /D "Doing Stuff" /f

REG ADD %KEY%\zz010 /V 1 /D "%systemdrive%\Install\stuff.exe" /f

that way you can put variables in, i run this from cmdlines.txt

0

Share this post


Link to post
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.