Ben.Hahlen Posted May 27, 2004 Posted May 27, 2004 Hi guys,I have almost finished my unattended DVD, but there are two apps that are driving me crazy:Diskeeper and Virtual PC 2004.I'll try to explain best I can, both apps have the same problem.Code in RunOnceEx.cmd:REG ADD %KEY%\019 /VE /D "Diskeeper 8.0" /fREG ADD %KEY%\019 /V 1 /D "%systemdrive%\install\019_diskeeper\Diskeeper.msi TRANSFORMS=unattended.MST /qb-" /fandREG ADD %KEY%\020 /VE /D "Office 2003 Professional" /fREG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\020_virtual_pc\VPC2004.msi TRANSFORMS=unattended.MST /qb-" /fREG ADD %KEY%\020 /V 2 /D "REGEDIT /S %systemdrive%\install\020_virtual_pc\reg.reg" /f"reg.reg" contains registration info for VPC, since it's just a reg key. I'll take Diskeeper as the "reference app", but as I said, I'm facing the same problem for both of them, so consider it the same for VPC.This was the latest thing I've tried for both. The thing is, that I want it to install in "D:\system\diskeeper". I've even tried the /s /v"/qn INSTALLDIR="D:\system\diskeeper" switches, when running it from setup.exe.If I try just to call the "Diskeeper.msi" with the INSTALLDIR switch, RunOnceEx skips over it, apparently for no reason.It's driving me nuts, I've searched this forums from top to bottom, but I can't find it... Can someone PLEASE help me with this?These are the only two apps I want to add to my "perfect" unattended DVD...Thanks in advance, Greetz,Ben
nazz Posted May 27, 2004 Posted May 27, 2004 What I do to get around this is to make a batch file that installs your app fine. Execute this batch file from the Runonceexec instead of running the whole command from your runonce.
Ben.Hahlen Posted May 27, 2004 Author Posted May 27, 2004 At least the Diskeeper MSI doesn't have a INSTALLDIR property.I dunno the content of your unattended.mst but you could add it with some editing.How could I edit the .mst file? I created it with the Office 2003 mst-creator... Didn't know how else to do it...What I do to get around this is to make a batch file that installs your app fine. Execute this batch file from the Runonceexec instead of running the whole command from your runonce.And what would that batch contain then?
Night_Devil Posted May 27, 2004 Posted May 27, 2004 my batch is like thisECHO.ECHO Installing DiskeeperECHO Please wait...start /wait %systemdrive%\Install\Applications\Diskeeper\Diskeeper.exe /s /v"/qn REBOOT=Suppress"it works fine on mine
Ben.Hahlen Posted May 27, 2004 Author Posted May 27, 2004 my batch is like thisECHO.ECHO Installing DiskeeperECHO Please wait...start /wait %systemdrive%\Install\Applications\Diskeeper\Diskeeper.exe /s /v"/qn REBOOT=Suppress"it works fine on mineThat's the part that works. But now I would like it to silently install into a custom directory. More specifically: "d:\system\diskeeper"Virtual PC 2004 I would like to install silently to "d:\utils\virtual_pc"I've got my hopes on you guys...(not to put any more pressure or anything )
ZoSTeR Posted May 28, 2004 Posted May 28, 2004 Well I have to admit I was talking BS before I just tried msiexec /i "c:\Install\Diskeeper Professional Edition.msi" INSTALLDIR="c:\Diskeeper" /qnandsetup.exe /s /v"INSTALLDIR=\"c:\Diskeeper\" /qn"and both work.It's just a problem with the quotes inside the /v" " switch. They have to be\"
Ben.Hahlen Posted May 28, 2004 Author Posted May 28, 2004 Thanks ZoSTeR,I'm gonna try it now, with the same switch for VPC, I'm hoping and praying it works
Ben.Hahlen Posted May 28, 2004 Author Posted May 28, 2004 Unfortunately, it's still not working... :'(I get this error when running RunOnceEx.cmd:REG ADD %KEY%\019 /VE /D "Diskeeper 8.0" /fThe operation completed succesfullyREG ADD %KEY%\019 /V 1 /D "%systemdrive%\install\019_diskeeper\setup.exe /s /v"INSTALLDIR=\"D:\system\diskeeper\" /qb" /fError: Too many command-line parametersREG ADD %KEY%\020 /VE /D "Virtual PC 2004" /fThe operation completed succesfullyREG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\020_virtual_pc\setup.exe /s /v"INSTALLDIR=\"D:\utils\virtual_pc\" /qb" /fError: Too many command-line parametersREG ADD %KEY%\020 /V 2 /D "REGEDIT /S %systemdrive%\install\020_virtual_pc\reg.reg" /fThe operation completed succesfullyAnyone has some solution? Please? Pretty Please?
ZoSTeR Posted May 28, 2004 Posted May 28, 2004 The quotation marks inside the reg line need to be escaped too.Try:REG ADD %KEY%\019 /V 1 /D "%systemdrive%\install\019_diskeeper\setup.exe /s /v\"INSTALLDIR=\"D:\system\diskeeper\" /qb\" " /forREG ADD %KEY%\019 /V 1 /D "%systemdrive%\install\019_diskeeper\setup.exe /s /v\"INSTALLDIR=\\\"D:\system\diskeeper\\\" /qb\" " /fThe problem is the nesting of quotations on two levels. First for the reg line and second for the /v switch.To avoid some of the quotation mess you could use the msi file.REG ADD %KEY%\019 /V 1 /D "\"%systemdrive%\install\019_diskeeper\Diskeeper Professional Edition.msi\" INSTALLDIR=\"D:\system\Diskeeper\" /qb" /fI personally don't use runonce ex so this is just a guess
fandtm666 Posted May 29, 2004 Posted May 29, 2004 i have DiskeeperExecutive Software International, Inc Version: 8.0.480.0 installed what it does is it creates a nice msi file in your XX:\Documents and Settings\Administrator\Local Settings\Temp folder where xx is your drive all i did was start the app then go to the folder copy it and save it somewhere and then use ECHO.ECHO Installing disk_keeperECHO Please wait...start /wait %systemdrive%\install\disk_keeper\371efb2.msi /qnwhere 371efb2.msi is the file that you saved
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