This project is read-only.

installing multiple MSI

Topics: Archive - General
Jan 3, 2014 at 1:40 PM
Hello,

I'm a novice in scripting and recently discovered this project. I'm trying to move from Altiris Deployment Solution to SCCM 2012.

In Altiris I have a job to deploy a DM management app. Here are the steps which successful installs the application.

-msiexec.exe /lvx* C:\ADMIN\DMLogs.log /i "\SERVERNAME\install\Opentext\eDocs DM 5.3 Extensions (x64).msi" ADDLOCAL="ExplorerNamespace,Microsoft.Word.2010,Microsoft.Excel.2010,Microsoft.PPT.2010,Microsoft.Visio.2010,Microsoft.Project.2010,OutlookClient.2010,DMViewer,Interceptor,ODMA,CDU,Linking.Word.2010,Linking.Excel.2010,Linking.PPT,Linking.Other" DMSERVERNAME=SERVERNAME /qn

.msiexec.exe /p "\SERVERNAME\install\Opentext\eDocs DM 5.3 Extensions (x64) Patch 5.msp" /quiet /norestart
__
I changed the application-deploy.ps1 with these codes.

__# Perform installation tasks here
Execute-Process "msiexec.exe" -Arguments "/i $DirFiles\eDocs DM 5.3 Extensions (x64).msi `"ADDLOCAL="ExplorerNamespace,Microsoft.Word.2010,Microsoft.Excel.2010,Microsoft.PPT.2010,Microsoft.Visio.2010,Microsoft.Project.2010,OutlookClient.2010,DMViewer,Interceptor,ODMA,CDU,Linking.Word.2010,Linking.Excel.2010,Linking.PPT,Linking.Other" `DMSERVERNAME=BMZURNT260`" /qn"
Execute-MSI -Action Patch -Path "eDocs DM 5.3 Extensions (x64) Patch 5.msp" -Paramters "/quiet /norestart"
Execute-MSI -Action Install -Path "Hummingbird.msi"__
Unfortunately the msiexec.exe in the Execute-Process has issue with the ADDLOCAL Part. I guess there are mistakes with quotes.

Could you please help me?

Thanks,
Edy
Jan 3, 2014 at 5:13 PM
Hey Edy,

This should work:
Execute-MSI -Action Install -Path "eDocs DM 5.3 Extensions (x64).msi" -Parameters "ADDLOCAL='"ExplorerNamespace,Microsoft.Word.2010,Microsoft.Excel.2010,Microsoft.PPT.2010,Microsoft.Visio.2010,Microsoft.Project.2010,OutlookClient.2010,DMViewer,Interceptor,ODMA,CDU,Linking.Word.2010,Linking.Excel.2010,Linking.PPT,Linking.Other'" DMSERVERNAME=BMZURNT260 Reboot=ReallySuppress /QB!"
Execute-MSI -Action Patch -Path "eDocs DM 5.3 Extensions (x64) Patch 5.msp"
Cheers, Dan
Jan 3, 2014 at 7:28 PM
Hi Dan,

Unfortunately it doesn't work, but I think I'm very close.
  1. Execute-MSI -Action Install -Path "eDocs DM 5.3 Extensions (x64).msi" -Parameters "ADDLOCAL='"ExplorerNamespace,Microsoft.Word.2010,Microsoft.Excel.2010,Microsoft.PPT.2010,Microsoft.Visio.2010,Microsoft.Project.2010,OutlookClient.2010,DMViewer,Interceptor,ODMA,CDU,Linking.Word.2010,Linking.Excel.2010,Linking.PPT,Linking.Other"` DMSERVERNAME=BMZURNT260 Reboot=ReallySuppress /QB"
  1. Execute-MSI -Action Patch -Path "eDocs DM 5.3 Extensions (x64) Patch 5.msp"
  2. Execute-MSI -Action Install -Path "Hummingbird.msi"
The Log of the first MSI says this

"DEBUG: Error 2203: Database: C:\deploy\Files\ExplorerNamespace Microsoft.Word.2010 Microsoft.Excel.2010 Microsoft.PPT.2010 Microsoft.Visio.2010 Microsoft.Project.2010 OutlookClient.2010 DMViewer Interceptor ODMA CDU Linking.Word.2010 Linking.Excel.2010 Linking.PPT Linking.Other DMSERVERNAME=BMZURNT260 Reboot=ReallySuppress /QB. Cannot open database file. System error -2147287037"

I run the deploy-Application.ps1 directly from the machine not with SCCM. I believe Namespace... is recognized as a file by mistake.

Could you please help?

Thanks,
Edy
Jan 3, 2014 at 7:44 PM
Edited Jan 3, 2014 at 7:44 PM
Hi,

Ermm, the first line I gave you is not the same as what you have! :)
Execute-MSI -Action Install -Path "eDocs DM 5.3 Extensions (x64).msi" -Parameters "ADDLOCAL='"ExplorerNamespace,Microsoft.Word.2010,Microsoft.Excel.2010,Microsoft.PPT.2010,Microsoft.Visio.2010,Microsoft.Project.2010,OutlookClient.2010,DMViewer,Interceptor,ODMA,CDU,Linking.Word.2010,Linking.Excel.2010,Linking.PPT,Linking.Other"` DMSERVERNAME=BMZURNT260 Reboot=ReallySuppress /QB"
This is incorrect. To open quotes inside quotes, prefix the quote (") with an apostraphe ('). Like this example (spaces added for clarity):

-Parameters " ADDLOCAL = '" ExplorerNamespace '" "

So to fix this, it's as follows:
Execute-MSI -Action Install -Path "eDocs DM 5.3 Extensions (x64).msi" -Parameters "ADDLOCAL='"ExplorerNamespace,Microsoft.Word.2010,Microsoft.Excel.2010,Microsoft.PPT.2010,Microsoft.Visio.2010,Microsoft.Project.2010,OutlookClient.2010,DMViewer,Interceptor,ODMA,CDU,Linking.Word.2010,Linking.Excel.2010,Linking.PPT,Linking.Other'" DMSERVERNAME=BMZURNT260 Reboot=ReallySuppress /QB"
Dan
Jan 3, 2014 at 8:11 PM
Sorry to be a pain Dan
Execute-MSI -Action Install -Path "eDocs DM 5.3 Extensions (x64).msi" -Parameters "ADDLOCAL='"ExplorerNamespace,Microsoft.Word.2010,Microsoft.Excel.2010,Microsoft.PPT.2010,Microsoft.Visio.2010,Microsoft.Project.2010,OutlookClient.2010,DMViewer,Interceptor,ODMA,CDU,Linking.Word.2010,Linking.Excel.2010,Linking.PPT,Linking.Other'" DMSERVERNAME=BMZURNT260 Reboot=ReallySuppress /QB"

The script output

The string starting:
At C:\Deploy\Deploy-Application.ps1:94 char:332
  • Execute-MSI -Action Install -Path "eDocs DM 5.3 Extensions (x64).msi" -Parameters "ADDLOCAL='"ExplorerNamespace,M
    icrosoft.Word.2010,Microsoft.Excel.2010,Microsoft.PPT.2010,Microsoft.Visio.2010,Microsoft.Project.2010,OutlookClient.20
    10,DMViewer,Interceptor,ODMA,CDU,Linking.Word.2010,Linking.Excel.2010,Linking.PPT,Linking.Other <<<< '" DMSERVERNAME=BM
    ZURNT260 Reboot=ReallySuppress /QB"
    is missing the terminator: '.
    At C:\Deploy\Deploy-Application.ps1:125 char:50
  • *=============================================== <<<<

    • CategoryInfo : ParserError: (" DMSERVERNAME=...===============:String) [], ParseException

+ FullyQualifiedErrorId : TerminatorExpectedAtEndOfString

Char 332 is the apostraphe after "Linking.Other". I hope this time I copied the line correct.

Thanks,
Edy
Jan 3, 2014 at 8:15 PM
To clarify, this should all be on one line. That's the only reason I can see for why there would be a problem.
Jan 4, 2014 at 11:58 AM
Hi Dan,

I just want to let you know I resolved it. I removed the quotes and the apostrophe after the ADDLOCAL. The script with the MSI ran fine. I also verified the MSI really ran with the properties.

Thanks a lot for all your help yesterday.

Cheers,
Edy