DavidC Posted March 4, 2005 Share Posted March 4, 2005 (edited) I am new at doing this, so please bear with me. I have searched around the forum, but haven't found anything about this. I setup my runonceex.cmd with just one setting and then run it once to test the results it works fine. If I put a number of other programs with it in the final version, some of the programs don't install. Sometimes I need to move it into the first slot so that it is run first, then it works, but I can't do that with all the programs.Can someone please help me and explain what I am doing wrong? Here is a copy of my runonceex.cmd.cmdow @ /HID@Echo OffSET PP=%SystemDrive%\Install\SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Office Programs" /fREG ADD %KEY%\004 /VE /D "Winamp 5.08d" /fREG ADD %KEY%\004 /V 1 /D "%PP%\Winamp\winamp508.msi Xfull=1 Xuser="Unattended" XKey="xxxxxxxxxxxxxxx" /quiet /norestart" /fREG ADD %KEY%\010 /VE /D "Crimson Editor 3.7" /fREG ADD %KEY%\010 /v /1 /D "%PP%\Crimson\cedt370r /S" /fREG ADD %KEY%\014 /VE /D "Adobe Acrobat 7" /fREG ADD %KEY%\014 /V 1 /D "%PP%\Acrobat7\AcroPro.msi /q" /fREG ADD %KEY%\014 /V 2 /D "%PP%\Acrobat7\Activate.exe" /fREG ADD %KEY%\019 /VE /D "Mozilla Firefox 1.0.1" /fREG ADD %KEY%\019 /V 1 /D "%PP%\Firefox\Setup.exe" /fREG ADD %KEY%\020 /VE /D "Adaware Pro 1.05 SE" /fREG ADD %KEY%\020 /V 1 /D "%PP%\Adaware\aawsepro.exe /S" /fREG ADD %KEY%\020 /V 2 /D "pskill.exe -t hh.exe" /fREG ADD %KEY%\020 /V 3 /D "pskill.exe -t Ad-Aware.exe" /fREG ADD %KEY%\024 /VE /D "Mozilla Thunderbird 1.0" /fREG ADD %KEY%\024 /V 1 /D "%PP%\Thunderbird\Setup.exe" /fREG ADD %KEY%\034 /VE /D ".NET Framework Version 1.1" /fREG ADD %KEY%\034 /V 1 /D "%PP%\NetFramework\install.exe /qn" /fREG ADD %KEY%\039 /VE /D "Sun Java Virtual Machine 5.0" /fREG ADD %KEY%\039 /V 1 /D "%PP%\SunJava\jre1.5.0_01.msi Custom=1 IEXPLORER=1 MOZILLA=1 SYSTRAY=0 WEBSTARTICON=0 Reboot=Suppress /qb!-" /fREG ADD %KEY%\044 /VE /D "Outpost Firewall Pro 2.5.369.4608" /fREG ADD %KEY%\044 /V 1 /D "%PP%\OutpostFirewall\setup.exe" /fREG ADD %KEY%\044 /V 2 /D "REGEDIT /S %PP%\OutpostFirewall\outpost.REG" /fREG ADD %KEY%\049 /VE /D "Photoshop 8 CS" /fREG ADD %KEY%\049 /V 1 /D "%PP%\Photoshop.cmd" /fREG ADD %KEY%\054 /VE /D "PowerDVD 6.0" /fREG ADD %KEY%\054 /V 1 /D "%PP%\PowerDVD6\setup.exe" /fREG ADD %KEY%\054 /V 2 /D "REGEDIT /S %PP%\PowerDVD6\mp3AVIdefault.REG" /fREG ADD %KEY%\059 /VE /D "Microsoft Office 2003 Professional" /fREG ADD %KEY%\059 /V 1 /D "%PP%\Office2003\setup.exe TRANSFORMS=Unattended.MST /qb-" /fREG ADD %KEY%\064 /VE /D "Mega K-Lite Codec Pack 1.17" /fREG ADD %KEY%\064 /V 1 /D "%PP%\KliteCodec\klmcodec117.exe /silent /loadinf=".\silent.inf"" /fREG ADD %KEY%\069 /VE /D "RunOnceEx 2 (Utilities)" /fREG ADD %KEY%\069 /V 1 /D "%PP%\Utility.cmd" /fAdaware and winamp won't run unless 1st.Thanks for any help you can give me. Edited March 28, 2005 by Alanoll Link to comment Share on other sites More sharing options...
nujackk Posted March 28, 2005 Share Posted March 28, 2005 *bump* Does anyone have any ideas on this ? I am interested as well Link to comment Share on other sites More sharing options...
Alanoll Posted March 28, 2005 Share Posted March 28, 2005 REG ADD %KEY%\004 /VE /D "Winamp 5.08d" /fREG ADD %KEY%\004 /V 1 /D "%PP%\Winamp\winamp508.msi Xfull=1 Xuser="Unattended" XKey="xxxxxxxxxxxxxxx" /quiet /norestart" /fshould beREG ADD %KEY%\004 /VE /D "Winamp 5.08d" /fREG ADD %KEY%\004 /V 1 /D "%PP%\Winamp\winamp508.msi Xfull=1 Xuser=\"Unattended\" XKey=\"xxxxxxxxxxxxxxx\" /qb" /fIf that's my installer, then /quiet and /norestart are not valid switches, nor are they for ANY Windows Installer file (MSI).REG ADD %KEY%\064 /VE /D "Mega K-Lite Codec Pack 1.17" /fREG ADD %KEY%\064 /V 1 /D "%PP%\KliteCodec\klmcodec117.exe /silent /loadinf=".\silent.inf"" /fShould beREG ADD %KEY%\064 /VE /D "Mega K-Lite Codec Pack 1.17" /fREG ADD %KEY%\064 /V 1 /D "%PP%\KliteCodec\klmcodec117.exe /silent /loadinf=\".\silent.inf\"" /fYou're problem is the program you used to create this file (RunOnceEX Creator or RunOnceEX Maker?) did not escape the quotes for you. By escape, I mean if you look at the Winamp section above, you'll see I added a \ infront of the quotes WITHIN the outer quotes. So...REG ADD %KEY%\XXX /V 1 /D "%PP%\someprogram.exe /user="MySelf" /variable1="what the freak?"" /fTHen the quotes around MySelf and what the freak? must be escapedREG ADD %KEY%\XXX /V 1 /D "%PP%\someprogram.exe /user=\"MySelf\" /variable1=\"what the freak?\"" /f Link to comment Share on other sites More sharing options...
nujackk Posted March 28, 2005 Share Posted March 28, 2005 @AlanollAlthough not my post orignally, thanks for the help, as I would have made the same mistakeBut i thought All i had to do was /qb to install your installer silentlywhat is the Xuser=\"Unattended\" part? Link to comment Share on other sites More sharing options...
Dahi Posted March 28, 2005 Share Posted March 28, 2005 Search this forum for xuser and you'll get the full list of options. Link to comment Share on other sites More sharing options...
nujackk Posted March 28, 2005 Share Posted March 28, 2005 will do thanks Link to comment Share on other sites More sharing options...
Alanoll Posted March 28, 2005 Share Posted March 28, 2005 @AlanollAlthough not my post orignally, thanks for the help, as I would have made the same mistakeBut i thought All i had to do was /qb to install your installer silentlywhat is the Xuser=\"Unattended\" part?<{POST_SNAPBACK}>http://www.msfn.org/board/index.php?showtopic=34056&hl=xuserAnd yes, all you have to do is use /qb, but you won't have any advanced Winamp stuff installed without using another switch ( XFULL ) or similar. Link to comment Share on other sites More sharing options...
DavidC Posted March 29, 2005 Author Share Posted March 29, 2005 Thanks for the help everyone. I knew I was doing something wrong. Now I will make the changes and see if it works. I was using Runonceex creator, but now I like doing it by hand better. It kept on adding things I didn't want.THANKS! 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