Visual C++ installation Help?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Wineexperiments187
Level 2
Level 2
Posts: 37
Joined: Wed Jun 08, 2011 12:05 pm

Visual C++ installation Help?

Post by Wineexperiments187 »

Hi I installed a program through Wine without much of a problem
But then It flashes a Error message Saying "Microsoft Visual C++ Runtime Error"

I assume I need to install the Visual C++ libraries through WineTricks. to at least to try to fix the Problem

I got Winetricks installed and Ready...I think.
Now I just need a walkthrough on how to install the Visual C++ Libraries through Winetricks/WINE

Anyone Want to help me out here?
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Visual C++ installation Help?

Post by jjmckenzie »

On 6/24/11 9:21 PM, Wineexperiments187 wrote:
Hi I installed a program through Wine without much of a problem
But then It flashes a Error message Saying "Microsoft Visual C++ Runtime Error"

I assume I need to install the Visual C++ libraries through WineTricks. to at least to try to fix the Problem

I got Winetricks installed and Ready...I think.
Now I just need a walkthrough on how to install the Visual C++ Libraries through Winetricks/WINE

Anyone Want to help me out here?
You might want to visit the Winetricks Wine Wiki page at
http://wiki.winehq.org/winetricks.

Also, it might be nice to know which version of Visual C++ the program
needs.
totry
Level 3
Level 3
Posts: 64
Joined: Wed Jun 22, 2011 12:52 am

Winetricks

Post by totry »

Hello,first open Winetricks
1-Select the default wineprefix.
2-Install a Windows DLL or component.
3- chose of any option in VCRUN2005 or other.
clic on that you want to choose and clic OK and the installation begin.
Wineexperiments187
Level 2
Level 2
Posts: 37
Joined: Wed Jun 08, 2011 12:05 pm

Post by Wineexperiments187 »

I have done what you have told me but I am not sure if they were installed correctly or if they Did anything...

How can I tell if they were installed at all?

Also, In the VCRUN2005 it won't let me download it for some reason...
It says:
sha1sum mismatch! Rename /home/boyz/.cache/winetricks/vcrun2005/vcredist_x86.exe and try again.

WHAT does this mean??
this has been happening when I try to download and install some games through WINEtricks too.

Any ideas? :(
John Drescher

Visual C++ installation Help?

Post by John Drescher »

On Mon, Jun 27, 2011 at 10:57 PM, Wineexperiments187
<[email protected]> wrote:
I have done what you have told me but I am not sure if they were installed correctly or if they Did anything...

How can I tell if they were installed at all?

Also, In the VCRUN2005 it won't let me download it for some reason...
It says:
sha1sum mismatch! Rename /home/boyz/.cache/winetricks/vcrun2005/vcredist_x86.exe and try again.

WHAT does this mean??
this has been happening when I try to download and install some games through WINEtricks too.

Any ideas? :(
The file it downloaded does not match the checksum that is expected
for that file meaning either the download is corrupt (which the
message for renaming the file will fix), your winetricks is old, or
winetricks needs to be updated becuause microsoft changed their
download.

I wouuld first try renaming the file your output says to rename and
then try winetricks again.

John
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Visual C++ installation Help?

Post by dimesio »

John Drescher wrote: winetricks needs to be updated becuause microsoft changed their
download.
http://code.google.com/p/winetricks/iss ... ail?id=101
Wineexperiments187
Level 2
Level 2
Posts: 37
Joined: Wed Jun 08, 2011 12:05 pm

Post by Wineexperiments187 »

Most likely its WINEtricks that needs to be updated with the new links.

1. I Got my WineTricks Recently so im sure its not that old...
But if so how do I update it?

2. Can't download it at all so... The File can't be corrupt.

3. How do I rename the file as the output says it needs?
4. OR is it better to just download and install a 2010 version of VCRUN?
Wineexperiments187
Level 2
Level 2
Posts: 37
Joined: Wed Jun 08, 2011 12:05 pm

Post by Wineexperiments187 »

Also Dimesio

The link that you stated has no functional link for me to get the VCRUNS of 2005 and 2008

I assume thats the problems with Winetricks when not updated.
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Visual C++ installation Help?

Post by jjmckenzie »

On Tue, Jun 28, 2011 at 7:11 AM, Wineexperiments187
<[email protected]> wrote:
Also Dimesio

The link that you stated has no functional link for me to get the VCRUNS of 2005 and 2008

I assume thats the problems with Winetricks when not updated.
No, Microsoft is known to move files around their site. There is a
'sneaky' method of getting the files, and that is to retrieve them
from Microsoft direct and then save them in the winetricks cache
directory. You will have to do this from within Wine and hope that
the 'Genuine Check' program passes. Dan Kegel and/or Austin English
should be working on this, hopefully.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Visual C++ installation Help?

Post by dimesio »

Wineexperiments187 wrote:The link that you stated has no functional link for me to get the VCRUNS of 2005 and 2008
It wasn't meant to. I was merely pointing out that the download problem had already been reported.
jjmckenzie wrote: You will have to do this from within Wine and hope that
the 'Genuine Check' program passes.
There is no WGA check for the Visual C++ 2005 or 2008 runtimes; they can be downloaded directly in a Linux browser with no problem.
http://www.microsoft.com/download/en/de ... en&id=3387
http://www.microsoft.com/download/en/de ... g=en&id=29
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Post by DanKegel »

winetricks-20110628 fixes this, so downloading a fresh copy from
http://winetricks.org/winetricks
should do the trick.
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Visual C++ installation Help?

Post by jjmckenzie »

On Tue, Jun 28, 2011 at 11:25 AM, dimesio <[email protected]> wrote:
jjmckenzie wrote:
 You will  have to do this from within Wine and hope that
the 'Genuine Check' program passes.
There is no WGA check for the Visual C++ 2005 or 2008 runtimes; they can be
downloaded directly in a Linux browser with no problem.
I was pinged once with the WGA check so this was more a warning that
this may happen than it will happen. Wine passed at the time without
problems.
Wineexperiments187
Level 2
Level 2
Posts: 37
Joined: Wed Jun 08, 2011 12:05 pm

Post by Wineexperiments187 »

How?

The link that you gave me... I can't find out where to download the
Wine version-20110628

Is it the same way on how I downloaded Wine in the first place?
John Drescher

Visual C++ installation Help?

Post by John Drescher »

On Tue, Jun 28, 2011 at 4:06 PM, Wineexperiments187
<[email protected]> wrote:
How?

The link that you gave me... I can't find out where to download the
Wine version-20110628

Is it the same way on how I downloaded Wine in the first place?
No. This is not downloading wine. It is downloading the winetricks
script. Instructions are here:

http://winetricks.org/winetricks

John
John Drescher

Visual C++ installation Help?

Post by John Drescher »

On Tue, Jun 28, 2011 at 4:16 PM, John Drescher <[email protected]> wrote:
On Tue, Jun 28, 2011 at 4:06 PM, Wineexperiments187
<[email protected]> wrote:
How?

The link that you gave me... I can't find out where to download the
Wine version-20110628

Is it the same way on how I downloaded Wine in the first place?
No. This is not downloading wine. It is downloading the winetricks
script. Instructions are here:

http://winetricks.org/winetricks
Sorry that was the script. Here are the instructions:

http://wiki.winehq.org/winetricks

John
Wineexperiments187
Level 2
Level 2
Posts: 37
Joined: Wed Jun 08, 2011 12:05 pm

Post by Wineexperiments187 »

so basically its just reinstalling WINE the same way I got my first version of wine...

I think I will start another thread for people to help me on trouble shooting my real problem...
John Drescher

Visual C++ installation Help?

Post by John Drescher »

On Thu, Jun 30, 2011 at 12:01 AM, Wineexperiments187
<[email protected]> wrote:
so basically its just reinstalling WINE the same way I got my first version of wine...
No the winetricks script has nothing at all to do with installing
wine. It does not even touch the wine install. Read the instructions
for winetricks.

http://wiki.winehq.org/winetricks
Jkirk3279
Newbie
Newbie
Posts: 4
Joined: Fri Sep 23, 2011 9:07 pm

Visual C++ Install Problem

Post by Jkirk3279 »

Hello !

I installed Wine on OSX.

Then wget because it doesn't come with OSX.

And winetricks, although it didn't install correctly/

"Jkirk279$ sh winetricks
------------------------------------------------------
wine cmd.exe /c echo '%ProgramFiles%' returned unexpanded string '%ProgramFiles%' ... can be caused a corrupt wineprefix, an old wine, or by not owning /Users/Jkirk279/.wine"


I then used the instructions on http://appdb.winehq.org/objectManager.p ... n&iId=9569

The process went okay and downloaded all ten .cab segments.

I downloaded the .bat file and the Extract.exe file.

And I entered "wine start.exe PSDK-FULL.bat "C:\psdktemp"

But I got this message:

"Jkirk279$ wine start.exe PSDK-FULL.bat "C:\psdktemp"
fixme:exec:SHELL_execute flags ignored: 0x00000100
Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: Environment variable not found"

Can somebody translate ? The .bat file should have triggered Extract.exe, combined the ten segments into one and run the installer, correct ?

Thanks...
User avatar
SpawnHappyJake
Level 5
Level 5
Posts: 272
Joined: Sun Feb 06, 2011 5:57 am

Post by SpawnHappyJake »

Batch files are not exe's, so start.exe probably isn't the appropriate thing to execute them with. They are DOS/command prompt scripts, analogous to bash scripts. They are text files with a list of command prompt commands.

Fortunately, WINE has its own command prompt. Try using that.

Go to terminal, and type in "wine cmd.exe". Now you should be in the WINE cmd shell. Try and get it to run the batch file.

Cheers,
Jake
Jkirk3279
Newbie
Newbie
Posts: 4
Joined: Fri Sep 23, 2011 9:07 pm

Visual C++ Install Problem

Post by Jkirk3279 »

I tried the wine cmd.exe command and it runs.

But trying to run the .bat file got this:


Z:\Users\Jkirk279\desktop>run PSDK-FULL.bat
wine: cannot find L"C:\\windows\\system32\\run.exe"
File not found

Hmm. I ran winecfg. I got "failed to connect to the mount manager" in the X11 Drives dialog window.


Does this imply Wine's not emulating the drive tree correctly ?

If the installer can't find the run.exe command then I doubt any DOS commands will run.

I hope there's a suggestion to test that.

Maybe there's a way to reset wine ?
User avatar
SpawnHappyJake
Level 5
Level 5
Posts: 272
Joined: Sun Feb 06, 2011 5:57 am

Post by SpawnHappyJake »

No, this is not a WINE drive mapping bug. There really is no C:\windows\system32\run.exe. Neither in WINE or in Windows. I just checked for myself.

If you Google "run.exe" people say that it is malware.

Hope it works out,
Jake
Jkirk3279
Newbie
Newbie
Posts: 4
Joined: Fri Sep 23, 2011 9:07 pm

Visual C++ Install Problem

Post by Jkirk3279 »

Uhm, I really doubt this is malware. I just installed Wine.

And if the error is coming FROM Wine ... I suspect it's that the DOS command line interface in Wine is looking for C:\windows\system32\run.exe to launch the program but it's not there.

Other DOS commands like DIR work.

But...

"Z:\Users\Jkirk279\documents\helix>HELIX.EXE
fixme:module:__wine_load_dos_exe DOS executables not supported on this platform
winevdm: can't exec 'Z:\Users\Jkirk279\documents\helix\HELIX.EXE': invalid program file"

Okay. Wine has a cmd shell, but while it looks just like DOS it can't launch executables IN DOS.

Can somebody suggest the proper way to launch my PSDK-FULL.bat "C:\psdktemp" ?

I need to combine the .cab segments. If the instructions are wrong or outdated, how can I do that in Terminal ?
Jkirk3279
Newbie
Newbie
Posts: 4
Joined: Fri Sep 23, 2011 9:07 pm

Install Help

Post by Jkirk3279 »

Well, I couldn't find a way to launch the .bat file, but I opened it and found a simple command to activate the Expand app.

I copied it out, ran it and the .cab segments were assembled and installed.

But nothing came of it, the same issue I had with using Crossover:

I can't find an executable to run in the install directory. which has me puzzled.

Has anybody used Visual C++ ?
John Drescher

Visual C++ installation Help?

Post by John Drescher »

Well, I couldn't find a way to launch the .bat file, but I opened it and found a simple command to activate the Expand app.

I copied it out, ran it and the .cab segments were assembled and installed.

But nothing came of it, the same issue I had with using Crossover:

I can't find an executable to run in the install directory.  which has me puzzled.

Has anybody used Visual C++ ?
I have had some success building C++ applications from the VS 2005
version that is/was in winetricks. However I never tried to install
the platform sdk.

John
Locked