October 17, 200322 yr 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"
October 17, 200322 yr Author 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 extractedHKEY_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 extractedHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Runonce\zz110"1"="C:\\Install\\MozillaFirebird\\MozillaFirebird.exe/mzfb"@="MozillaFirebird"
October 18, 200322 yr Author by the way you missed out the [] on the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Runonce\zz110it should look like this [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Runonce\zz110]
October 19, 200322 yr Author if they is anything else anyone would like me to add please let me know.
October 19, 200322 yr @DaveXP, i think i may have figured out how to use %systemdrive%, will not give any more info untill i have got it sussed
November 24, 200322 yr @DaveXP, i think i may have figured out how to use %systemdrive%, will not give any more info untill i have got it sussedHave 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)
November 24, 200322 yr Author 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.
November 24, 200322 yr You could probably do Echo %systemdrive% >> blah.reg then import blah.reg. I assume it would save %systemdrive% as the correct letter.-gosh
November 25, 200322 yr This is kind of confusingRunOnceEx 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!
November 25, 200322 yr 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
November 25, 200322 yr meh, i find the best way is to do it via a batch file, ie:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY%\zz010 /VE /D "Doing Stuff" /fREG ADD %KEY%\zz010 /V 1 /D "%systemdrive%\Install\stuff.exe" /fthat way you can put variables in, i run this from cmdlines.txt
Create an account or sign in to comment