integer Posted October 17, 2003 Share Posted October 17, 2003 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" Link to comment Share on other sites More sharing options...
DaveXP Posted October 17, 2003 Author Share Posted October 17, 2003 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" Link to comment Share on other sites More sharing options...
DaveXP Posted October 18, 2003 Author Share Posted October 18, 2003 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] Link to comment Share on other sites More sharing options...
DaveXP Posted October 19, 2003 Author Share Posted October 19, 2003 if they is anything else anyone would like me to add please let me know. Link to comment Share on other sites More sharing options...
devil270975 Posted October 19, 2003 Share Posted October 19, 2003 @DaveXP, i think i may have figured out how to use %systemdrive%, will not give any more info untill i have got it sussed Link to comment Share on other sites More sharing options...
DaveXP Posted October 19, 2003 Author Share Posted October 19, 2003 ok will update guide when you have made it work. Link to comment Share on other sites More sharing options...
bjdotcom Posted October 19, 2003 Share Posted October 19, 2003 @DaveXPFor your info Slipstream Script looks to be down. Link to comment Share on other sites More sharing options...
DaveXP Posted October 19, 2003 Author Share Posted October 19, 2003 Do Right Click>Save As TargetThe Link Change just today Link to comment Share on other sites More sharing options...
Aaron Posted November 24, 2003 Share Posted November 24, 2003 @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) Link to comment Share on other sites More sharing options...
DaveXP Posted November 24, 2003 Author Share Posted November 24, 2003 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. Link to comment Share on other sites More sharing options...
Aaron Posted November 24, 2003 Share Posted November 24, 2003 I'm gonna give it ago in a sec Link to comment Share on other sites More sharing options...
gosh Posted November 24, 2003 Share Posted November 24, 2003 You could probably do Echo %systemdrive% >> blah.reg then import blah.reg. I assume it would save %systemdrive% as the correct letter.-gosh Link to comment Share on other sites More sharing options...
Aaron Posted November 25, 2003 Share Posted November 25, 2003 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! Link to comment Share on other sites More sharing options...
gosh Posted November 25, 2003 Share Posted November 25, 2003 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 Link to comment Share on other sites More sharing options...
Gism0 Posted November 25, 2003 Share Posted November 25, 2003 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now