StrawberryPerl / Perl-Dist-Strawberry

Tooling to build and package releases for Perl on Windows.
https://strawberryperl.com
Other
289 stars 49 forks source link

Where does Strawberry Perl's MSI register its installation path in the Windows registry? #224

Open alexchandel opened 4 weeks ago

alexchandel commented 4 weeks ago

The MSI installer seems to refuse to upgrade older Perl installations, so it must know the installed version. I need to detect the installed location (and version) from the Windows registry (as it may not be installed in C:\Strawberry). Where can that be done?

alexchandel commented 4 weeks ago

I find Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{6E17823E-7849-1014-9A51-F359819898C5} value name InstallLocation has the install location for 5.40, but not sure if that GUID is guaranteed preserved across versions.

mohawk2 commented 4 weeks ago

https://github.com/StrawberryPerl/Perl-Dist-Strawberry/blob/master/lib/Perl/Dist/Strawberry/Step/OutputMSI.pm looks like a good place to start.

shawnlaffan commented 4 weeks ago

Also the files under https://github.com/StrawberryPerl/Perl-Dist-Strawberry/tree/master/share/msi