Microsoft Virtual Server 2005 R2 (WinXP)

Windows 2000 fixes and solutions for apps

Microsoft Virtual Server 2005 R2 (WinXP)

PostPosted by justjohnny » Fri Nov 12, 2010 1:54 am

Sometimes the .msi file(s) are hidden inside the .exe file. Extract the .msi file by typing in:
<setup/installer file> /c /t <extract directory>
e.g.
setup.exe /c /t c:\myprogram
install.exe /c /t c:\myprogram
^^ The extract directory does not need to exist, it will be created.

Now browse to c:\myprogram to find the .msi file(s).

Reference:
http://vmblog.com/archive/2007/07/10/vh ... erver.aspx
To perform an unattended installation of the VHD Mount components

1. Extract Virtual Server 2005 Install.msi from Setup.exe by typing the following command:
setup.exe /c /t <drive letter>:\<path to the .msi file>

1. For example, to extract “Virtual Server 2005 Install.msi” to c:\SetupFiles, type:
setup.exe /c /t c:\SetupFiles
justjohnny
 
Posts: 217
Joined: Mon Apr 12, 2010 7:25 am

Re: msi Windows Installer hacking

PostPosted by justjohnny » Fri Nov 12, 2010 2:14 am

To hack msi files, download and install a program called Orca.

I just tested this on WinXP, this needs to be tested on Win2K(wrappers might be needed for Orca).

Download Orca by following the directions here:
http://support.microsoft.com/kb/255905

At the time of writing(20101112) the Windows Installer SDK links to Windows® Server 2003 SP1 Platform SDK Web Install. I downloaded and installed the x86 version but amd64 and ia64 versions exist too.

I just noticed that:
http://www.microsoft.com/downloads/en/d ... laylang=en
NOTE: This version of the Platform SDK has been superceded by the Windows SDK for Windows Server 2008 and .NET Framework 3.5.

^^ I'll have to grab and install that another time to see if they have an updated Orca tool, it might be obsolete:
http://www.technipages.com/download-orc ... ditor.html
This tool used to be a part of Microsoft Developer Tools but is now retired and no longer supported by the company.


32-bit x86 version information as at 20101112:
Filename: C:\Program Files\Microsoft Platform SDK\Bin\Orca.Msi
Version: 3.1.4000.1830
Filesize: 1.82 MB (1,910,272 bytes)
MD5 sum: 710ae2be53e11f3d5c5f8cfccce76a3a
Download link: Orca.Msi
Last edited by justjohnny on Wed Nov 17, 2010 8:16 pm, edited 1 time in total.
justjohnny
 
Posts: 217
Joined: Mon Apr 12, 2010 7:25 am

Re: msi Windows Installer hacking

PostPosted by justjohnny » Fri Nov 12, 2010 2:36 am

Before you use Orca, you need to find out why your msi fails to install by using logging. Use msiexec to log the failed install.

To see all the options for msiexec click Start, click Run, type in:
msiexec
and click OK. A pop up box will show you all the options for msiexec. Click OK to close.

Use msiexec in this format:
msiexec /i "<path to msi file>" /liwearucmopvx+! "<path to log file>"
e.g.:
msiexec /i "C:\vs\Virtual Server 2005 Install.msi" /liwearucmopvx+! "C:\vs\vs2005install.log"

This is what happened:
Image
Image
Image
Image

Now lets examine the log file:
C:\vs\vs2005install.log
<snip>
MSI (c) (50:00) [13:25:49:437]: Doing action: CaCheckOS
Action 13:25:49: CaCheckOS. Checking operating system
Action start 13:25:49: CaCheckOS.
MSI (c) (50:00) [13:25:49:546]: Creating MSIHANDLE (4) of type 790542 for thread 768
MSI (c) (50:04) [13:25:49:578]: Invoking remote custom action. DLL: C:\DOCUME~1\COMPUT~1\LOCALS~1\Temp\MSI215.tmp, Entrypoint: CaCheckOS
MSI (c) (50!A0) [13:25:49:734]: PROPERTY CHANGE: Adding CAP_OSName property. Its value is '[WinXPHomeDesc]'.
MSI (c) (50!A0) [13:25:49:875]: PROPERTY CHANGE: Adding CAP_DisallowedOS property. Its value is '1'.
MSI (c) (50:04) [13:25:49:906]: Closing MSIHANDLE (4) of type 790542 for thread 768
Action ended 13:25:49: CaCheckOS. Return value 1.
MSI (c) (50:00) [13:25:49:968]: Skipping action: CaSetWebRestrictedFeatureSet (condition is false)
MSI (c) (50:00) [13:25:50:000]: Skipping action: Error_Disallowed64bitOS (condition is false)
MSI (c) (50:00) [13:25:50:078]: Doing action: Error_DisallowedOS
Action 13:25:50: Error_DisallowedOS.
Action start 13:25:50: Error_DisallowedOS.
DEBUG: Error 2835: The control ErrorIcon was not found on dialog SetupErrorDialog
Internal Error 2835. ErrorIcon, SetupErrorDialog
Setup has detected that you are running an unsupported operating system [WinXPHomeDesc]. Virtual Server cannot be installed on this operating system.
MSI (c) (50:00) [13:25:58:843]: Product: Microsoft Virtual Server 2005 R2 SP1 -- Setup has detected that you are running an unsupported operating system [WinXPHomeDesc]. Virtual Server cannot be installed on this operating system.

Action ended 13:25:58: Error_DisallowedOS. Return value 3.
MSI (c) (50:00) [13:25:59:000]: Doing action: FatalErrorForm
<snip>
justjohnny
 
Posts: 217
Joined: Mon Apr 12, 2010 7:25 am

Re: msi Windows Installer hacking

PostPosted by justjohnny » Fri Nov 12, 2010 3:00 am

This page is a good introduction on how to use Orca:
http://support.microsoft.com/kb/255905

Make a copy of your msi file before you begin to make changes to it using Orca. For this example I copied:
Virtual Server 2005 Install.msi
and then pasted it and renamed it to:
"Virtual Server 2005 Install Hacked.msi"
and then opened up "Virtual Server 2005 Install Hacked.msi" in Orca.

From the logfile, it failed during the action CaCheckOS. Press Ctrl + F in Orca to do a search. Type in:
CaCheckOS
and click "Find Next".

This is a screenshot of Orca:
Image
^^ On the left hand side column you see the "Tables".

The first result was in Table ActionText, as this is just a description, click "Find Next". Next result is in Table "CustomAction", click "Find Next", click "Find Next" again. Now we are where we want to be:
Image
There are quite a few options I could do here. I could delete the action altogether, change its condition(s), or change its Sequence.

If I wanted to delete the action altogether I would click on the word CaCheckOS, then click the Tables menu and then click "Drop Row(s)" and then click OK.

If I wanted to change its Condition, I would click in the box and either add, edit, or delete what is there.

If I wanted to change the Sequence, I could put in a different number or delete the number altogether.

For this example I deleted the action. After clicking "Find Next" CaCheckOS is found again in the Table "InstallUISequence", I deleted this also. I then quit Orca and saved my changes.

Installing it this time was successful:
msiexec /i "C:\vs\Virtual Server 2005 Install Hacked.msi" /liwearucmopvx+! "C:\vs\vs2005installhacked.log"

Screenshots:
Image
Image
Image

Happy Hacking.
justjohnny
 
Posts: 217
Joined: Mon Apr 12, 2010 7:25 am

Re: Microsoft Virtual Server 2005 R2 (WinXP)

PostPosted by OldBoy2k » Fri Nov 12, 2010 10:51 am

Thanks for the great information.Added the msi install tweak information to the main msi extraction thread.Win2k confirmation pending.

BR
OldBoy2k
OldBoy2k
 
Posts: 1351
Joined: Fri Feb 15, 2008 5:10 pm

Re: msi Windows Installer hacking

PostPosted by justjohnny » Wed Nov 17, 2010 3:27 am

justjohnny wrote:Windows® Server 2003 SP1 Platform SDK

32-bit x86 version information as at 20101112:
Filename: C:\Program Files\Microsoft Platform SDK\Bin\Orca.Msi
Version: 3.1.4000.1830
Filesize: 1.82 MB (1,910,272 bytes)
MD5 sum: 710ae2be53e11f3d5c5f8cfccce76a3a
Download link: Orca.Msi


Windows SDK for Windows Server 2008 and .NET Framework 3.5

32-bit x86 version information as at 20101117:
Filename: C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\Orca.Msi
Version: 4.0.6001.0
Filesize: 2.13 MB (2,243,072 bytes)
MD5 sum: afb2f3b30ada21d5d13fb70f1815caac
Download link: Orca.Msi
Last edited by justjohnny on Wed Nov 17, 2010 8:17 pm, edited 2 times in total.
justjohnny
 
Posts: 217
Joined: Mon Apr 12, 2010 7:25 am

Re: Microsoft Virtual Server 2005 R2 (WinXP)

PostPosted by justjohnny » Wed Nov 17, 2010 7:30 am

Windows Software Development Kit Update for Windows Vista

32-bit x86 version information as at 20101117:
Filename: C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin\Orca.Msi
Version: 4.0.5299.0
Filesize: 1.88 MB (1,978,880 bytes)
MD5 sum: cc1fc9c6bf25c578cee8216ea50dae81
Download link: Orca.Msi
Last edited by justjohnny on Wed Nov 17, 2010 8:18 pm, edited 1 time in total.
justjohnny
 
Posts: 217
Joined: Mon Apr 12, 2010 7:25 am

Re: Microsoft Virtual Server 2005 R2 (WinXP)

PostPosted by justjohnny » Wed Nov 17, 2010 12:25 pm

Windows Server 2003 R2 Platform SDK

32-bit x86 version information as at 20101117:
Filename: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin\Orca.Msi
Version: 3.1.4000.2049
Filesize: 1.82 MB (1,910,272 bytes)
MD5 sum: f47c77eb9373a3c757e53f9ef33833b1
Download link: Orca.Msi
Last edited by justjohnny on Wed Nov 17, 2010 8:15 pm, edited 1 time in total.
justjohnny
 
Posts: 217
Joined: Mon Apr 12, 2010 7:25 am

Re: Microsoft Virtual Server 2005 R2 (WinXP)

PostPosted by justjohnny » Wed Nov 17, 2010 2:26 pm

Windows SDK for Windows 7 and .NET Framework 3.5 SP1

32-bit x86 version information as at 20101118:
Filename: C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin\Orca.Msi
Version: 5.0.7069.0
Filesize: 2.18 MB (2,291,712 bytes)
MD5 sum: bd9c2e850c2dc065162a531ce94dc61f
Download link: Orca.Msi
Last edited by justjohnny on Wed Nov 17, 2010 8:42 pm, edited 2 times in total.
justjohnny
 
Posts: 217
Joined: Mon Apr 12, 2010 7:25 am

Re: Microsoft Virtual Server 2005 R2 (WinXP)

PostPosted by justjohnny » Wed Nov 17, 2010 7:18 pm

Windows SDK for Windows 7 and .NET Framework 4

32-bit x86 version information as at 20101118:
Filename: C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\Orca.Msi
Version: 5.0.7693.0
Filesize: 2.19 MB (2,301,952 bytes)
MD5 sum: dc36131e745cd089b6f13cc17f5b7b87
Download link: Orca.Msi
Last edited by justjohnny on Wed Nov 17, 2010 8:13 pm, edited 1 time in total.
justjohnny
 
Posts: 217
Joined: Mon Apr 12, 2010 7:25 am

Re: Microsoft Virtual Server 2005 R2 (WinXP)

PostPosted by justjohnny » Wed Nov 17, 2010 7:19 pm

That is all the Windows SDKs I can find online at the Microsoft website. For the earlier SDKs they need to be ordered from this website:
http://mssdk.orderport.net/
justjohnny
 
Posts: 217
Joined: Mon Apr 12, 2010 7:25 am

Re: Microsoft Virtual Server 2005 R2 (WinXP)

PostPosted by justjohnny » Wed Nov 17, 2010 8:47 pm

Orca needs to be profiled using Dependency Walker on Win2K to see if anything is missing.
justjohnny
 
Posts: 217
Joined: Mon Apr 12, 2010 7:25 am

Re: Microsoft Virtual Server 2005 R2 (WinXP)

PostPosted by Xer0 » Wed Jan 04, 2012 11:07 pm

yeah, how long i searched for this topic. it saved my day!! thx and keep it up
Xer0
 
Posts: 1
Joined: Wed Jan 04, 2012 7:57 pm


Return to Backporting Applications

Who is online

Users browsing this forum: No registered users and 0 guests

cron