Jump to content

Programs Won't Run Properly


DavidC

Recommended Posts

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 Off

SET PP=%SystemDrive%\Install\

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Office Programs" /f

REG ADD %KEY%\004 /VE /D "Winamp 5.08d" /f
REG ADD %KEY%\004 /V 1 /D "%PP%\Winamp\winamp508.msi Xfull=1 Xuser="Unattended" XKey="xxxxxxxxxxxxxxx" /quiet /norestart" /f

REG ADD %KEY%\010 /VE /D "Crimson Editor 3.7" /f
REG ADD %KEY%\010 /v /1 /D "%PP%\Crimson\cedt370r /S" /f

REG ADD %KEY%\014 /VE /D "Adobe Acrobat 7" /f
REG ADD %KEY%\014 /V 1 /D "%PP%\Acrobat7\AcroPro.msi /q" /f
REG ADD %KEY%\014 /V 2 /D "%PP%\Acrobat7\Activate.exe" /f

REG ADD %KEY%\019 /VE /D "Mozilla Firefox 1.0.1" /f
REG ADD %KEY%\019 /V 1 /D "%PP%\Firefox\Setup.exe" /f

REG ADD %KEY%\020 /VE /D "Adaware Pro 1.05 SE" /f
REG ADD %KEY%\020 /V 1 /D "%PP%\Adaware\aawsepro.exe /S" /f
REG ADD %KEY%\020 /V 2 /D "pskill.exe -t hh.exe" /f
REG ADD %KEY%\020 /V 3 /D "pskill.exe -t Ad-Aware.exe" /f

REG ADD %KEY%\024 /VE /D "Mozilla Thunderbird 1.0" /f
REG ADD %KEY%\024 /V 1 /D "%PP%\Thunderbird\Setup.exe" /f

REG ADD %KEY%\034 /VE /D ".NET Framework Version 1.1" /f
REG ADD %KEY%\034 /V 1 /D "%PP%\NetFramework\install.exe /qn" /f

REG ADD %KEY%\039 /VE /D "Sun Java Virtual Machine 5.0" /f
REG 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!-" /f

REG ADD %KEY%\044 /VE /D "Outpost Firewall Pro 2.5.369.4608" /f
REG ADD %KEY%\044 /V 1 /D "%PP%\OutpostFirewall\setup.exe" /f
REG ADD %KEY%\044 /V 2 /D "REGEDIT /S %PP%\OutpostFirewall\outpost.REG" /f

REG ADD %KEY%\049 /VE /D "Photoshop 8 CS" /f
REG ADD %KEY%\049 /V 1 /D "%PP%\Photoshop.cmd" /f

REG ADD %KEY%\054 /VE /D "PowerDVD 6.0" /f
REG ADD %KEY%\054 /V 1 /D "%PP%\PowerDVD6\setup.exe" /f
REG ADD %KEY%\054 /V 2 /D "REGEDIT /S %PP%\PowerDVD6\mp3AVIdefault.REG" /f

REG ADD %KEY%\059 /VE /D "Microsoft Office 2003 Professional" /f
REG ADD %KEY%\059 /V 1 /D "%PP%\Office2003\setup.exe TRANSFORMS=Unattended.MST /qb-" /f

REG ADD %KEY%\064 /VE /D "Mega K-Lite Codec Pack 1.17" /f
REG ADD %KEY%\064 /V 1 /D "%PP%\KliteCodec\klmcodec117.exe /silent /loadinf=".\silent.inf"" /f

REG ADD %KEY%\069 /VE /D "RunOnceEx 2 (Utilities)" /f
REG ADD %KEY%\069 /V 1 /D "%PP%\Utility.cmd" /f

Adaware and winamp won't run unless 1st.

Thanks for any help you can give me.

Edited by Alanoll
Link to comment
Share on other sites

  • 4 weeks later...

REG ADD %KEY%\004 /VE /D "Winamp 5.08d" /f
REG ADD %KEY%\004 /V 1 /D "%PP%\Winamp\winamp508.msi Xfull=1 Xuser="Unattended" XKey="xxxxxxxxxxxxxxx" /quiet /norestart" /f

should be

REG ADD %KEY%\004 /VE /D "Winamp 5.08d" /f
REG ADD %KEY%\004 /V 1 /D "%PP%\Winamp\winamp508.msi Xfull=1 Xuser=\"Unattended\" XKey=\"xxxxxxxxxxxxxxx\" /qb" /f

If 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" /f
REG ADD %KEY%\064 /V 1 /D "%PP%\KliteCodec\klmcodec117.exe /silent /loadinf=".\silent.inf"" /f

Should be

REG ADD %KEY%\064 /VE /D "Mega K-Lite Codec Pack 1.17" /f
REG ADD %KEY%\064 /V 1 /D "%PP%\KliteCodec\klmcodec117.exe /silent /loadinf=\".\silent.inf\"" /f

You'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?"" /f

THen the quotes around MySelf and what the freak? must be escaped

REG ADD %KEY%\XXX /V 1 /D "%PP%\someprogram.exe /user=\"MySelf\" /variable1=\"what the freak?\"" /f

Link to comment
Share on other sites

@Alanoll

Although not my post orignally, thanks for the help, as I would have made the same mistake

But i thought All i had to do was /qb to install your installer silently

what is the Xuser=\"Unattended\" part?

Link to comment
Share on other sites

@Alanoll

Although not my post orignally, thanks for the help, as I would have made the  same mistake

But i thought All i had to do was /qb to install your installer silently

what is the Xuser=\"Unattended\" part?

http://www.msfn.org/board/index.php?showtopic=34056&hl=xuser

And 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

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! :D

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...