Jump to content

Recommended Posts

Posted

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" /f
REG ADD %KEY%\019 /V 1 /D "%systemdrive%\install\019_diskeeper\Diskeeper.msi TRANSFORMS=unattended.MST /qb-" /f

and

REG ADD %KEY%\020 /VE /D "Office 2003 Professional" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\020_virtual_pc\VPC2004.msi TRANSFORMS=unattended.MST /qb-" /f
REG 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. :rolleyes:

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, :D:)

Greetz,

Ben


Posted

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.

Posted
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... :):rolleyes:

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?

Posted

my batch is like this

ECHO.

ECHO Installing Diskeeper

ECHO Please wait...

start /wait %systemdrive%\Install\Applications\Diskeeper\Diskeeper.exe /s /v"/qn REBOOT=Suppress"

it works fine on mine

Posted
my batch is like this

ECHO.

ECHO Installing Diskeeper

ECHO Please wait...

start /wait %systemdrive%\Install\Applications\Diskeeper\Diskeeper.exe /s /v"/qn REBOOT=Suppress"

it works fine on mine

That'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 :))

Posted

Well I have to admit I was talking BS before :)

I just tried

msiexec /i "c:\Install\Diskeeper Professional Edition.msi" INSTALLDIR="c:\Diskeeper" /qn

and

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

\"

Posted

Unfortunately, it's still not working... :'(

I get this error when running RunOnceEx.cmd:

REG ADD %KEY%\019 /VE /D "Diskeeper 8.0" /f
The operation completed succesfully

REG ADD %KEY%\019 /V 1 /D "%systemdrive%\install\019_diskeeper\setup.exe /s /v"INSTALLDIR=\"D:\system\diskeeper\" /qb" /f
Error: Too many command-line parameters

REG ADD %KEY%\020 /VE /D "Virtual PC 2004" /f
The operation completed succesfully

REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\020_virtual_pc\setup.exe /s /v"INSTALLDIR=\"D:\utils\virtual_pc\" /qb" /f
Error: Too many command-line parameters

REG ADD %KEY%\020 /V 2 /D "REGEDIT /S %systemdrive%\install\020_virtual_pc\reg.reg" /f
The operation completed succesfully

Anyone has some solution? Please? Pretty Please?

Posted

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\" " /f

or

REG ADD %KEY%\019 /V 1 /D "%systemdrive%\install\019_diskeeper\setup.exe /s /v\"INSTALLDIR=\\\"D:\system\diskeeper\\\" /qb\" " /f

The 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" /f

I personally don't use runonce ex so this is just a guess :)

Posted

i have Diskeeper

Executive 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_keeper

ECHO Please wait...

start /wait %systemdrive%\install\disk_keeper\371efb2.msi /qn

where 371efb2.msi is the file that you saved

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