dv8 Posted August 31, 2004 Posted August 31, 2004 Is this the right way to write it? I can t seem to get it to install.REG ADD %KEY%\005 /VE /D "VMware Workstation" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Applications\VMware\setup.exe /a /s /v" /qn TARGETDIR="%systemdrive%\Program Files\VMware\" ADDLOCAL=ALL DISABLE_AUTORUN=1 DESKTOP_SHORTCUT=1 SERIALNUMBER=xxxx-xxxxx-xxxxx-xxxx /qn"" /fThanks in advance
dv8 Posted August 31, 2004 Author Posted August 31, 2004 okay i just tried it and it still doesnt work.. can anyone give me any ideas as to why?tnksdv8
Kaspin Posted August 31, 2004 Posted August 31, 2004 I'm not sure about specific VMware switches, but I do notice a few things that could be causing problems.First is and extra set of quotes (/v" & /qn"" )Second is you have /qn twiceLastly, the quotes for the path need a backslash before themtry this:REG ADD %KEY%\005 /VE /D "VMware Workstation" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Applications\VMware\setup.exe /a /s /v TARGETDIR=\"%systemdrive%\Program Files\VMware\\" ADDLOCAL=ALL DISABLE_AUTORUN=1 DESKTOP_SHORTCUT=1 SERIALNUMBER=xxxx-xxxxx-xxxxx-xxxx /qn" /f
jdoe Posted August 31, 2004 Posted August 31, 2004 You can also extract the MSI from the EXE installer by running the EXE and going to your TEMP folder and search for something like "VMware Workstation.msi" (it have the advantage to skip extraction because it's already done).Just rename this file INSTALL.MSI"%systemdrive%\install\Applications\VMware\INSTALL.MSI DISABLE_AUTORUN=1 RENAME_DISKS=0 SERIALNUMBER=XXXXX-XXXXX-XXXXX-XXXXX /QN"For more details on the VMware switchI have done this one time for a friend, I sure it work or just need a minor adjustment.
dv8 Posted August 31, 2004 Author Posted August 31, 2004 Tried Kaspins code, thanks for the tip, but it didnt work. I put it in exactly like this:REG ADD %KEY%\005 /VE /D "VMware Workstation" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Applications\VMware\setup.exe /a /s /v TARGETDIR=\"%systemdrive%\Program Files\VMware\\" ADDLOCAL=ALL DISABLE_AUTORUN=1 DESKTOP_SHORTCUT=1 SERIALNUMBER=xxxx-xxxxx-xxxxx-xxxx /qn" /fAlas it did not work... just flies right by it, like it doesnt see it.
prathapml Posted August 31, 2004 Posted August 31, 2004 First, run the setup with "/A" switch in normal running windows to make an administrative install point. Then you can run the resulting MSI with the below switch (modify it to suit RunOnceEx): VMware.msi /QB TARGETDIR="%systemdrive%\Program Files\VMware" ADDLOCAL=ALL DISABLE_AUTORUN=1 DESKTOP_SHORTCUT=1 SERIALNUMBER=xxxx-xxxxx-xxxxx-xxxx
MCT Posted August 31, 2004 Posted August 31, 2004 %systemdrive%\Program Files\VMwarecouldnt u make that shorter & use %programfiles% ?
yoz7120 Posted August 31, 2004 Posted August 31, 2004 Heres how I install VMWareREG ADD %KEY%\017 /VE /D "Installing VMware 4" /fREG ADD %KEY%\017 /V 1 /D "msiexec -i \"%CDROM%\Software\VMware4\VMwareWorkstation.msi\" INSTALLDIR=\"C:\Program Files\VMware\VMware Workstation\" ADDLOCAL=ALL USERNAME=Yoz SERIALNUMBER=xxxxx-xxxxx-xxxxx-xxxxx REBOOT=ReallySuppress /qn" /fHope this helps
dv8 Posted September 1, 2004 Author Posted September 1, 2004 Here is how i have it now, and it still does not work.. what have i missed?REG ADD %KEY%\005 /VE /D "VMware Workstation" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Applications\Virus\VMwareworkstation.msi /QB TARGETDIR="%systemdrive%\Program Files\VMware" ADDLOCAL=ALL DISABLE_AUTORUN=1 DESKTOP_SHORTCUT=1 REBOOT=ReallySuppress SERIALNUMBER=xxx /qn" /f
prathapml Posted September 1, 2004 Posted September 1, 2004 The problem (that is happening to your vmware install) is that you have used both switches for install - "/QB" and "/QN". You should use only one of those.Also, let it install where it wants to - or specify exact pathnames - because the "TARGETDIR" property seems to be unable to use system variables like "%systemdrive%".You can either change that particular one to "TARGETDIR="C:\Program Files\VMware" or not use that property at all.Fixing those 2 things will make it install smoothly.
sleepnmojo Posted September 1, 2004 Posted September 1, 2004 I'll take a stab at it. try this.REG ADD %KEY%\005 /VE /D "VMware Workstation" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Applications\Virus\VMwareworkstation.msi /QB TARGETDIR=\"%systemdrive%\Program Files\VMware\" ADDLOCAL=ALL DISABLE_AUTORUN=1 DESKTOP_SHORTCUT=1 REBOOT=ReallySuppress SERIALNUMBER=xxx" /f
mazin Posted September 1, 2004 Posted September 1, 2004 @prathapmlHUH?! Joking again. TARGETDIR is for AIP!!!!INSTALLDIR is for installation. So, replace TARGETDIR with INSTALLDIR.MAZIN
prathapml Posted September 1, 2004 Posted September 1, 2004 Hmm..... Not joking again mazin. Yes, it is INSTALLDIR. But since I don't use it much (because it doesn't support environment variables, it only wants absolute paths), I don't remember it exactly.This will work perfectly:First, run the setup with "/A" switch in normal running windows to make an administrative install point. Then you can run the resulting MSI (alongwith the folders in the same folder) with the below switch (modify it to suit RunOnceEx): VMware.msi /QB ADDLOCAL=ALL DISABLE_AUTORUN=1 DESKTOP_SHORTCUT=1 SERIALNUMBER=xxxx-xxxxx-xxxxx-xxxxDiscard the other single-file setup which you originally downloaded, its not needed now.
sleepnmojo Posted September 2, 2004 Posted September 2, 2004 Also, let it install where it wants to - or specify exact pathnames - because the "TARGETDIR" property seems to be unable to use system variables like "%systemdrive%".You can either change that particular one to "TARGETDIR="C:\Program Files\VMware" or not use that property at all.When this gets added to the registry, systemdrive will disappear, and be replaced with the drive letter. So your concerns here should go away. There might be a problem when trying this with a command line, but since he is adding this to the registry via cmd file, there isn't a problem.I think the best thing to do is just get rid of the whole property value, as everyone is mentioning.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now