Jump to content

Recommended Posts

Posted

@ ECHO OFF

REG ADD HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RunOnceEx

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

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



REG ADD %KEY%\005 /VE /D "Mapping Network Drive" /f
REG ADD %KEY%\005 /V 1 /D "NET USE Z: \\IMAC-FED22E\Installations password /USER:Robw" /f

REG ADD %KEY%\010 /VE /D "Installing FireFox 3.64" /f
REG ADD %KEY%\010 /V 1 /D "z:\Firefox\"Firefox Setup 3.6.4" -ms" /f

REG ADD %KEY%\090 /VE /D "Installing Microsoft Office 2010" /f
REG ADD %KEY%\090 /V 1 /D "z:\Office14\setup.exe /adminfile Office2010Full.MSP" /f
REG ADD %KEY%\090 /V 2 /D "D "REGEDIT /S z:\Office14\Excel-Add-ins.reg" /f

The office install works fine but it seems to skip over the firefox install I know the command is right because I can run it in a batch file and it works fine.


Posted

@ ECHO OFF

REG ADD HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RunOnceEx

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

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



REG ADD %KEY%\005 /VE /D "Mapping Network Drive" /f
REG ADD %KEY%\005 /V 1 /D "NET USE Z: \\IMAC-FED22E\Installations password /USER:Robw" /f

REG ADD %KEY%\010 /VE /D "Installing FireFox 3.64" /f
REG ADD %KEY%\010 /V 1 /D "z:\Firefox\"Firefox Setup 3.6.4" -ms" /f

REG ADD %KEY%\090 /VE /D "Installing Microsoft Office 2010" /f
REG ADD %KEY%\090 /V 1 /D "z:\Office14\setup.exe /adminfile Office2010Full.MSP" /f
REG ADD %KEY%\090 /V 2 /D "D "REGEDIT /S z:\Office14\Excel-Add-ins.reg" /f

The office install works fine but it seems to skip over the firefox install I know the command is right because I can run it in a batch file and it works fine.

Fixed it myself typo in the file.

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