Passing MSIINSTALLPERUSER=1 to MsiPackage installs the msi as Absent #6394
Unanswered
IvayloGugalov
asked this question in
Questions
Replies: 2 comments 8 replies
-
Does the MsiPackage meet all of the requirements here: https://docs.microsoft.com/en-us/windows/win32/msi/msiinstallperuser? I don't understand the relationship between |
Beta Was this translation helpful? Give feedback.
1 reply
-
Burn does not support per-machine/per-user switching in MSIs today. Clear |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have created a custom WiX Burn bootstrapper UI, which installs a MsiPackage from the Bundle element. The MsiPackage needs to reboot the system when installed, but I want it to be installed silently so it's ready for use immediately .
Passing
<MsiProperty Name="MSIINSTALLPERUSER" Value="1"/>
works fine and achieves the silent installation for the MsiPackage, but now, for some reason, my BootstrapperApplication asks for admin permissions before installation.When trying to uninstall, I check the DetectBeginEventArgs -
Installed
flag and runbootstrapper.Engine.Plan(LaunchAction.Uninstall);
, but this uninstalls only my BootstrapperApplication and leaves the MsiPackage installed.Checking the DetectPackageCompleteEventArgs:
args.Absent == PackageState.Absent
is true. So when installed withMSIINSTALLPERUSER=1
, the MsiPackage will be installed with state Absent instead of Present.Is there a way to achieve the no restart installation and keep the PackageState of the msi file to Present?
Beta Was this translation helpful? Give feedback.
All reactions