uninstall and alternate install location #2475
-
I have a package that installs default to 'c:\program files\blabla' and i can override the locations with a installParam. Which works fine. With useRememberedArgumentsForUpgrades upgrade work also. But now the problem; when i do a uninstall i need too delete some files in the uninstall.ps1 script. But i don't know where the install location is; the installParam used when installing the package is not available to the uninstall script (at least i can't find it). So how do i get the (alternat) install location in the uninstall script ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Assuming that the installer creates a registry key with uninstall information, I would suggest using |
Beta Was this translation helpful? Give feedback.
Assuming that the installer creates a registry key with uninstall information, I would suggest using
Get-UninstallRegistryKey
to find the install location. Uninstall keys may have aInstallLocation
specified, or you may be able to get the directory from theUninstallString
in some cases.