Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Install / Uninstall via PowerShell

Hi Power BI Community,

 

I've been tasked to deploy Power BI to an undefined amount of users. I have an install script which works well

 

Start-Process -FilePath msiexec.exe -ArgumentList /i, C:\Documents\PBI\Install\PBIDesktop_x64.msi, /passive, ACCEPT_EULA=1 -Wait

 

 

I've looked up forum after forum, and I'm struggling to automate de-installation. Using .msi's switch /X, I need the Product Code for Power BI to uninstall. The product code below was from here

 

Start-Process -FilePath msiexec.exe -ArgumentList /X{6BD53F08-57BA-4CF1-94B0-F08151E41383}, /qn, /norestart -Wait

 

Are there any glaring/obvious omissions/mistakes on my part?

 

Thanks,

Ronan

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Using the .msi file works . 

Install

Start-Process -FilePath msiexec.exe -ArgumentList /i, $ProjectHome\PBIDesktop_x64.msi, /passive, ACCEPT_EULA=1 -Wait

Uninstall

Start-Process -FilePath msiexec.exe -ArgumentList /uninstall, $ProjectHome\PBIDesktop_x64.msi, /passive, /norestart -Wait

 

Hope that helps someone else too

 

Ronan

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Using the .msi file works . 

Install

Start-Process -FilePath msiexec.exe -ArgumentList /i, $ProjectHome\PBIDesktop_x64.msi, /passive, ACCEPT_EULA=1 -Wait

Uninstall

Start-Process -FilePath msiexec.exe -ArgumentList /uninstall, $ProjectHome\PBIDesktop_x64.msi, /passive, /norestart -Wait

 

Hope that helps someone else too

 

Ronan

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.