-
Notifications
You must be signed in to change notification settings - Fork 176
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
Set ARPINSTALLLOCATION custom action in wrong place #267
Comments
Thank you. Fixed in 0722b11. Will be available in the next release |
----- * All samples updated to comply with the latest ID allocation algorithm * Implemented proper Bootstrapper Variables * Renamed `Bundle.StringVariablesDefinition` -> `Bundle.Variables` * Issue #295: In x64 projects, only add Win64=yes to components that haven't already explicitly specified this attribute. Fixes #295 * Issue #294: Bootstrapper.PreserveDbgFiles not work. * Issue #290: Error LGHT0094 : Unresolved reference to symbol 'File:Registrator.exe' * NativeBootstrapper source code has been placed under source control now. * Issue #282: Built-in installer placeholders are displayed as format strings with [N] brackets * Issue #280: A Shortcut's generated ID is different from what it is explicitly set to * Issue #276: HashedTargetPathIdAlgorithm emmits duplicated IDs for Cyrilic file names * Issue #265: Exception using RegFile class with REGEDIT4 version reg file * Issue #267: Set ARPINSTALLLOCATION custom action in wrong place * Issue #264: Project.SetVersionFrom() and Project.Version * Issue #268: Files starting with a number cause error - Every identifier must begin with either a letter or an underscore. * Condition class: add logical operators &, |, NOT * Condition class: added Net47_Installed condition * `Project.HashedTargetPathIdAlgorithm` is enabled now by default. Triggered by #204.
Hello, I am using the code from above:
which generates the 2 xml blocks in the .wxs file:
These are the only such blocks I have (i.e. there are no other custom actions). However, this does NOT lead to the setting of the InstallLocation key in the registry and I'm not sure why. One thing of note is that this msi is part of a bootstrapper bundle that contains another installer that is a prerequisite for the msi's app. The rest of the installer is fairly vanilla Program.cs (project was generated by WixSharp Project Templates). I am using the default/minimal UI and it makes no difference whether I specify a custom directory or not. For what it's worth, my Directory tags look like this:
Any idea what I could be missing? Also, a side question - is there documentation explaining that line of code anywhere? I have the same goal of setting the InstallLocation registry key, but were it not for this related bug post, I would not have known to do that. Thank you UPDATE: nevermind, it is all working as expected. Turns out I was looking at the uninstall reg tree for the bootstrapper not the bundled msi. However, now that I see that there are 2 reg trees, I have found that the UninstallString for the msi does not actually uninstall the application (it doesn't delete the files or remove the registry keys and the entry under add/remove programs is still there). The only way to uninstall the msi is to run the bundle's UninstallString (which it appears is what Uninstall from add/remove programs also does). The reason we're trying to uninstall via running the UninstallString directly is that we have an application manager and it detects installed apps via the MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall children and provides uninstall functionality by running the UninstallString for that entry when found. With the bootstrapper/bundle setup, there's one here for the msi and also one under MACHINE\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall for the bootstrapper. Currently, the app manager doesn't look under the WOW6432 sub-tree for uninstallers (and in this case, I don't know that we'd want it to anyway, since then there'd be 2 entries in our app list). So not sure what the correct solution is here or if maybe I still have something setup incorrectly which is causing this odd setup - maybe we need to somehow overwrite the UninstallString for the msi with the bootstrapper's UninstallString? Although, that seems wrong since it was originally an msi install and now the uninstall would be the bootstrapper's uninstall (which is a cached version of the bootstrapper, itself). |
Hi,
I use this notation:
to set up ARPINSTALLLOCATION property.
It should create action to set this property and schedule it after CostFinalize action (link).
But Wix# adds this action right after my latest custom action in InstallExecuteSequence.
The text was updated successfully, but these errors were encountered: