Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an InstallLocation for the installed product #20

Open
ader1990 opened this issue Feb 27, 2020 · 0 comments
Open

Add an InstallLocation for the installed product #20

ader1990 opened this issue Feb 27, 2020 · 0 comments

Comments

@ader1990
Copy link
Member

ader1990 commented Feb 27, 2020

When using the installer, Cloudbase-Init is installed on Windows and can be queried as a Win32_Product using WMI.

$cbsInit = Get-WmiObject Win32_Product -Filter {vendor="Cloudbase Solutions SRL"}

But the InstallLocation is not present (empty) on the object.
The InstallLocation is required to automatically check the installation status.

According to various sources, this can be achieved by adding a custom action (https://stackoverflow.com/questions/27500705/wix-and-arpinstalllocation)

<CustomAction Id="SetARPInstallLocation"
Property="ARPINSTALLLOCATION" Value="[INSTALLDIR]" />
<SetProperty Id="ARPINSTALLLOCATION" Value="[INSTALLDIR]" After="CostFinalize" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant