My Digital Life Forums  

Go Back   My Digital Life Forums > Computing Life > Virtualization

Reply
 
Thread Tools Display Modes
  #121  
Old 11-05-2009, 02:58 AM
highspeedmac's Avatar
highspeedmac highspeedmac is offline
MDL Member
 
Join Date: Aug 2009
Posts: 120
Rep Power: 18
highspeedmac notices that the box in the working room is not only for heatinghighspeedmac notices that the box in the working room is not only for heating
Default

Quote:
Originally Posted by randomchaos26 View Post
might want to change "%systemdrive%\Program Files\" to "%ProgramFiles%\"
the batch script failed on my customized winxp install where the program files directory is set to "C:\Programs\", also some foreign language installs of windows do not use "Program Files" either
i also have a machine with the program files directory on another partition entirely (aka D:\Program Files\) this would also thoroughly confuse the batch script because its not on the systemdrive at all

edit: before anyone asks why i would do that:
a) because i can, b) i have my reasons


Actually, I know quite a lot of people who do that.. On my person Business PC I have the the Boot Files on the C:, Several Windows Installs on the D:, Documents and settings on the E: , and the Program Files on the the F..

It's actually a highly recommend setup..

@searchengine, lol, something for your next update..
Reply With Quote
  #122  
Old 11-05-2009, 03:25 AM
searchengine's Avatar
searchengine searchengine is offline
MDL Member
 
Join Date: Mar 2009
Location: United Kingdom
Posts: 111
Rep Power: 43
searchengine noticed that you can't convert soft- to hardware by giving Viagrasearchengine noticed that you can't convert soft- to hardware by giving Viagrasearchengine noticed that you can't convert soft- to hardware by giving Viagrasearchengine noticed that you can't convert soft- to hardware by giving Viagra
Default

randomchaos26 & highspeedmac .... LOL

There are a fair few ways to tell a batch file to select file paths ... but, its not feasible to have an installer look for custom file paths all over the shop for all o/s's (32&64bit).

My interest for this patcher is to have it look for vmx.exe in the 4xlocations on 1st post .... and not any other "paths chosen by user" ... too clumsy to manage.

randomchaos26 "%systemdrive%" checks C-Z (not just C) ... and if I wanted to go all international with file paths I would go pure DOS 8.3 compliant eg. %systemdrive%\PROGRA~1\VMware\VMWARE~1\VMB965~1.EX E .... but I don't, so I wont.
__________________
~ patience may not be my best feature ... but I'm working on it ~
Reply With Quote
  #123  
Old 11-05-2009, 04:06 AM
randomchaos26 randomchaos26 is offline
MDL Novice
 
Join Date: Aug 2009
Posts: 5
Rep Power: 6
randomchaos26 looks for the roller blind when shutting down windows
Default

i have two batch scripts to enable/disable vmware's services and network adapters across my x86 and x64 installs, i will post it so you can see how i select where the program files directory is on my various configurations (some default windows paths, some custom paths)

start-vmware.bat:

@echo off
color 0A

rem IF PROCESSOR_ARCHITECTURE == amd64 OR
rem PROCESSOR_ARCHITEW6432 == amd64 THEN
rem // OS is 64bit
rem ELSE
rem // OS is 32bit
rem END IF
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto set64
if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto set64
set progpath=%ProgramFiles%
set mode=x86
set devcon=devcon32.exe
goto do_start
:set64
rem vmware installs in the 32bit program files directory by default on x64
set progpath=%ProgramFiles(x86)%
set mode=x64
set devcon=devcon64.exe
:do_start

echo running in %mode% mode.

title enabling VMware Network Adapters...
%devcon% enable *VMnetAdapter1
%devcon% enable *VMnetAdapter8

title starting VMware Authorization Service...
net start VMAuthdService

title starting VMware DHCP Service...
net start VMnetDHCP

title starting VMware NAT Service...
net start "VMware NAT Service"

rem title starting VMware Virtual Mount Manager Extended...
rem net start vmount2

rem title starting VMware Registration Service...
rem net start vmserverdWin32

rem title starting VMware Converter Service...
rem net start ufad-p2v

rem prefer to start vmware workstation, if its installed
if exist "%progpath%\VMware\VMware Workstation\vmware.exe" goto start_vmware
title starting VMware Player...
start /D"%progpath%\VMware\VMware Player\" vmplayer.exe
goto end
:start_vmware
title starting VMware Workstation...
start /D"%progpath%\VMware\VMware Workstation\" vmware.exe

:end
@exit

this was for vmware workstation 6.5 (and vmware player if workstation was not installed) but it should still work for vmware workstation 7.0, theres just a new service "VMware USB Arbitration Service"
the script to disable vmware is similar
Reply With Quote
  #124  
Old 11-05-2009, 05:26 AM
randomchaos26 randomchaos26 is offline
MDL Novice
 
Join Date: Aug 2009
Posts: 5
Rep Power: 6
randomchaos26 looks for the roller blind when shutting down windows
Default

tested successfully on this machine, should work on all my other machines, and if i didn't mess it up too badly, most other people's computers as well
used batch subroutines for extra fancy

@echo off
color 0A

if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto set64
if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto set64
set progpath=%ProgramFiles%
goto do_start
:set64
rem vmware installs in the 32bit program files directory by default on x64
set progpath=%ProgramFiles(x86)%
:do_start

set base=%progpath%\VMware
set vmx=vmware-vmx.exe
set backup=%base%\BackUp-VMX
set found=false

call :do-check
if "%found%"=="false" goto ERROR1
call :do-setup
rem write code here

GOTO:EOF

:do-check
rem check subroutine
set check-paths=VMware Workstation Lite\bin,VMware Workstation\bin,VMware Workstation,VMware Workstation\x64
:processToken
for /f "tokens=1* delims=," %%a in ("%check-paths%") do (
if exist "%base%\%%a\%vmx%" set found=%%a
set check-paths=%%b
)
if not "%check-paths%" == "" goto :processToken
rem if the path was not found, get out of here
if "%found%"=="false" GOTO:EOF
set aox=-force -guiless -nobackup -dir "%base%\%found%\"
if not exist "%backup%\%vmx%" md "%backup%" & call :do-backup
GOTO:EOF

:do-backup
rem backup subroutine
color 80
mode con cols=80 lines=3
echo.
echo Backing-Up "%vmx%" to your :%backup% folder
copy "%base%\%found%\%vmx%" "%backup%\%vmx%" >nul
ping -n 10 127.0.0.1 >nul
GOTO:EOF

:do-setup
rem setup subroutine
rem write code here
GOTO:EOF
Reply With Quote
  #125  
Old 11-05-2009, 06:38 AM
searchengine's Avatar
searchengine searchengine is offline
MDL Member
 
Join Date: Mar 2009
Location: United Kingdom
Posts: 111
Rep Power: 43
searchengine noticed that you can't convert soft- to hardware by giving Viagrasearchengine noticed that you can't convert soft- to hardware by giving Viagrasearchengine noticed that you can't convert soft- to hardware by giving Viagrasearchengine noticed that you can't convert soft- to hardware by giving Viagra
Default

@randomchaos26 ....

the 2nd script you posted is actually very interesting ... tidy use of set and set check-paths etc. .... will have a closer look at weekend.

damn it ... your making me think dark thoughts about neutralizing language ID of binres 6006, and going international (using DOS only file paths/names).
__________________
~ patience may not be my best feature ... but I'm working on it ~
Reply With Quote
  #126  
Old 11-05-2009, 08:12 AM
psyco's Avatar
psyco psyco is offline
MDL Novice
 
Join Date: Aug 2009
Posts: 9
Rep Power: 6
psyco looks for the roller blind when shutting down windows
Default

Quote:
Originally Posted by searchengine View Post
@psyco...

Patch binres 6006 has en/usa language ID ... think that's no good on your vmware-vmx.exe.....in effect you have an exe with Italian language ID with binres 6006 in en/usa.
@searchengine
Hi all, i'm at work now.
My VMware 7 is english versione, not italian (only OS is italian).
And all my problems are same if i use modded exe or i add bios440.filename="modded bios" to .vmx file. ( I don't use modded exe together bios440.filename)
VMWare 6.5 work fine, but with VMWare 7 i've all that problems.
VMware 7 and VMware 6.5 have same bios?
Reply With Quote
  #127  
Old 11-05-2009, 09:30 AM
psyco's Avatar
psyco psyco is offline
MDL Novice
 
Join Date: Aug 2009
Posts: 9
Rep Power: 6
psyco looks for the roller blind when shutting down windows
Default

Some new tests on WMvare 7.0.0 build-203739
- ASUS, MSI and HP modded exe don't work (i don't see HD during OS installation)
- DELL modded exe works fine
I will try other modded exe at home, i'm am at work now (and i must WORK )
Can anyone check?
Bye bye
Reply With Quote
  #128  
Old 11-05-2009, 09:41 AM
amires amires is offline
MDL Novice
 
Join Date: Sep 2009
Posts: 27
Rep Power: 4
amires looks for the roller blind when shutting down windows
Default

I don't see why you people want to try all available certificates. Once a certificate is working stick to it. For me Dell is working perfectly.
Reply With Quote
  #129  
Old 11-05-2009, 09:56 AM
psyco's Avatar
psyco psyco is offline
MDL Novice
 
Join Date: Aug 2009
Posts: 9
Rep Power: 6
psyco looks for the roller blind when shutting down windows
Default

Quote:
Originally Posted by amires View Post
I don't see why you people want to try all available certificates. Once a certificate is working stick to it. For me Dell is working perfectly.
The problem is not the certificate , but i can't see HD during installation
If you read some post ago, you can see my problems.
At this time (after 4 tests) Dell is the only working on WMvare 7.0.0 build-203739
Reply With Quote
  #130  
Old 11-05-2009, 10:33 AM
amires amires is offline
MDL Novice
 
Join Date: Sep 2009
Posts: 27
Rep Power: 4
amires looks for the roller blind when shutting down windows
Default

Quote:
Originally Posted by psyco View Post
The problem is not the certificate , but i can't see HD during installation
If you read some post ago, you can see my problems.
At this time (after 4 tests) Dell is the only working on WMvare 7.0.0 build-203739
What i said was in general not to you specifically. I didnt mean to insult you. I tried Dell and it worked for me. I am glad that Dell is working for you too.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VMWare Workstation 7 RC SLIC 2.1 help junk2008 Bios Mods 6 10-21-2009 11:22 AM
VMWare Workstation 6.5 BIOS mod? riahc3 Windows 7 3 08-12-2009 04:10 AM
Painless HP OEMBIOS and VMWare Bios Pre-Mod MarkMan Windows XP 21 10-31-2008 11:52 PM
Vmware Workstation 6.5 and VMWAREBIOS ROM ! thegorre Virtualization 9 10-13-2008 05:34 PM
extracting specific installer from bundled software apps woogy4703 Application Software 2 06-24-2008 08:21 PM


All times are GMT +1. The time now is 07:45 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.