September 15, 200619 yr 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, 200619 yr by coorrel
September 15, 200619 yr 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, 200619 yr by Ctrl-X
September 15, 200619 yr Author Sorry I found the variable in my CMD which I copied over from a friend:SET PP=%SystemDrive%\Install\Thanks for being very helpful.
September 15, 200619 yr 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.
September 15, 200619 yr 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, 200619 yr by mazin
September 15, 200619 yr There is a difference: GuiRunOnce creates a progress window, which looks much nicer. Apart from that they're basically the same.
September 16, 200619 yr Author 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?
September 16, 200619 yr I'm not very familar with svcpack.infSVCPACK requires a little work. Just consult the main guide.
September 16, 200619 yr 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, 200619 yr by Ctrl-X
September 17, 200619 yr 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!
Create an account or sign in to comment