Announcement

Collapse
No announcement yet.

Help emulating .bat to install

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help emulating .bat to install

    Hi all.
    i have a little problem with wine, i am trying to install a game but the game came with a .bat file to install, so i try to run it with wine and no luck, then i opened the cmd of window(wine has 1) and opened the .bat it worked until 10% when the install says that it couldn't install and ask u to close it.
    Then i downloaded virtualbox to see if i could install the game but its eating my brain...
    The thing is if u could tell me baby steps how to make work the .bat, seems like wine wont install it, virtualbox doesn't want to run the xp it says the next thing: FATAL: no booteable medium found.
    So i am asking for programs to emulate windows (free ones) and baby step of how to make it work.

    The game:
    Its a ripped game..... thats why it uses .bat to uncompress, so if any1 here have experience working with bats in kubuntu or ubuntu or linux in general please help me. Thx for your time.

    #2
    Re: Help emulating .bat to install

    Maybe this will help?
    http://www.linuxforums.org/forum/red...iles-wine.html

    Otherwise, you could try turning this into a native Linux script, by using bash scripting, or something along these lines (this is "advanced stuff though).

    Comment


      #3
      Re: Help emulating .bat to install

      thx for the post.
      The problem persist, i had try that one before, from that page i got the idea of using cmd to install, still no luck
      it doesn't have to be wine, i just want to play that game... any help?

      Comment


        #4
        Re: Help emulating .bat to install

        Ah, sorry, now I see what you meant by "cmd" in the original post. I guess it's not a trivial batch file, otherwise it would have succeeded. The only thing that comes to mind is to try crossover, and if it works buy a copy:

        http://www.codeweavers.com/products/...ownload_trial/

        This is a more polished version of wine ...

        Comment


          #5
          Re: Help emulating .bat to install

          A couple of things:

          Is this actually a windows game, or a dos game? If it is a dos game, you need dosbox, not wine.You might also try installing the program with dosbox, if all it is doing is dos commands, but it will take some fiddling to get the directories set up.

          Take a look at the batch file; you might be able to do the things it does one step at a time, typing the commands in at the command prompt, which you can get from:

          Code:
          wine cmd
          This puts you at what is basically a dos prompt, although it is not dos, and probably doesn't work any better than the dos prompt in XP ever did.

          Make sure your drives are set up in wine the way the batch file wants to see them.

          If all the batch file is doing is uncompressing files, there may be linux programs that can do the same thing.
          We only have to look at ourselves to see how intelligent life might develop into something we wouldn't want to meet. -- Stephen Hawking

          Comment


            #6
            Re: Help emulating .bat to install

            The crossover didn't work...

            The batch is to install a game, a big one, i don't understand the batch but ill post it here so if any1 knows how to uncompress using terminal or wine please help me... if i run through cmd, the batch stop at 10%.

            cls
            @echo off
            color 0C
            echo.
            echo 8""""8
            echo 8 e e e e e e eeeee eeeee e e eeeee eeeee
            echo 8eeeee 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
            echo 88 8eee8e 8e 8 8e 8e 8eee8 8e 8e 8 8eee8e 8eee8
            echo e 88 88 8 88 8 88 88 88 88 88 8 88 8 88 8
            echo 8eee88 88 8 88ee8 88eee 88eee 88 88 88ee8 88 8 88 8
            echo.
            echo.
            echo ÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛx ÛxÛxÛxÛxÛxÛxÛxÛ
            echo x x
            echo Û Command.and.Conquer.Red.Alert.3.Multi4.Full-Rip.Skullptura Û
            echo x x
            echo ÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛx ÛxÛxÛxÛxÛxÛxÛxÛ
            echo.
            echo ÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛx ÛxÛxÛxÛxÛxÛxÛxÛ
            echo x x
            echo Û Make sure you have ~8Gb free space on HDD Û
            echo x x
            echo Û read READ_ME.txt before setup Û
            echo x x
            echo ÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛx ÛxÛxÛxÛxÛxÛxÛxÛ
            echo.
            pause
            cls
            echo.
            echo 8""""8
            echo 8 e e e e e e eeeee eeeee e e eeeee eeeee
            echo 8eeeee 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
            echo 88 8eee8e 8e 8 8e 8e 8eee8 8e 8e 8 8eee8e 8eee8
            echo e 88 88 8 88 8 88 88 88 88 88 8 88 8 88 8
            echo 8eee88 88 8 88ee8 88eee 88eee 88 88 88ee8 88 8 88 8
            echo.
            echo.
            echo Exracting... Û²²²²²²²²²²²²²²²²²²² 1%%
            echo.
            echo.
            echo.
            ren zip.dll zip.exe >nul
            IF ERRORLEVEL 3 GOTO THREE
            IF ERRORLEVEL 2 GOTO TWO
            IF ERRORLEVEL 1 GOTO ONE
            zip.exe x -bd -y Data1.7z >nul
            IF ERRORLEVEL 3 GOTO THREE
            IF ERRORLEVEL 2 GOTO TWO
            IF ERRORLEVEL 1 GOTO ONE
            del /F /Q Data1.7z >nul
            cls
            echo.
            echo 8""""8
            echo 8 e e e e e e eeeee eeeee e e eeeee eeeee
            echo 8eeeee 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
            echo 88 8eee8e 8e 8 8e 8e 8eee8 8e 8e 8 8eee8e 8eee8
            echo e 88 88 8 88 8 88 88 88 88 88 8 88 8 88 8
            echo 8eee88 88 8 88ee8 88eee 88eee 88 88 88ee8 88 8 88 8
            echo.
            echo.
            echo Exracting... Û²²²²²²²²²²²²²²²²²²² 2%%
            echo.
            echo.
            echo.
            cd Data >nul
            cd EnglishMovieAudio >nul
            cd data >nul
            for %%i in (*.ogg) do dec.exe -Q "%%i" >nul
            del /q /f *.ogg >nul
            cls
            echo.
            echo 8""""8
            echo 8 e e e e e e eeeee eeeee e e eeeee eeeee
            echo 8eeeee 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
            echo 88 8eee8e 8e 8 8e 8e 8eee8 8e 8e 8 8eee8e 8eee8
            echo e 88 88 8 88 8 88 88 88 88 88 8 88 8 88 8
            echo 8eee88 88 8 88ee8 88eee 88eee 88 88 88ee8 88 8 88 8
            echo.
            echo.
            echo Exracting... ÛÛ²²²²²²²²²²²²²²²²²² 10%%
            echo.
            echo.
            echo.
            for %%i in (*.wav) do sx.exe -sndstream "%%i" -=movies\ >nul
            del /q /f *.wav >nul
            del /q /f dec.exe >nul
            del /q /f sx.exe >nul
            cd movies >nul
            ren *.wav *.snd >nul
            cd .. >nul
            cd .. >nul
            cd .. >nul
            cls
            echo.
            echo 8""""8
            echo 8 e e e e e e eeeee eeeee e e eeeee eeeee
            echo 8eeeee 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
            echo 88 8eee8e 8e 8 8e 8e 8eee8 8e 8e 8 8eee8e 8eee8
            echo e 88 88 8 88 8 88 88 88 88 88 8 88 8 88 8
            echo 8eee88 88 8 88ee8 88eee 88eee 88 88 88ee8 88 8 88 8
            echo.
            echo.
            echo Exracting... ÛÛÛÛ²²²²²²²²²²²²²²²² 20%%
            echo.
            echo.
            echo.
            build EnglishMovieAudio.big EnglishMovieAudio >nul
            del /f /q /s EnglishMovieAudio\*.* >nul
            rd /q /s EnglishMovieAudio >nul
            del /q /f build.exe >nul
            del /q /f EnglishMovieAudio.list >nul
            cd .. >nul
            cls
            echo.
            echo 8""""8
            echo 8 e e e e e e eeeee eeeee e e eeeee eeeee
            echo 8eeeee 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
            echo 88 8eee8e 8e 8 8e 8e 8eee8 8e 8e 8 8eee8e 8eee8
            echo e 88 88 8 88 8 88 88 88 88 88 8 88 8 88 8
            echo 8eee88 88 8 88ee8 88eee 88eee 88 88 88ee8 88 8 88 8
            echo.
            echo.
            echo Exracting... ÛÛÛÛÛÛ²²²²²²²²²²²²²² 30%%
            echo.
            echo.
            echo.
            zip.exe x -bd -y Data2.7z >nul
            IF ERRORLEVEL 3 GOTO THREE
            IF ERRORLEVEL 2 GOTO TWO
            IF ERRORLEVEL 1 GOTO ONE
            del /F /Q Data2.7z >nul
            cls
            echo.
            echo 8""""8
            echo 8 e e e e e e eeeee eeeee e e eeeee eeeee
            echo 8eeeee 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
            echo 88 8eee8e 8e 8 8e 8e 8eee8 8e 8e 8 8eee8e 8eee8
            echo e 88 88 8 88 8 88 88 88 88 88 8 88 8 88 8
            echo 8eee88 88 8 88ee8 88eee 88eee 88 88 88ee8 88 8 88 8
            echo.
            echo.
            echo Exracting... ÛÛÛÛÛÛÛÛ²²²²²²²²²²²² 40%%
            echo.
            echo.
            echo.
            zip.exe x -bd -y Data3.7z >nul
            IF ERRORLEVEL 3 GOTO THREE
            IF ERRORLEVEL 2 GOTO TWO
            IF ERRORLEVEL 1 GOTO ONE
            del /F /Q Data3.7z >nul
            cls
            echo.
            echo 8""""8
            echo 8 e e e e e e eeeee eeeee e e eeeee eeeee
            echo 8eeeee 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
            echo 88 8eee8e 8e 8 8e 8e 8eee8 8e 8e 8 8eee8e 8eee8
            echo e 88 88 8 88 8 88 88 88 88 88 8 88 8 88 8
            echo 8eee88 88 8 88ee8 88eee 88eee 88 88 88ee8 88 8 88 8
            echo.
            echo.
            echo Exracting... ÛÛÛÛÛÛÛÛÛÛ²²²²²²²²²² 50%%
            echo.
            echo.
            echo.
            zip.exe x -bd -y Data4.7z >nul
            IF ERRORLEVEL 3 GOTO THREE
            IF ERRORLEVEL 2 GOTO TWO
            IF ERRORLEVEL 1 GOTO ONE
            del /F /Q Data4.7z >nul
            cls
            echo.
            echo 8""""8
            echo 8 e e e e e e eeeee eeeee e e eeeee eeeee
            echo 8eeeee 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
            echo 88 8eee8e 8e 8 8e 8e 8eee8 8e 8e 8 8eee8e 8eee8
            echo e 88 88 8 88 8 88 88 88 88 88 8 88 8 88 8
            echo 8eee88 88 8 88ee8 88eee 88eee 88 88 88ee8 88 8 88 8
            echo.
            echo.
            echo Exracting... ÛÛÛÛÛÛÛÛÛÛ²²²²²²²²²² 50%%
            echo.
            echo.
            echo.
            zip.exe x -bd -y Data5.7z >nul
            IF ERRORLEVEL 3 GOTO THREE
            IF ERRORLEVEL 2 GOTO TWO
            IF ERRORLEVEL 1 GOTO ONE
            del /F /Q Data5.7z >nul
            cls
            echo.
            echo 8""""8
            echo 8 e e e e e e eeeee eeeee e e eeeee eeeee
            echo 8eeeee 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
            echo 88 8eee8e 8e 8 8e 8e 8eee8 8e 8e 8 8eee8e 8eee8
            echo e 88 88 8 88 8 88 88 88 88 88 8 88 8 88 8
            echo 8eee88 88 8 88ee8 88eee 88eee 88 88 88ee8 88 8 88 8
            echo.
            echo.
            echo Exracting... ÛÛÛÛÛÛÛÛÛÛÛÛ²²²²²²²² 60%%
            echo.
            echo.
            echo.
            zip.exe x -bd -y Data6.7z >nul
            IF ERRORLEVEL 3 GOTO THREE
            IF ERRORLEVEL 2 GOTO TWO
            IF ERRORLEVEL 1 GOTO ONE
            del /F /Q Data6.7z >nul
            cls
            echo.
            echo 8""""8
            echo 8 e e e e e e eeeee eeeee e e eeeee eeeee
            echo 8eeeee 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
            echo 88 8eee8e 8e 8 8e 8e 8eee8 8e 8e 8 8eee8e 8eee8
            echo e 88 88 8 88 8 88 88 88 88 88 8 88 8 88 8
            echo 8eee88 88 8 88ee8 88eee 88eee 88 88 88ee8 88 8 88 8
            echo.
            echo.
            echo Exracting... ÛÛÛÛÛÛÛÛÛÛÛÛÛÛ²²²²²² 70%%
            echo.
            echo.
            echo.
            ren Arc.dll arc.exe >nul
            arc x -y Data7.arc >nul
            IF ERRORLEVEL 3 GOTO THREE
            IF ERRORLEVEL 2 GOTO TWO
            IF ERRORLEVEL 1 GOTO ONE
            del /F /Q Data7.arc >nul
            cls
            echo.
            echo 8""""8
            echo 8 e e e e e e eeeee eeeee e e eeeee eeeee
            echo 8eeeee 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
            echo 88 8eee8e 8e 8 8e 8e 8eee8 8e 8e 8 8eee8e 8eee8
            echo e 88 88 8 88 8 88 88 88 88 88 8 88 8 88 8
            echo 8eee88 88 8 88ee8 88eee 88eee 88 88 88ee8 88 8 88 8
            echo.
            echo.
            echo Exracting... ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ²²²² 80%%
            echo.
            echo.
            echo.
            arc x -y Data8.arc >nul
            IF ERRORLEVEL 3 GOTO THREE
            IF ERRORLEVEL 2 GOTO TWO
            IF ERRORLEVEL 1 GOTO ONE
            del /F /Q Data8.arc >nul
            cls
            echo.
            echo 8""""8
            echo 8 e e e e e e eeeee eeeee e e eeeee eeeee
            echo 8eeeee 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
            echo 88 8eee8e 8e 8 8e 8e 8eee8 8e 8e 8 8eee8e 8eee8
            echo e 88 88 8 88 8 88 88 88 88 88 8 88 8 88 8
            echo 8eee88 88 8 88ee8 88eee 88eee 88 88 88ee8 88 8 88 8
            echo.
            echo.
            echo Exracting... ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ²² 90%%
            echo.
            echo.
            echo.
            arc x -y Data9.arc >nul
            IF ERRORLEVEL 3 GOTO THREE
            IF ERRORLEVEL 2 GOTO TWO
            IF ERRORLEVEL 1 GOTO ONE
            del /F /Q Data9.arc >nul
            cls
            echo.
            echo 8""""8
            echo 8 e e e e e e eeeee eeeee e e eeeee eeeee
            echo 8eeeee 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
            echo 88 8eee8e 8e 8 8e 8e 8eee8 8e 8e 8 8eee8e 8eee8
            echo e 88 88 8 88 8 88 88 88 88 88 8 88 8 88 8
            echo 8eee88 88 8 88ee8 88eee 88eee 88 88 88ee8 88 8 88 8
            echo.
            echo.
            echo Exracting... ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ² 99%%
            echo.
            echo.
            echo.
            SET skullpath=%CD%
            SET skullpath=%skullpath:\=\\%
            > "%Temp%.\regfile.reg" ECHO REGEDIT4
            >>"%Temp%.\regfile.reg" ECHO.
            >>"%Temp%.\regfile.reg" ECHO [HKEY_CURRENT_USER\Software\Electronic Arts\Red Alert 3]
            >>"%Temp%.\regfile.reg" ECHO.
            >>"%Temp%.\regfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts\EA Core\Installed Games\cnc_red_alert3_eu]
            >>"%Temp%.\regfile.reg" ECHO "lang"="en-us"
            >>"%Temp%.\regfile.reg" ECHO.
            >>"%Temp%.\regfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts\Electronic Arts\Red Alert 3]
            >>"%Temp%.\regfile.reg" ECHO "CD Drive"="F:\\"
            >>"%Temp%.\regfile.reg" ECHO "DisplayName"="Command & Conquer™ Red Alert™ 3"
            >>"%Temp%.\regfile.reg" ECHO "ProductName"="Command & Conquer™ Red Alert™ 3"
            >>"%Temp%.\regfile.reg" ECHO "Install Dir"="%skullpath%\\"
            >>"%Temp%.\regfile.reg" ECHO "Installed From"="F:\\"
            >>"%Temp%.\regfile.reg" ECHO "Locale"="en_US"
            >>"%Temp%.\regfile.reg" ECHO "Language"="English (US)"
            >>"%Temp%.\regfile.reg" ECHO "Patch URL"="http://www.ea.com/redalert"
            >>"%Temp%.\regfile.reg" ECHO "Product GUID"="{296D8550-CB06-48E4-9A8B-E5034FB64715}"
            >>"%Temp%.\regfile.reg" ECHO "Suppression Exe"=""
            >>"%Temp%.\regfile.reg" ECHO "Registration"="Software\\Electronic Arts\\Electronic Arts\\Red Alert 3\\ergc"
            >>"%Temp%.\regfile.reg" ECHO "Readme"="%skullpath%\\Support\\readme.txt"
            >>"%Temp%.\regfile.reg" ECHO "UseLocalUserMaps"=dword:00000000
            >>"%Temp%.\regfile.reg" ECHO "UserDataLeafName"="Red Alert 3"
            >>"%Temp%.\regfile.reg" ECHO "ScreenshotsFolderName"="Screenshots"
            >>"%Temp%.\regfile.reg" ECHO "ReplayFolderName"="Replays"
            >>"%Temp%.\regfile.reg" ECHO "ProfileFolderName"="Profiles"
            >>"%Temp%.\regfile.reg" ECHO "SaveFolderName"="SaveGames"
            >>"%Temp%.\regfile.reg" ECHO.
            >>"%Temp%.\regfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts\Electronic Arts\Red Alert 3\1.0]
            >>"%Temp%.\regfile.reg" ECHO "DisplayName"="Red Alert 3"
            >>"%Temp%.\regfile.reg" ECHO "Language"=dword:00000001
            >>"%Temp%.\regfile.reg" ECHO "LanguageName"="English (US)"
            >>"%Temp%.\regfile.reg" ECHO.
            >>"%Temp%.\regfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts\Electronic Arts\Red Alert 3\ergc]
            >>"%Temp%.\regfile.reg" ECHO @="S477L8DBJC48PJC22RLD"
            >>"%Temp%.\regfile.reg" ECHO.
            >>"%Temp%.\regfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts\Red Alert 3]
            >>"%Temp%.\regfile.reg" ECHO "DisplayName"="Command & Conquer™ Red Alert™ 3"
            >>"%Temp%.\regfile.reg" ECHO.
            >>"%Temp%.\regfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\{296D8550-CB06-48E4-9A8B-E5034FB64715}]
            >>"%Temp%.\regfile.reg" ECHO "GameLink"="%skullpath%\\RA3.exe"
            >>"%Temp%.\regfile.reg" ECHO "DisplayIcon"="%skullpath%\\ra3.ico"
            >>"%Temp%.\regfile.reg" ECHO "AuthorizedCDFPrefix"=""
            >>"%Temp%.\regfile.reg" ECHO "Comments"=""
            >>"%Temp%.\regfile.reg" ECHO "Contact"=""
            >>"%Temp%.\regfile.reg" ECHO "DisplayVersion"="1.0.1.0"
            >>"%Temp%.\regfile.reg" ECHO "HelpTelephone"=""
            >>"%Temp%.\regfile.reg" ECHO "InstallDate"="20081030"
            >>"%Temp%.\regfile.reg" ECHO "InstallLocation"="%skullpath%\\"
            >>"%Temp%.\regfile.reg" ECHO "InstallSource"="F:\\"
            >>"%Temp%.\regfile.reg" ECHO "NoModify"=dword:00000001
            >>"%Temp%.\regfile.reg" ECHO "NoRepair"=dword:00000001
            >>"%Temp%.\regfile.reg" ECHO "Publisher"="Electronic Arts"
            >>"%Temp%.\regfile.reg" ECHO "URLInfoAbout"="http://www.ea.com"
            >>"%Temp%.\regfile.reg" ECHO "URLUpdateInfo"="http://www.ea.com/redalert"
            >>"%Temp%.\regfile.reg" ECHO "VersionMajor"=dword:00000001
            >>"%Temp%.\regfile.reg" ECHO "VersionMinor"=dword:00000000
            >>"%Temp%.\regfile.reg" ECHO "WindowsInstaller"=dword:00000001
            >>"%Temp%.\regfile.reg" ECHO "Version"=dword:01000001
            >>"%Temp%.\regfile.reg" ECHO "Language"=dword:00000000
            >>"%Temp%.\regfile.reg" ECHO "DisplayName"="Command & Conquer™ Red Alert™ 3"
            >>"%Temp%.\regfile.reg" ECHO.
            >>"%Temp%.\regfile.reg" ECHO [HKEY_CURRENT_USER\Software\Wow6432Node\Electronic Arts\Red Alert 3]
            >>"%Temp%.\regfile.reg" ECHO.
            >>"%Temp%.\regfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Electronic Arts\EA Core\Installed Games\cnc_red_alert3_eu]
            >>"%Temp%.\regfile.reg" ECHO "lang"="en-us"
            >>"%Temp%.\regfile.reg" ECHO.
            >>"%Temp%.\regfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Electronic Arts\Electronic Arts\Red Alert 3]
            >>"%Temp%.\regfile.reg" ECHO "CD Drive"="F:\\"
            >>"%Temp%.\regfile.reg" ECHO "DisplayName"="Command & Conquer™ Red Alert™ 3"
            >>"%Temp%.\regfile.reg" ECHO "ProductName"="Command & Conquer™ Red Alert™ 3"
            >>"%Temp%.\regfile.reg" ECHO "Install Dir"="%skullpath%\\"
            >>"%Temp%.\regfile.reg" ECHO "Installed From"="F:\\"
            >>"%Temp%.\regfile.reg" ECHO "Locale"="en_US"
            >>"%Temp%.\regfile.reg" ECHO "Language"="English (US)"
            >>"%Temp%.\regfile.reg" ECHO "Patch URL"="http://www.ea.com/redalert"
            >>"%Temp%.\regfile.reg" ECHO "Product GUID"="{296D8550-CB06-48E4-9A8B-E5034FB64715}"
            >>"%Temp%.\regfile.reg" ECHO "Suppression Exe"=""
            >>"%Temp%.\regfile.reg" ECHO "Registration"="Software\\Electronic Arts\\Electronic Arts\\Red Alert 3\\ergc"
            >>"%Temp%.\regfile.reg" ECHO "Readme"="%skullpath%\\Support\\readme.txt"
            >>"%Temp%.\regfile.reg" ECHO "UseLocalUserMaps"=dword:00000000
            >>"%Temp%.\regfile.reg" ECHO "UserDataLeafName"="Red Alert 3"
            >>"%Temp%.\regfile.reg" ECHO "ScreenshotsFolderName"="Screenshots"
            >>"%Temp%.\regfile.reg" ECHO "ReplayFolderName"="Replays"
            >>"%Temp%.\regfile.reg" ECHO "ProfileFolderName"="Profiles"
            >>"%Temp%.\regfile.reg" ECHO "SaveFolderName"="SaveGames"
            >>"%Temp%.\regfile.reg" ECHO.
            >>"%Temp%.\regfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Electronic Arts\Electronic Arts\Red Alert 3\1.0]
            >>"%Temp%.\regfile.reg" ECHO "DisplayName"="Red Alert 3"
            >>"%Temp%.\regfile.reg" ECHO "Language"=dword:00000001
            >>"%Temp%.\regfile.reg" ECHO "LanguageName"="English (US)"
            >>"%Temp%.\regfile.reg" ECHO.
            >>"%Temp%.\regfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Electronic Arts\Electronic Arts\Red Alert 3\ergc]
            >>"%Temp%.\regfile.reg" ECHO @="S477L8DBJC48PJC22RLD"
            >>"%Temp%.\regfile.reg" ECHO.
            >>"%Temp%.\regfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Electronic Arts\Red Alert 3]
            >>"%Temp%.\regfile.reg" ECHO "DisplayName"="Command & Conquer™ Red Alert™ 3"
            >>"%Temp%.\regfile.reg" ECHO.
            >>"%Temp%.\regfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\ Windows\CurrentVersion\Uninstall\{296D8550-CB06-48E4-9A8B-E5034FB64715}]
            >>"%Temp%.\regfile.reg" ECHO "GameLink"="%skullpath%\\RA3.exe"
            >>"%Temp%.\regfile.reg" ECHO "DisplayIcon"="%skullpath%\\ra3.ico"
            >>"%Temp%.\regfile.reg" ECHO "AuthorizedCDFPrefix"=""
            >>"%Temp%.\regfile.reg" ECHO "Comments"=""
            >>"%Temp%.\regfile.reg" ECHO "Contact"=""
            >>"%Temp%.\regfile.reg" ECHO "DisplayVersion"="1.0.1.0"
            >>"%Temp%.\regfile.reg" ECHO "HelpTelephone"=""
            >>"%Temp%.\regfile.reg" ECHO "InstallDate"="20081030"
            >>"%Temp%.\regfile.reg" ECHO "InstallLocation"="%skullpath%\\"
            >>"%Temp%.\regfile.reg" ECHO "InstallSource"="F:\\"
            >>"%Temp%.\regfile.reg" ECHO "NoModify"=dword:00000001
            >>"%Temp%.\regfile.reg" ECHO "NoRepair"=dword:00000001
            >>"%Temp%.\regfile.reg" ECHO "Publisher"="Electronic Arts"
            >>"%Temp%.\regfile.reg" ECHO "URLInfoAbout"="http://www.ea.com"
            >>"%Temp%.\regfile.reg" ECHO "URLUpdateInfo"="http://www.ea.com/redalert"
            >>"%Temp%.\regfile.reg" ECHO "VersionMajor"=dword:00000001
            >>"%Temp%.\regfile.reg" ECHO "VersionMinor"=dword:00000000
            >>"%Temp%.\regfile.reg" ECHO "WindowsInstaller"=dword:00000001
            >>"%Temp%.\regfile.reg" ECHO "Version"=dword:01000001
            >>"%Temp%.\regfile.reg" ECHO "Language"=dword:00000000
            >>"%Temp%.\regfile.reg" ECHO "DisplayName"="Command & Conquer™ Red Alert™ 3"
            del /F /Q zip.exe >nul
            del /F /Q arc.exe >nul
            cls
            echo.
            echo 8""""8
            echo 8 e e e e e e eeeee eeeee e e eeeee eeeee
            echo 8eeeee 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
            echo 88 8eee8e 8e 8 8e 8e 8eee8 8e 8e 8 8eee8e 8eee8
            echo e 88 88 8 88 8 88 88 88 88 88 8 88 8 88 8
            echo 8eee88 88 8 88ee8 88eee 88eee 88 88 88ee8 88 8 88 8
            echo.
            echo.
            echo Extracting... ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ² 99%%
            echo.
            echo.
            echo.
            regedit /s "%Temp%.\regfile.reg" >nul
            "%windir%\regedit.exe" /s "%Temp%.\regfile.reg" >nul
            del /F /Q "%Temp%.\regfile.reg" >nul
            #readme#\DirectX\dxwebsetup.exe >nul
            #readme#\VC80_Redist\vcredist_x86.exe /q >nul
            ren bin.dll bin.exe >nul
            bin.exe >nul
            del /F /Q bin.exe >nul
            del /F /Q tmp.log >nul
            GOTO END
            :THREE
            cls
            del /f /q *.arc >nul
            cls
            color 07
            ECHO.
            ECHO.
            ECHO ==SETUP FAILED==
            ECHO Delete Game, Extract archive and Run Setup.bat again.
            ECHO.
            ECHO.
            ECHO.
            pause
            del setup.bat >nul
            exit
            :TWO
            cls
            del /f /q *.arc >nul
            cls
            color 07
            ECHO.
            ECHO.
            ECHO ==SETUP FAILED==
            ECHO Delete Game, Extract archive and Run Setup.bat again.
            ECHO.
            ECHO.
            ECHO.
            pause
            del setup.bat >nul
            exit
            :ONE
            cls
            del /f /q *.arc >nul
            cls
            color 07
            ECHO.
            ECHO.
            ECHO ==SETUP FAILED==
            ECHO Delete Game, Extract archive and Run Setup.bat again.
            ECHO.
            ECHO.
            ECHO.
            pause
            del setup.bat >nul
            exit
            :END
            cls
            color 0A
            echo.
            echo 8""""8
            echo 8 e e e e e e eeeee eeeee e e eeeee eeeee
            echo 8eeeee 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
            echo 88 8eee8e 8e 8 8e 8e 8eee8 8e 8e 8 8eee8e 8eee8
            echo e 88 88 8 88 8 88 88 88 88 88 8 88 8 88 8
            echo 8eee88 88 8 88ee8 88eee 88eee 88 88 88ee8 88 8 88 8
            echo.
            echo.
            echo ÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛx ÛxÛxÛxÛxÛxÛxÛxÛ
            echo x x
            echo Û Extraction Done! Û
            echo x x
            echo Û-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-Û
            echo x x
            echo Û Press Any Key and Start Game from Desktop! Û
            echo x x
            echo ÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛxÛx ÛxÛxÛxÛxÛxÛxÛxÛ
            echo.
            pause
            color 07
            del setup.bat >nul

            Comment


              #7
              Re: Help emulating .bat to install

              I would probably check if all the executables the file is calling are available. All the echo lines can be ignored, and you are left off with a few commands. In particular, after the "10%" message it tries to do this:

              Code:
              for %%i in (*.wav) do sx.exe -sndstream "%%i" -=movies\ >nul
              is sx.exe around? Maybe it is in a subdirectory or something, try to move it to the same place where the batch file is. Or google for sx.exe - it seems to be a sound conversion program processing all these wav files it is listing.

              Sorry this is so hard, but you are trying to do something pretty unusual Many games just work in wine, but this is something very custom: running a batch file. OMG You may get it working though, and learn a few things in the journey

              Comment


                #8
                Re: Help emulating .bat to install

                Well i found something in the internet but i can't download it. ill continue googling, seems like the sx.exe does what u said the problem is that the game is compressed in a way that u can't open it with ark.
                I found that it should be open with winzip the problem is that winzip won't install, it trow an weird error at the end, i close with trowing a log error but don't know where it is.
                The data are compressed with .7z
                In the folder there is no .exe file, at least from the one's that it call.
                sorry for my english.

                Comment


                  #9
                  Re: Help emulating .bat to install

                  There is 7zip decompression in Linux (just search in Synaptic). The issue is that we are not sure what exactly this sx.exe is doing to the sound files ...

                  Comment


                    #10
                    Re: Help emulating .bat to install

                    well i installed the 7z thing and now i can open the zips with ark, but the problem persist, winzip doesn't wants to install into wine
                    I am going to try with winrar now.... i had never experimented so much trouble installing a game 8)
                    also i can't find the sx thing into the zips.... this time when installing it took longer to trow me out.

                    Comment


                      #11
                      Re: Help emulating .bat to install

                      well i surrender, ill reinstall kubuntu but will keep some space for windows :-X

                      Comment


                        #12
                        Re: Help emulating .bat to install

                        fair enough, if you have a license for windows and a bunch of windows only games that make sense. In the long run, more and more games are being released for Linux, so you might make the switch gradually.

                        Anyways, nobody will take from you what you learned in the journey

                        Comment


                          #13
                          Re: Help emulating .bat to install

                          i never through that something annoying could be fun and interesting
                          Well thx for the help and some admin can close the post if wish

                          Comment

                          Working...
                          X