Reply
Frequent Visitor
Posts: 7
Registered: ‎11-23-2016
Accepted Solution

Uninstall of Personal Gateway is impartial

Hi

 

After uninstall of the PowerBI Personal Gateway the DIAHostService still runs and the powerbi gateway folder can be found in c:/program files, while all references to powerbi are gone in add/remove programs

 

Do you have any guides for manual clean uninstall of the gateway so I can reinstall it?

 

Regards

Christian

 

(Microsoft server 2008 R2 x64)


Accepted Solutions
Frequent Visitor
Posts: 7
Registered: ‎11-23-2016

Re: Uninstall of Personal Gateway is impartial

It seems to be an old problem where the microsoft data gateway service installer fails to uninstall properly during uninstall. The upgradecode is then retained in the system as the uninstall is impartial blocking reinstalls. It might be because the uninstaller doesn't stop the service DIAHostService prior to uninstall?

 

I guess this should be fixed by the dev team as it is annoying?

  

-----

 

The solution is described here:

 

https://powerbi.microsoft.com/en-us/blog/failure-installing-the-power-bi-personal-gateway/

 

In short. MSI installers adds an upgradecode to the registry which describes the installed product. All related installs will fail if they conflict with the key. Hence it has to be removed,

 

Enter regedit, search for "Power BI" and you will find the product key on the right pane  as a cryptic string such as A12345678B8813744NDD533865FBA1CD under the column name with a path to power bi gateway under the column data. Grab the string and search for the string itself and you should find it in the right pane under a folder in the hierarchy below "upgradecode". The folder with an equal strange looking string is the upgrade code which has to be deleted.

 

The software can now be reinstalled. Any suggestions to clean up the failing data management service prior to reinstall is much appreciated.

View solution in original post


All Replies
Frequent Visitor
Posts: 7
Registered: ‎11-23-2016

Re: Uninstall of Personal Gateway is impartial

It seems to be an old problem where the microsoft data gateway service installer fails to uninstall properly during uninstall. The upgradecode is then retained in the system as the uninstall is impartial blocking reinstalls. It might be because the uninstaller doesn't stop the service DIAHostService prior to uninstall?

 

I guess this should be fixed by the dev team as it is annoying?

  

-----

 

The solution is described here:

 

https://powerbi.microsoft.com/en-us/blog/failure-installing-the-power-bi-personal-gateway/

 

In short. MSI installers adds an upgradecode to the registry which describes the installed product. All related installs will fail if they conflict with the key. Hence it has to be removed,

 

Enter regedit, search for "Power BI" and you will find the product key on the right pane  as a cryptic string such as A12345678B8813744NDD533865FBA1CD under the column name with a path to power bi gateway under the column data. Grab the string and search for the string itself and you should find it in the right pane under a folder in the hierarchy below "upgradecode". The folder with an equal strange looking string is the upgrade code which has to be deleted.

 

The software can now be reinstalled. Any suggestions to clean up the failing data management service prior to reinstall is much appreciated.

Community Support Team
Posts: 4,720
Registered: ‎07-08-2016

Re: Uninstall of Personal Gateway is impartial

@cskoglund

 

It seems that you cannot install the personal gateway because the old one is not uninstalled completely. What is the error message when you try to reinstall?

Please try to remove following registry keys before reinstall. (Please make sure backup your registry keys before modification)

HKCU\SOFTWARE\Microsoft\Installer\UpgradeCodes\503186943D31ED74593B0967D7F11284

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataTransfer

 

Best Regards,

Herbert

Frequent Visitor
Posts: 7
Registered: ‎11-23-2016

Re: Uninstall of Personal Gateway is impartial

Hi

 

I finally got it installed in a working condition. The final problem was the data management service, getting it to uninstall correctly, clean up after it and then get the powerbi gateway in again.

 

I finally found out that it can be uninstalled by running uninstall in the msi found in C:\ProgramData\Package Cache\[product GUID]v2.1.6040.1 and then cleaning out the diahost service and the associated DIAHostService user w/user folder. I guess this is going to haunt me next time I upgrade as there probably are some files/settings left over.

 

Somehow the user was not recreated upon reinstall(?)

 

Kudos for good install logs!

Highlighted
Frequent Visitor
Posts: 11
Registered: ‎05-17-2017

Re: Uninstall of Personal Gateway is impartial

Buen dato pude resolver el problema, gracias Herbert.