bootnext icon indicating copy to clipboard operation
bootnext copied to clipboard

Task installation failure

Open pgaskin opened this issue 5 years ago • 5 comments

The /install option fails under some circumstances. See https://github.com/just-install/registry/issues/207#issuecomment-653797393.

pgaskin avatar Jul 07 '20 12:07 pgaskin

I think it's not the /install failing, but installation of the msi. You said that it only adds a task for the executable and I had this task.

mimi89999 avatar Jul 07 '20 13:07 mimi89999

I tested the installer from various commits and it also didn't work. I tested the installer from the commit adding the msi installer and it also doesn't work.

mimi89999 avatar Jul 07 '20 13:07 mimi89999

@geek1011 Shouldn't Execute="commit" Impersonate="no" be changed to Execute="deferred" Impersonate="yes"? This works for me.

mimi89999 avatar Jul 07 '20 15:07 mimi89999

Also, why aren't you using the startup folder?

mimi89999 avatar Jul 07 '20 15:07 mimi89999

Thanks for looking into this further.

Also, why aren't you using the startup folder?

It needs to run as admin and show a GUI, but there's nothing like setuid on Windows.

Shouldn't Execute="commit" Impersonate="no" be changed to Execute="deferred" Impersonate="yes"? This works for me.

I'll have to take a closer look at the docs. deferred makes sense, but I'm not convinced about Impersonate.

https://wixtoolset.org/documentation/manual/v3/xsd/wix/customaction.html, Impersonate:

This attribute specifies whether the Windows Installer, which executes as LocalSystem, should impersonate the user context of the installing user when executing this custom action. Typically the value should be 'yes', except when the custom action needs elevated privileges to apply changes to the machine.

pgaskin avatar Jul 07 '20 15:07 pgaskin