msiexec will not install .msi files ?

Questions about Wine on Linux
Locked
WhiteHawk
Level 2
Level 2
Posts: 27
Joined: Tue Jan 24, 2012 11:19 pm

msiexec will not install .msi files ?

Post by WhiteHawk »

I'm now partially bald from wrangling this problem. <g>

I've googled the problem...brought in a new winetricks...
tried changing permissions...made sure msi2 was installed...

Any suggestions pointing me to an answer will be greatly
appreciated.

I have a bunch of .msi files I would like to get installed.

At a terminal I input the following:

msiexec /i file.msi

Mesage that pops up:

Incorect command line parameters
Windows Installer V 2.00.2600.2

I have a number of .msi files in /usr/local/share/windows

If I try as root msiexec /i file.msi

Error message given is:

The Windows Installer Service could not be accessed. This can occur if you are running Windows in safe mode, or if the Windows Installer is not correctly installed. Contact your support personnel for assistance....well I am my support personnel. <g>

Any suggestions ????

Sincerely,

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

Re: msiexec will not install .msi files ?

Post by dimesio »

WhiteHawk wrote:made sure msi2 was installed...
Why?
msiexec /i file.msi
That's correct, and it works fine on my system in current Wine with no native dlls.
If I try as root msiexec /i file.msi
http://wiki.winehq.org/FAQ#run_as_root

So, it appears you've thoroughly messed up your wineprefix with unnecessary overrides and by running as root. Delete it and start over, and if you're not using the latest development release of Wine, upgrade.
WhiteHawk
Level 2
Level 2
Posts: 27
Joined: Tue Jan 24, 2012 11:19 pm

Re: msiexec will not install .msi files ?

Post by WhiteHawk »

I'm running latest devel wine-1.5.27 via wine-git with
both wine64 & wine32.

When searching for answers a post on WINEHQ said
that Microsoft msiexec.exe doesn't work on WINE. Needed
to be sure running wine native msi (msi2).

If I delete wineprefix....how do you rebuild it ? And what
and where do you find wineprefix ?

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

Re: msiexec will not install .msi files ?

Post by dimesio »

Wine has its own msiexec.exe.

The default wineprefix is ~/.wine. After deleting it, just run winecfg. A new ~/.wine will automatically be created. You can also create other wineprefixes if you prefer. http://wiki.winehq.org/FAQ#wineprefix
WhiteHawk
Level 2
Level 2
Posts: 27
Joined: Tue Jan 24, 2012 11:19 pm

Re: msiexec will not install .msi files ?

Post by WhiteHawk »

Well....deleted ~/.wine

reinstalled complete wine using wineinstaller in tools
as user....to insure setup as user.

msiexec /i file.msi says:

The Windows Installer Service could not be accessed. This can occur if you are running Windows in safe mode, or if the Windows Installer is not correctly installed.

That's same result that I was getting previously.

It doesn't matter whether I try as user...as suggested, or drop
down and try install as root....get same response.

What do they mean "running Windows in safe mode" ? ....
and how would you change Windows to another mode ?

WhiteHawk
WhiteHawk
Level 2
Level 2
Posts: 27
Joined: Tue Jan 24, 2012 11:19 pm

Re: msiexec will not install .msi files ?

Post by WhiteHawk »

Just tried a msiexec /i file.msi as user

Error message:

fixme:storage:create_storagefile Storage share mode not implemented.

H-U-H ?????

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

Re: msiexec will not install .msi files ?

Post by dimesio »

You install Wine as sudo/root. You run Wine (including installing apps in Wine) as a normal user.
fixme:storage:create_storagefile Storage share mode not implemented.
That's not an error messiage; it's a rather common fixme (unimplemented function). If that's all there was, what makes you think the install failed?
WhiteHawk
Level 2
Level 2
Posts: 27
Joined: Tue Jan 24, 2012 11:19 pm

Re: msiexec will not install .msi files ?

Post by WhiteHawk »

as user:

~/.wine/drive_c/Program Files$ msiexec /i wine-mono-0.0.4.msi
fixme:storage:create_storagefile Storage share mode not implemented.
fixme:mscoree:GetRealProcAddress ("InitializeFusion", 0x32f9b0)
err:setupapi:create_dest_file failed to create L"C:\\windows\\Microsoft.NET\\Framework\\v1.1.4322\\aspnet_regiis.exe" (error=80)
err:setupapi:create_dest_file failed to create L"C:\\windows\\Microsoft.NET\\Framework\\v1.1.4322\\ngen.exe" (error=80)
err:setupapi:create_dest_file failed to create L"C:\\windows\\Microsoft.NET\\Framework\\v1.1.4322\\fusion.dll" (error=80)
err:setupapi:create_dest_file failed to create L"C:\\windows\\Microsoft.NET\\Framework\\v1.1.4322\\regsvcs.exe" (error=80)
err:setupapi:create_dest_file failed to create L"C:\\windows\\Microsoft.NET\\Framework\\v2.0.50727\\ngen.exe" (error=80)
err:setupapi:create_dest_file failed to create L"C:\\windows\\Microsoft.NET\\Framework\\v2.0.50727\\fusion.dll" (error=80)

Doesn't look like it installed to me

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

Re: msiexec will not install .msi files ?

Post by dimesio »

WhiteHawk wrote: ~/.wine/drive_c/Program Files$ msiexec /i wine-mono-0.0.4.msi
That's the wrong version of wine-mono for current Wine. You need 0.0.8.

Install it to a clean wineprefix (delete ~/.wine again). A failed install of mono or .NET messes up the wineprefix for subsequent attempts. And if you ever want to install real .NET to that wineprefix you have to uninstall wine-mono first (winetricks will do that for you).
WhiteHawk
Level 2
Level 2
Posts: 27
Joined: Tue Jan 24, 2012 11:19 pm

Re: msiexec will not install .msi files ?

Post by WhiteHawk »

I don't see anyway to uninstall with winetricks ? ...and
there doesn't appear to be any info available.

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

Re: msiexec will not install .msi files ?

Post by dimesio »

Current winetricks will automatically uninstall wine-mono before installing any version of .NET. Instructions on how to do it manually are here: http://wiki.winehq.org/Mono.
Locked