PDA

View Full Version : doom3 στα win2003


CmoS
19-09-2004, 17:35
Ξερει κανενας πως να κανω το doom 3 να κανει setup στα 2003 win?
Βρηκα κατι τροπους με msi editor αλλα δεν ηταν αναλητικα...

Καμια ιδεα? :001:

KTM
19-09-2004, 18:53
Αυτο βοηθαει?

by default you can't but there's a workaround:

'Fixes Doom 3.msi file and allows it to install to Windows 2003 and allows you to run the MSI file directly.
'by darkgamorck aka gamorck. Remember the MSI file must NOT be opened by any process while this code is running.

'To execute this code save it into a VBS file. And drag the Doom 3.msi file onto it. This will produce a nice new
'MSI file that enables you to install it anywhere (even on win9x in theory). How you install with this MSI file is
'your own problem. You can reburn a new CD replacing the old MSI file with this new one. Or you can run setup.exe /A
'and administratively copy all of the files to some directly - replace the resulting MSI file in that directory and then
'execute setup that way. Whatever way works for you works for me.

'Cheers.

Option Explicit

Const msiOpenDatabaseModeReadOnly = 0
Const msiOpenDatabaseModeTransact = 1

Dim argNum, argCount:argCount = Wscript.Arguments.Count
If (argCount < 1) Then
Wscript.Echo "Please supply the name of the msi file to be modified."
Wscript.Quit 1
End If

' Scan arguments for valid SQL keyword and to determine if any update operations
Dim openMode : openMode = msiOpenDatabaseModeReadOnly
openMode = msiOpenDatabaseModeTransact

' Connect to Windows installer object
Dim installer : Set installer = Nothing
Set installer = Wscript.CreateObject("WindowsInstaller.Installer") : CheckError

' Open database
Dim databasePath:databasePath = Wscript.Arguments(0)
Dim database : Set database = installer.OpenDatabase(databasePath, openMode) : CheckError

' Process SQL statements and delete the crap out of this installer!
Dim query, view, record, message, rowData, columnCount, delim, column
Set view = database.OpenView("Delete from LaunchCondition") : CheckError
view.Execute
wscript.echo "Launch Conditions Removed"
Set view = database.OpenView("Delete from InstallExecuteSequence where Action='OnCheckSilentInstall'")
view.Execute
wscript.echo "OnCheckSilentInstall step removed"
Set view = database.OpenView("Delete from Property where Property = 'ISSETUPDRIVEN'")
view.Execute
wscript.echo "Property ISSETUPDRIVEN removed"
Set view = database.OpenView("INSERT INTO Property (Property,Value) VALUES ('ISSETUPDRIVEN',1)")
view.Execute
wscript.echo "Property ISSETUPDRIVEN added"
database.Commit
Wscript.Quit 0

Sub CheckError
Dim message, errRec
If Err = 0 Then Exit Sub
message = Err.Source & " " & Hex(Err) & ": " & Err.Description
If Not installer Is Nothing Then
Set errRec = installer.LastErrorRecord
If Not errRec Is Nothing Then message = message & vbLf & errRec.FormatText
End If
Fail message
End Sub

Sub Fail(message)
Wscript.Echo message
Wscript.Quit 2
End Sub


It's quite simple really. After executing this you will need to integrate it into the CD or replace the MSI dumped to disk during an Admin network install of the package (setup.exe /A). After this you should be able to install and perhaps even play Doom 3 on any Windows compatible system you wish (though I doubt Windows NT 4.0 will even work and I somewhat doubt that 9x will either).

emnezia
19-09-2004, 18:56
Με το τρομερό crack του να κάνεις copy απ'το My computer τον φάκελο του παιχνιδιού (νομίζω data ήταν, θα τον δεις που έχει μέσα το doom.exe) σε ένα σημείο του σκληρού δίσκου! Aπ'όλα τα cds όχι μόνο το πρώτο.
Μετά απλά τρέχεις το Doom.exe
Αν θες να μην χρειάζεσαι και cd για την εκτέλεση είναι πιο δύσκολο γιατί θες ένα doom.exe να το κάνεις copy από ένα άλλο σημείο του νετ... (πιπέρι)

KTM
19-09-2004, 18:58
Βρηκα κι αυτο επισεις: http://www.sanx.org/tipShow.asp?articleRef=253

CmoS
19-09-2004, 20:38
Εκανα το πρωτο που μου ειπες KTM...ηταν πολυ απλο τελικα...ευχαριστω πολυ;)

@emnezia δε καταλαβα τπτ ρε c..:D:D δε λεω για να παιξει στα 2003 αλλα να γινει setup..:)

τεσπα...το εκανα!:)

KTM
19-09-2004, 20:49
Τελος καλο, ολα καλα. ;)

emnezia
19-09-2004, 21:14
Χμμ τώρα που το βλέπω μάλλον το παραέγραψα πολύπλοκα.
Έλεγα απλά να κάνεις copy/paste απ'τα cds του doom, έναν φάκελο (νομίζω data λεγόταν) με τα αρχεία σε ένα directory στο σκληρό.
Μετά απλά τρέχεις το εκτελέσιμο doom.exe απ'το σκληρό δίσκο!
πχ
copy %cddrive%:\data\*.* c:\doom3 (για κάθε cd του παιχνιδιού)
μετά εκτελείς το Doom.exe απ'το c:\doom3\

Ουσιαστικά το setup κάνει copy όλα τα αρχεία, απλά έχει περιορισμό με έλεγχο για λειτουργικά ΝΤ