1

I'm currently trying to install an .msi silently, but can't get past the custom setup part.

I've tried the code below, but it keeps popping up with the Windows Installer help guide.

$AppSetup = msiexec --% /i '\deploy\PostImageInstall\Logger Pro 3.msi' INSTALLDATASHARE="INSTALL" /qn /L*v %TEMP%\LoggerPro3_msilog.txt

The code is supposed to silently install the .msi with the custom setup option.

Jrpsd
  • 53
  • 1
  • 5
  • 1. Don't use `Start-Process`; it's not doing anything here. 2. Use `--%` after calling `msiexec` so the rest of your command is interpreted by the parent instead of powershell. This should resolve your issues. – Maximilian Burszley Jul 11 '19 at 14:27
  • @TheIncorrigible1 1. thank you I wasn't sure if that was needed or not 2. even with the --% it still pops up with the windows installer guide. – Jrpsd Jul 11 '19 at 14:37
  • Can you update your question with what you're trying now? If that's the case, I suspect it's an issue with the msi more than anything else. – Maximilian Burszley Jul 11 '19 at 14:38
  • @TheIncorrigible1 I'm starting to wonder if it's even possible to do it with this application. – Jrpsd Jul 11 '19 at 14:44
  • 1
    Why do you have `-FilePath` in there? That was an argument to `Start-Process` – Maximilian Burszley Jul 11 '19 at 14:45
  • @TheIncorrigible1 my bad this is honestly my second week using powershell lol. I'll remove all arguments from the script – Jrpsd Jul 11 '19 at 14:55
  • [Just a link, heading out the door...](https://stackoverflow.com/a/53436779/129130). – Stein Åsmul Jul 11 '19 at 15:09
  • `%TEMP%` is not a valid variable in that context, and you may want to try changing `INSTALLDATASHARE="INSTALL"` to `"INSTALLDATASHARE=INSTALL"`. – Ansgar Wiechers Jul 11 '19 at 15:41

0 Answers0