Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Install: Setup Wizard ended Prematurely #11560

Closed
cyberteki-zz opened this issue Mar 13, 2019 · 12 comments
Closed

Can't Install: Setup Wizard ended Prematurely #11560

cyberteki-zz opened this issue Mar 13, 2019 · 12 comments
Labels

Comments

@cyberteki-zz
Copy link

I can't even install it. I keep receiving an error message stating "Setup Wizard ended Prematurely"

@busterb
Copy link
Contributor

busterb commented Mar 13, 2019

Can you paste more exactly what you see?

@infosecwatchman
Copy link

I'm having the same problem, here is a screenshot.
metasploit-error

@peejoeee
Copy link

Having exact same issue

@bcoles
Copy link
Contributor

bcoles commented Mar 20, 2019

Adding bug label due to multiple user reports.

@bcoles bcoles added the bug label Mar 20, 2019
@ob1lan
Copy link

ob1lan commented Mar 21, 2019

Having the exact same issue, with version 5.0.13, Windows 10 Pro version 1607...

How to solve it ?

Thanks in advance !

@busterb
Copy link
Contributor

busterb commented Mar 22, 2019

Hmm, taking a look. You probably have to execute the package with msiexec to see the real logs.

@busterb
Copy link
Contributor

busterb commented Mar 22, 2019

Running this:
msiexec.exe /I metasploit-framework-5.0.12+20190319193251-1rapid7-1-x64.msi /L*v msf.log

Shows this error if you install as a regular user:

SFXCA: Extracting custom action to temporary directory: C:\Users\bcook\AppData\Local\Temp\MSI5193.tmp-\
SFXCA: Binding to CLR version v4.0.30319
Calling custom action CustomActionFastMsi!CustomActionFastMsi.CustomActions.FastUnzip
Starting FastUnzip
FASTZIPDIR = C:\
FASTZIPAPPNAME = metasploit-framework
Starting extraction
Finished extraction (time taken: 66064 ms)
Exception thrown by custom action:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.UnauthorizedAccessException: Access to the path 'C:\metasploit-framework.zip' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalDelete(String path, Boolean checkHost)
   at System.IO.File.Delete(String path)
   at CustomActionFastMsi.CustomActions.FastUnzip(Session session)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object parameters, Object arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture)
   at Microsoft.Deployment.WindowsInstaller.CustomActionProxy.InvokeCustomAction(Int32 sessionHandle, String entryPoint, IntPtr remotingDelegatePtr)
CustomAction FastUnzip returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 6:33:44: InstallFinalize. Return value 3.

@busterb
Copy link
Contributor

busterb commented Mar 22, 2019

Looks to be caused by this change: rapid7/metasploit-omnibus@4f6a439

combined with running the installer normally with regular user permissions.

Workaround

To solve this problem for now, install the MSI as an administrator: https://www.google.com/search?q=install+msi+as+administrator

I suspect we may have hit the 64k file limit because the installer now includes a full copy of msys64. It might be useful to build C code, but isn't actually needed to run framework. We should probably look at removing that from the distribution. I just deleted it from my local install and msfconsole/msfdb/msfvenom all worked fine, and that seems to account for around a gigabyte of files in the windows installer. I'm going to open a couple of issues on metasploit-omnibus to follow up.

@busterb
Copy link
Contributor

busterb commented Mar 22, 2019

Please redirect further reports to this issue, since this is a windows installer problem, not something we'd fix in metasploit-framework itself: rapid7/metasploit-omnibus#96

@busterb busterb closed this as completed Mar 22, 2019
@cyberghostww201
Copy link

msiexec /a metasploitframework-latest.msi <<<<< run this command in cmd terminal in the directory of the downloaded file. I had the same issue, this is the only way i found to execute it as administrator. try this and i hope this helps.

@villa1
Copy link

villa1 commented Jun 11, 2019

you can add this reg value for running the metasploit.msi

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Msi.Package\Shell\runas]
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\Msi.Package\shell\runas\Command]
@=hex(2):22,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
  00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,\
  73,00,69,00,65,00,78,00,65,00,63,00,2e,00,65,00,78,00,65,00,22,00,20,00,2f,\
  00,69,00,20,00,22,00,25,00,31,00,22,00,20,00,25,00,2a,00,00,00

@sriramoffcl
Copy link

Registry file import was successful on my case. Try to import the Registry file. Find the Registry here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants