Bebbetufs Posted September 14, 2004 Share Posted September 14, 2004 My RunOnceEx.cmd now successfully installs O&O Defrag Pro. I still have to register it manually however.Is there a way around this?REG ADD %KEY%\001 /VE /D "O&O Professional Defrag 6" /fREG ADD %KEY%\001 /V 1 /D "%cdrom%\Apps\DfrgPro\OODefrag.msi /qn" /f Link to comment Share on other sites More sharing options...
mazin Posted September 14, 2004 Share Posted September 14, 2004 Here you are: http://unattended.msfn.org/xp/applications/oodefragpro.htm Link to comment Share on other sites More sharing options...
Bebbetufs Posted September 14, 2004 Author Share Posted September 14, 2004 Thanks!I added the last two lines to my RunOnceEx.cmd:REG ADD %KEY%\001 /VE /D "O&O Defrag Professional v.6" /fREG ADD %KEY%\001 /V 1 /D "%cdrom%\Apps\DfrgPro\OODefrag.msi /qn" /fREG ADD %KEY%\002 /VE /D "Registering O&O Defrag Professional" /fREG ADD %KEY%\002 /V 1 /D "%cdrom%\Apps\DfrgPro\regDefrag.cmd" /fRunning:ECHO.ECHO Registering OO Defrag Professional...REGEDIT /S %cdrom%\Apps\DfrgPro\regDefr.regWhich again should run regDefr.reg which goes:Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\O&O\O&O Defrag\6.0\Pro]"User"="XXXXX""Company"="XXXX""SerialNo"="XXXX-XXXX-XXXX-XXX-XXXX"Will this work corectly or do I need to specify "wait" somewhere for this to finish before the rest of the RunOnceEx.cmd continues? Link to comment Share on other sites More sharing options...
mazin Posted September 14, 2004 Share Posted September 14, 2004 I think this is ok:REG ADD %KEY%\001 /VE /D "OO Defrag Professional v.6" /fREG ADD %KEY%\001 /V 1 /D "%cdrom%\Apps\DfrgPro\OODefrag.msi /qn" /fREG ADD %KEY%\010 /VE /D "Registering OO Defrag Professional" /fREG ADD %KEY%\010 /V 1 /D "REGEDIT /S %cdrom%\Apps\DfrgPro\regDefr.reg" /fAnd, please check this reg key in your registry to see if it's the same name or not:[HKEY_LOCAL_MACHINE\SOFTWARE\O&O\O&O Defrag\4.0\Pro]I think it should be 6.0 Link to comment Share on other sites More sharing options...
Bebbetufs Posted September 14, 2004 Author Share Posted September 14, 2004 Thanks!You were right about the version no. Should be 6.0 like you said.I've uppdated the code above with corrected paths in case someone wants to use it. Link to comment Share on other sites More sharing options...
digitalfrost Posted September 14, 2004 Share Posted September 14, 2004 I'm using a .inf File to register O&O Defrag.[Version]Signature=$Windows NT$[DefaultInstall]AddReg=OODefrag[OODefrag]HKLM,"SOFTWARE\O&O\O&O Defrag\6.0\Pro\licenses","Company",,"YourCompany"HKLM,"SOFTWARE\O&O\O&O Defrag\6.0\Pro\licenses","SerialNo",,"1234-1234"HKLM,"SOFTWARE\O&O\O&O Defrag\6.0\Pro\licenses","User",,"Username" Link to comment Share on other sites More sharing options...
Bebbetufs Posted September 14, 2004 Author Share Posted September 14, 2004 How do you run the .inf file?Can you give me the code to run it from RunOnceEx.cmd?I couldn't get the first method to work.Do I need to apply the .reg file BEFORE installing the prog? Link to comment Share on other sites More sharing options...
mazin Posted September 15, 2004 Share Posted September 15, 2004 As for the INF, you can execute it via a batch or RunOnceEX.rundll32 setupapi,InstallHinfSection DefaultInstall 128 .\OODEFR.INFAs for the reg, you can try to run it before installation. Link to comment Share on other sites More sharing options...
Bebbetufs Posted September 15, 2004 Author Share Posted September 15, 2004 Thanks!I couldn't get it to work, but I can't be bothered spending any more time on this now. I'll get back to it some other time! Link to comment Share on other sites More sharing options...
mrmr Posted October 26, 2004 Share Posted October 26, 2004 halloI'm using this too:REG ADD %KEY%\001 /VE /D "O&O Professional Defrag 6" /fREG ADD %KEY%\001 /V 1 /D "%cdrom%\Apps\DfrgPro\OODefrag.msi /qn" /fbut, there's a way to pass the installation path to msi installer? Something like "%ProgramFiles%\Defrag Professional" instead of "%ProgramFiles%\O&O Software\Defrag Professional"!mrmr Link to comment Share on other sites More sharing options...
mazin Posted October 26, 2004 Share Posted October 26, 2004 INSTALLDIR=...... Link to comment Share on other sites More sharing options...
mrmr Posted October 26, 2004 Share Posted October 26, 2004 @mazineheh...you are a Turbo replier btw, something like this?REG ADD %KEY%\001 /VE /D "O&O Professional Defrag 6" /fREG ADD %KEY%\001 /V 1 /D "%cdrom%\Apps\DfrgPro\OODefrag.msi /INSTALLDIR="%ProgramFiles%\Defrag Professional" /qn" /for REG ADD %KEY%\001 /VE /D "O&O Professional Defrag 6" /fREG ADD %KEY%\001 /V 1 /D "%cdrom%\Apps\DfrgPro\OODefrag.msi INSTALLDIR="%ProgramFiles%\Defrag Professional" /qn" /fwhich one? mrmrEDIT: OK solved....it's seen the second choice...without "/" Thank you Link to comment Share on other sites More sharing options...
Zahriki Posted October 27, 2004 Share Posted October 27, 2004 REG ADD %KEY%\001 /VE /D "O&O Professional Defrag 6" /fREG ADD %KEY%\001 /V 1 /D "%cdrom%\Apps\DfrgPro\OODefrag.msi INSTALLDIR="%ProgramFiles%\Defrag Professional" /qn" /fEDIT: OK solved....it's seen the second choice...without "/" Thank yo@mrmrI'm currently at work and can't do anything till I get home in 5 hours, but...did that also register O&O?Edit:Looks like you also extracted the .exe to get the .msi file. Do you need any of the other files? Link to comment Share on other sites More sharing options...
mrmr Posted October 27, 2004 Share Posted October 27, 2004 ...so...here my RunOnceEx part...REG ADD %KEY%\020 /VE /D "Defrag Professional Edition v6.5.851" /fREG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\Defrag-Pro-Ed-v6.5.851.msi INSTALLDIR=%ProgramFiles%\Defrag /qb" /fREG ADD %KEY%\020 /V 2 /D "REGEDIT /S %systemdrive%\install\RegTweaks\Defrag.reg" /fi've noticed that if i use INSTALLDIR="%ProgramFiles%\Defrag Professional" (path quoted with " ") it doesn't work, so i've menaged for above path.Don't know if there's a workaround...next, my Defrag.regWindows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\O&O\O&O Defrag\6.0\Pro\licenses]"User"="my.user""Company"="my.company""SerialNo"="XXXX-XXXX-XXXX-XXXX-XXXX"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\DefragPath]@="\"%ProgramFiles%\\Defrag\\oodcnt.exe\""I hope this helpmrmrP.S.Looks like you also extracted the .exe to get the .msi file. Do you need any of the other files?mmm, i've started the installer...and then, from TEMP directory i've copied the .msi only... Link to comment Share on other sites More sharing options...
Zahriki Posted October 28, 2004 Share Posted October 28, 2004 ...so...here my RunOnceEx part...REG ADD %KEY%\020 /VE /D "Defrag Professional Edition v6.5.851" /fREG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\Defrag-Pro-Ed-v6.5.851.msi INSTALLDIR=%ProgramFiles%\Defrag /qb" /fREG ADD %KEY%\020 /V 2 /D "REGEDIT /S %systemdrive%\install\RegTweaks\Defrag.reg" /fI kept getting an error here.I changed paths to fit my XPCD, but they should have worked.cause it keeps giving me an error saying windows cannot find 'C:\install\defrag-pro-v6.5.851.msi. Make sure you typed the name correctly, and then try again. To search for a file, click the Start button and then click Search.I checked after the install completed on VMware and it shows the folder and file in c:\bah.I'll mess with it a little more. 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