RogueSpear, on Feb 12 2006, 06:26 AM, said:
For Each objDrive in colDrives If fs.FileExists(objDrive.DriveLetter & ":\WIN51") Then strOEM = objDrive.DriveLetter & ":\OEM" Next
You can change \OEM to pretty much whatever you like so long as it's on the install media. If you don't want the switchless silent installer executed from the CD/DVD media at all, but rather you've placed it inside \$OEM$\$1 so that it winds up on the root of your system drive, then simply replace this little part:
ws.Run(strOEM & "\VMWareTools.exe"),0,Truewith
ws.RUN("%systemdrive%\VMWareTools.exe"),0,True
Excellent - you have pointed me in the right direction - now i have modified the code a little differently to what is above - but it is doing exactly what i want. What i have done is created a self extracting installer that checks and then if it is vmware installs the tools - it all in once exe file - very clean and simple.
I would like to clean it up a little further - would it be possible for you to tell me what the command line code is that you are using in the 7zip exe for "VMwareTools.exe" - right now i am including your current VMwareTools.exe file inside another 7zip exe that i have running the script etc... i would prefer to do it all from a single file - much cleaner...
Thanks again for you work - i really appreciate it!
This post has been edited by `Felix`: 11 February 2006 - 11:08 PM



Help



Back to top









