Jump to content

RunOnceEX problem


JustinJAH

Recommended Posts

TweakUI installed fine but none of the others. I couldnt remember the command to make it delet the install files once its completed as well any help would be great thanks

cmdow @ /HID

@echo off

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

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\005 /VE /D "Adobe Creative Suite 2" /f

REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Adobe Creative Suite 2.exe /f

REG ADD %KEY%\010 /VE /D "Macromedia Dreamweaver 8" /f

REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\Macromedia Dreamweaver 8.exe /f

REG ADD %KEY%\020 /VE /D "ZoneAlarm Security Suite" /f

REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\ZoneAlarm Security Suite.exe /f

REG ADD %KEY%\025 /VE /D ".NET Framework 2" /f

REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\dotnetfx.exe /f

REG ADD %KEY%\030 /VE /D "Sun Java 1.5.6" /f

REG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\Java_1_5_0_06.exe /f

REG ADD %KEY%\035 /VE /D "TweakUI Powertoy" /f

REG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\TweakUiPowertoySetup.exe /f

EXIT

Link to comment
Share on other sites


you're missing the final quotes on every command.

should be like this:

REG ADD %KEY%\001 /VE /D "Microsoft .NET Framework 1.1 SP1" /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\Install\netfx11sp1\netfx.msi /qn" /f

REG ADD %KEY%\002 /VE /D "Microsoft .NET Framework 2.0" /f
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\Install\netfx20\install.exe /q" /f

REG ADD %KEY%\003 /VE /D "Microsoft DirectX 9.0c Abr 2006" /f
REG ADD %KEY%\003 /V 1 /D "%systemdrive%\Install\directx\dxsetup.exe /silent" /f

REG ADD %KEY%\004 /VE /D "Microsoft IntelliPoint 5.5" /f
REG ADD %KEY%\004 /V 1 /D "%cdrom%\Programas\intellipoint\ip55.msi mm=14 /qn REBOOT=ReallySuppress" /f

for cleaning and deleting add this at the final lines of your scrip just before EXIT:

REG ADD %KEY%\200 /VE /D "Cleaning & Rebooting" /f
REG ADD %KEY%\200 /V 1 /D "%systemdrive%\Install\cleanup.cmd" /f

cleanup.cmd file can contain any commands you want to run. i strongly recommend you to read the whole unattended guide to get this kind of things to work.

Link to comment
Share on other sites

ok i figured out what i was doing wrong. is there anyone to have two exe's open at once, or even to say have a notpad open up. the first exe that i want to open isnt a installer just a program and the second one is a actual installed but i havent found a way to have them both open up any ideas?

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...