coorrel Posted September 15, 2006 Share Posted September 15, 2006 (edited) I'm new to this and while adding silent installs to my install.cmd I've go a few questions:1. REG ADD %KEY%\004 <--- what does this number represent2. For the number above is there a set incrementations to follow or any will do?3. Guirunonce and runonceex ---> I read that both run at the same time, I'm currently only using the runonceex method to install programs and regtweaks. Is there a difference between the two? Which one is more favoured?4. In my attempt to make my install.cmd, what does theses switches stand for?/ve/v 1/d /f/qn/qb-where is %PP% located?Thanks. Edited September 15, 2006 by coorrel Link to comment Share on other sites More sharing options...
Ctrl-X Posted September 15, 2006 Share Posted September 15, 2006 (edited) I'm new to this and while adding silent installs to my install.cmd I've go a few questions:1. REG ADD %KEY%\004 <--- what does this number representIt's just a sequential number to make your installations run in the specified order.2. For the number above is there a set incrementations to follow or any will do?Any will do. Personally, I use 9000, 9010, 9020... and so on. That way, I can always squeeze in a new installation at 9011 or 9015, just like in the good old BASIC days 3. Guirunonce and runonceex ---> I read that both run at the same time, I'm currently only using the runonceex method to install programs and regtweaks. Is there a difference between the two? Which one is more favoured?There is a difference: GuiRunOnce creates a progress window, which looks much nicer. Apart from that they're basically the same.4. In my attempt to make my install.cmd, what does theses switches stand for?/ve/v 1/d /fThese are all REG ADD switches. Type "REG ADD /?" in a command window for details./qn/qb-These are Windows Installer (MsiExec) switches. Type "MSIEXEC /?" (Windows Installer 3.x only) or see *this document* for details.where is %PP% located?Sorry, can't help you with that. If it's in a script, it's an environment variable that probably gets set earlier/somewhere else. Where did you get this from? Edited September 15, 2006 by Ctrl-X Link to comment Share on other sites More sharing options...
coorrel Posted September 15, 2006 Author Share Posted September 15, 2006 Sorry I found the variable in my CMD which I copied over from a friend:SET PP=%SystemDrive%\Install\Thanks for being very helpful. Link to comment Share on other sites More sharing options...
Ctrl-X Posted September 15, 2006 Share Posted September 15, 2006 You're welcome! By the way, the Unattended Windows Guide has tons of info on this subject. Especially the RunOnceEx page should be of interest to you. Link to comment Share on other sites More sharing options...
mazin Posted September 15, 2006 Share Posted September 15, 2006 (edited) Super help by Ctrl-X!BTW, %PP% is used for the same purpose as %KEY%.We SET KEY=HKLM\SOFTWARE\MICR....ect., so we avoid typingREG ADD HKLM\SOFTWARE\MICR....ect.! Instead, we just type REG ADD %KEY%.Likewise, we SET PP=%SystemDrive%\Install\, so we avoid typing%SystemDrive%\Install\My.EXE! Instead, we just type:%PP%My.EXE!Both SET KEY=HKLM\...etc and SET PP=%SystemDrive\...etc should belocated at the beginning of our batch file. Edited September 15, 2006 by mazin Link to comment Share on other sites More sharing options...
Takeshi Posted September 15, 2006 Share Posted September 15, 2006 There is a difference: GuiRunOnce creates a progress window, which looks much nicer. Apart from that they're basically the same. Link to comment Share on other sites More sharing options...
coorrel Posted September 16, 2006 Author Share Posted September 16, 2006 Another quick question. I downloaded a silent switchless dotNET1.1 and 2.0 install and it says to "Install from: svcpack.inf".Since I'm not very familar with svcpack.inf, would it make a difference if I just run it first thing in RunOnceEX? Link to comment Share on other sites More sharing options...
mazin Posted September 16, 2006 Share Posted September 16, 2006 I'm not very familar with svcpack.infSVCPACK requires a little work. Just consult the main guide. Link to comment Share on other sites More sharing options...
Ctrl-X Posted September 16, 2006 Share Posted September 16, 2006 (edited) BTW, %PP% is used for the same purpose as %KEY%.We SET KEY=HKLM\SOFTWARE\MICR....ect., so we avoid typingREG ADD HKLM\SOFTWARE\MICR....ect.! Instead, we just type REG ADD %KEY%.Likewise, we SET PP=%SystemDrive%\Install\, so we avoid typing%SystemDrive%\Install\My.EXE! Instead, we just type:%PP%My.EXE!Right, I didn't know that... Personally I do use the %KEY% variable, but only for readability reasons. I never type the whole file/registry path anyway; I just copy, paste and edit a similar line There is a difference: GuiRunOnce creates a progress window, which looks much nicer. Apart from that they're basically the same. You don't agree? Could you please explain why not? IMHO they're not that different... Edited September 16, 2006 by Ctrl-X Link to comment Share on other sites More sharing options...
Takeshi Posted September 16, 2006 Share Posted September 16, 2006 I've only seen the RunOnceEx window. Link to comment Share on other sites More sharing options...
Ctrl-X Posted September 17, 2006 Share Posted September 17, 2006 I've only seen the RunOnceEx window. Right! Slip of the mind Sorry all, that post should have read: RunOnceEx creates a progress window, which looks much nicer! 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