Installer stopped working within IDE

  • Thread starter Thread starter Jeremy Holt
  • Start date Start date
J

Jeremy Holt

I have an Installer Setup project which builds fine. However, if I select
Install from within the solution, the installation fails with a message "The
installer was interruped before XXXXX could be installed. You need to
restart the installer to try again."

However, if I move the MSI file to any directory other than where it was
compiled to, the MSI installs fine.

Note that if the application was already installed, then selecting Install
from within the IDE will correctly uninstall the old app before trying (and
then failing) to install the new version.

Any thoughts?

Thanks in advance
Jeremy
 
One possibility is that the Installer service is unable to access the installation package because NT
AUTHORITY\SYSTEM does not have full control.

You can verify the ACLs by running cacls.exe.

eg.
C:\windows\system32>cacls c:
c:\ BUILTIN\Administrators:(OI)(CI)F
NT AUTHORITY\SYSTEM:(OI)(CI)F
CREATOR OWNER:(OI)(CI)(IO)F
BUILTIN\Users:(OI)(CI)R
BUILTIN\Users:(CI)(special access:)
FILE_APPEND_DATA
BUILTIN\Users:(CI)(IO)(special access:)
FILE_WRITE_DATA
Everyone:R

Make sure that the output for your build directory includes NT AUTHORITY\SYSTEM with full
control.

You may also want to try launching your MSI from the build directory and looking at the log file:
msiexec.exe /i setup1.msi /lv* install.log
 
Back
Top