Collins
Posts: 138
Joined: Wed Oct 12, 2016 2:57 pm

•Request MSI elevation, aka "Run as administrator" (without an EXE bootstrapper)

Fri Jun 29, 2018 9:23 pm

Hello,

I was testing this new feature as it's huge for our organization and am seeing strange behavior. It keeps looping on the Windows Installer "Preparing to Install" Dialog, as you can see in the URL below. I'm testing this on W10 and logging shows the last action as "Doing action: AI_RestartElevated"

https://www.screencast.com/t/fGqrmnm6Ff

It causes the CPU to max out to 99\100%. I emailed the proj file.

Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: •Request MSI elevation, aka "Run as administrator" (without an EXE bootstrapper)

Thu Jul 05, 2018 10:38 am

Hi,

I'm not sure why you encounter this problem. We tested this many times, but we couldn't reproduce the behavior. Does the problem reproduce when you just double-click your MSI package? Do you send any command line to it or take any action that could influence this? Can you reproduce the problem in a new project?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Collins
Posts: 138
Joined: Wed Oct 12, 2016 2:57 pm

Re: •Request MSI elevation, aka "Run as administrator" (without an EXE bootstrapper)

Sun Jul 08, 2018 3:56 pm

Eusebiu,

It occurs if I launch it by using msiexec /I or by double clicking it. I tried it with other projects and I get the same result. Here is my test scenario:

I use a test account from "alpha" domain and add it to "Users" group with Remote Desktop Access permissions to computer in "beta" domain.

I remote into the computer with the test account and launch the msi with msiexec or by double clicking it. I tried using an account on the same domain as the computer "beta" and adding them only to the "Users" group and still get the same result.

Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: •Request MSI elevation, aka "Run as administrator" (without an EXE bootstrapper)

Thu Jul 12, 2018 3:26 pm

Hi,

Thank you for the details. We tested what you described, but we were still not able to reproduce the problem, thus some more details may help us.

Can you reproduce the problem in a new project or just in the projects that you already owe? Are there two different domains in your network? Do you try to remotely deploy your package from a client's machine or from the server? What Operating System have your testing machines? Do the users have the same name and credentials in the "alpha" and "beta" domains? Is the problem reproducible if you do not use the Remote Desktop Access to install your package?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Collins
Posts: 138
Joined: Wed Oct 12, 2016 2:57 pm

Re: •Request MSI elevation, aka "Run as administrator" (without an EXE bootstrapper)

Sat Jul 14, 2018 7:04 pm

Hi Eusebiu,

Yes, I can reproduce it with a brand new project as well. We have multiple domains and the accounts have access across domains, but the MSI is run directly on the PC and not pushed to any machines. I can recreate it by remotely or physically logging into the PC's and by using accounts that are, and are not on the same domain as the PC's. The accounts used don't have the same name. I have used one virtual and one physical Windows 10 (64)PC.

I recently tried on Windows 7 32\64 PC's with a new project and was able to recreate the same issue.

Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: •Request MSI elevation, aka "Run as administrator" (without an EXE bootstrapper)

Wed Aug 22, 2018 3:40 pm

Hi,

We could not reproduce this problem on our machine, but since this works well starting with Advanced Installer 15.2, we can consider it solved.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

apnKn
Posts: 4
Joined: Mon Jan 28, 2019 9:07 am

Re: •Request MSI elevation, aka "Run as administrator" (without an EXE bootstrapper)

Mon Jan 28, 2019 9:21 am

I stumbled over this issue also (AI 15.2).
The pc's domain is different to the installing user's domain. The user does not have any admin privileges.
Install Parameters:
  • Installation type: Per-Machine only
  • Run as administator
The installer writes following log:

Code: Select all

=== ログ開始: 2019/01/28  16:46:23 ===
MSI (c) (FC:44) [16:46:23:123]: Note: 1: 2262 2: PatchPackage 3: -2147287038 
MSI (c) (FC:44) [16:46:23:123]: Machine policy value 'DisableRollback' is 0
MSI (c) (FC:44) [16:46:23:123]: User policy value 'DisableRollback' is 0
MSI (c) (FC:44) [16:46:23:123]: PROPERTY CHANGE: Adding UILevel property. Its value is '5'.
MSI (c) (FC:44) [16:46:23:123]: PROPERTY CHANGE: Adding ACTION property. Its value is 'INSTALL'.
MSI (c) (FC:44) [16:46:23:123]: Doing action: INSTALL
MSI (c) (FC:44) [16:46:23:124]: Transforming table ActionText.

操作 16:46:23: INSTALL。 
操作開始 16:46:23: INSTALL。
MSI (c) (FC:44) [16:46:23:125]: UI Sequence table 'InstallUISequence' is present and populated.
MSI (c) (FC:44) [16:46:23:125]: Running UISequence
MSI (c) (FC:44) [16:46:23:125]: PROPERTY CHANGE: Adding EXECUTEACTION property. Its value is 'INSTALL'.
MSI (c) (FC:44) [16:46:23:125]: Doing action: AI_SET_INSTALL
操作 16:46:23: AI_SET_INSTALL。 
操作開始 16:46:23: AI_SET_INSTALL。
MSI (c) (FC:44) [16:46:23:125]: PROPERTY CHANGE: Adding AI_INSTALL property. Its value is '1'.
操作終了 16:46:23: AI_SET_INSTALL。 戻り値 1。
MSI (c) (FC:44) [16:46:23:125]: Skipping action: AI_SET_MAINT (condition is false)
MSI (c) (FC:44) [16:46:23:125]: Skipping action: AI_SET_RESUME (condition is false)
MSI (c) (FC:44) [16:46:23:125]: Skipping action: AI_SET_PATCH (condition is false)
MSI (c) (FC:44) [16:46:23:125]: Skipping action: AI_CORRECT_INSTALL (condition is false)
MSI (c) (FC:44) [16:46:23:125]: Skipping action: AI_DETECT_MODERNWIN (condition is false)
MSI (c) (FC:44) [16:46:23:125]: Doing action: AI_RestartElevated
操作 16:46:23: AI_RestartElevated。 
When a User logs in with admin privileges, the installation runs as expected.

Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: •Request MSI elevation, aka "Run as administrator" (without an EXE bootstrapper)

Tue Jan 29, 2019 3:44 pm

Hi and welcome to our forums.

The problem above disappeared starting with Advanced Installer 15.2 and we were not able to find what was causing it. Can you please unzip and test the attached MSI package on the failing user account and send me, to support at advancedinstaller dot com, the three log files that it creates? The log files are automatically created on the "D:\" drive (so please make sure that drive exists on your machine).

Best regards,
Eusebiu
Attachments
Run Admin Test.zip
(948.11KiB)Downloaded 5993 times
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

apnKn
Posts: 4
Joined: Mon Jan 28, 2019 9:07 am

Re: •Request MSI elevation, aka "Run as administrator" (without an EXE bootstrapper)

Thu Jan 31, 2019 8:23 am

Thanks for the quick response!
The log files are automatically created on the "D:\" drive (so please make sure that drive exists on your machine).
The PC does not have any D-Drive and we have no chance to create one.
C:\tmpAI\ would be fine

Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: •Request MSI elevation, aka "Run as administrator" (without an EXE bootstrapper)

Mon Feb 04, 2019 3:22 pm

Hi,

Sorry for the delayed reply.

Please find attached a new test MSI that should write the log files in the "C:\tmpAI" folder, but please make sure that this folder exists before running the package.

Best regards,
Eusebiu
Attachments
Run Admin Test.rar
(783.53KiB)Downloaded 5974 times
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

apnKn
Posts: 4
Joined: Mon Jan 28, 2019 9:07 am

Re: •Request MSI elevation, aka "Run as administrator" (without an EXE bootstrapper)

Fri Mar 15, 2019 9:03 am

Could trace some logs.
This is an endless loop :)

Code: Select all

<< Advanced Installer (x86) Log >>
OS Version: 6.1.7601 SP1 (workstation) [x64]

# 2019-03-15 16-59-04 [PID=10524|Thread=10036] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:52]		-> RestartElevated() |		RunMsiAsAdmin - start.
# 2019-03-15 16-59-04 [PID=10524|Thread=10036] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:62]		-> RestartElevated() |		Check MsiRunningElevated property.
# 2019-03-15 16-59-04 [PID=10524|Thread=10036] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:74]		-> RestartElevated() |		MsiRunningElevated property value is: 
# 2019-03-15 16-59-04 [PID=10524|Thread=10036] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:83]		-> RestartElevated() |		msiexec.exe path is: C:\Windows\SysWOW64\msiexec.exe
# 2019-03-15 16-59-04 [PID=10524|Thread=10036] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:93]		-> RestartElevated() |		MSI path is: "C:\tmp\Run Admin Test.msi"
# 2019-03-15 16-59-04 [PID=10524|Thread=10036] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:99]		-> RestartElevated() |		The command line is: "C:\Windows\System32\msiexec.exe" /i "C:\tmp\Run Admin Test.msi" 
# 2019-03-15 16-59-04 [PID=10524|Thread=10036] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:116]		-> RestartElevated() |		The install parameters are: /i "C:\tmp\Run Admin Test.msi"
# 2019-03-15 16-59-05 [PID=10524|Thread=10036] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:123]		-> RestartElevated() |		RunMsiAsAdmin - end.

<< Advanced Installer (x86) Log >>
OS Version: 6.1.7601 SP1 (workstation) [x64]

# 2019-03-15 16-59-05 [PID=17784|Thread=10568] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:52]		-> RestartElevated() |		RunMsiAsAdmin - start.
# 2019-03-15 16-59-05 [PID=17784|Thread=10568] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:62]		-> RestartElevated() |		Check MsiRunningElevated property.
# 2019-03-15 16-59-05 [PID=17784|Thread=10568] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:74]		-> RestartElevated() |		MsiRunningElevated property value is: 
# 2019-03-15 16-59-05 [PID=17784|Thread=10568] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:83]		-> RestartElevated() |		msiexec.exe path is: C:\Windows\SysWOW64\msiexec.exe
# 2019-03-15 16-59-05 [PID=17784|Thread=10568] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:93]		-> RestartElevated() |		MSI path is: "C:\tmp\Run Admin Test.msi"
# 2019-03-15 16-59-05 [PID=17784|Thread=10568] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:99]		-> RestartElevated() |		The command line is: "C:\Windows\SysWOW64\msiexec.exe" /i "C:\tmp\Run Admin Test.msi"
# 2019-03-15 16-59-05 [PID=17784|Thread=10568] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:116]		-> RestartElevated() |		The install parameters are: /i "C:\tmp\Run Admin Test.msi"
# 2019-03-15 16-59-05 [PID=17784|Thread=10568] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:123]		-> RestartElevated() |		RunMsiAsAdmin - end.

<< Advanced Installer (x86) Log >>
OS Version: 6.1.7601 SP1 (workstation) [x64]

# 2019-03-15 16-59-05 [PID=18140|Thread=10600] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:52]		-> RestartElevated() |		RunMsiAsAdmin - start.
# 2019-03-15 16-59-06 [PID=18140|Thread=10600] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:62]		-> RestartElevated() |		Check MsiRunningElevated property.
# 2019-03-15 16-59-06 [PID=18140|Thread=10600] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:74]		-> RestartElevated() |		MsiRunningElevated property value is: 
# 2019-03-15 16-59-06 [PID=18140|Thread=10600] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:83]		-> RestartElevated() |		msiexec.exe path is: C:\Windows\SysWOW64\msiexec.exe
# 2019-03-15 16-59-06 [PID=18140|Thread=10600] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:93]		-> RestartElevated() |		MSI path is: "C:\tmp\Run Admin Test.msi"
# 2019-03-15 16-59-06 [PID=18140|Thread=10600] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:99]		-> RestartElevated() |		The command line is: "C:\Windows\SysWOW64\msiexec.exe" /i "C:\tmp\Run Admin Test.msi"
# 2019-03-15 16-59-06 [PID=18140|Thread=10600] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:116]		-> RestartElevated() |		The install parameters are: /i "C:\tmp\Run Admin Test.msi"
# 2019-03-15 16-59-06 [PID=18140|Thread=10600] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:123]		-> RestartElevated() |		RunMsiAsAdmin - end.

Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: •Request MSI elevation, aka "Run as administrator" (without an EXE bootstrapper)

Tue Mar 19, 2019 9:17 am

Hi,

There should be 3 log files created under the "C:\tmpAI" folder. Can you please send them all to me?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

apnKn
Posts: 4
Joined: Mon Jan 28, 2019 9:07 am

Re: •Request MSI elevation, aka "Run as administrator" (without an EXE bootstrapper)

Wed Apr 24, 2019 2:09 pm

It happened again on some other pc
But there is online one File:
AI_RunMsiAsAdmin.log

on both PCs, the user does not have admin rights. With Admin rights everything is fine

Code: Select all

<< Advanced Installer (x86) Log >>
OS Version: 6.1.7601 SP1 (workstation) [x64]

# 2019-04-24 14-58-29 [PID=1944|Thread=3476] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:52]		-> RestartElevated() |		RunMsiAsAdmin - start.
# 2019-04-24 14-58-29 [PID=1944|Thread=3476] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:62]		-> RestartElevated() |		Check MsiRunningElevated property.
# 2019-04-24 14-58-29 [PID=1944|Thread=3476] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:74]		-> RestartElevated() |		MsiRunningElevated property value is: 
# 2019-04-24 14-58-29 [PID=1944|Thread=3476] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:83]		-> RestartElevated() |		msiexec.exe path is: C:\Windows\SysWOW64\msiexec.exe
# 2019-04-24 14-58-29 [PID=1944|Thread=3476] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:93]		-> RestartElevated() |		MSI path is: "D:\temp\Run Admin Test.msi"
# 2019-04-24 14-58-29 [PID=1944|Thread=3476] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:99]		-> RestartElevated() |		The command line is: "C:\Windows\SysWOW64\msiexec.exe" /i "D:\temp\Run Admin Test.msi"
# 2019-04-24 14-58-29 [PID=1944|Thread=3476] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:116]		-> RestartElevated() |		The install parameters are: /i "D:\temp\Run Admin Test.msi"
# 2019-04-24 14-58-29 [PID=1944|Thread=3476] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:123]		-> RestartElevated() |		RunMsiAsAdmin - end.

<< Advanced Installer (x86) Log >>
OS Version: 6.1.7601 SP1 (workstation) [x64]

# 2019-04-24 14-58-29 [PID=1352|Thread=3636] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:52]		-> RestartElevated() |		RunMsiAsAdmin - start.
# 2019-04-24 14-58-29 [PID=1352|Thread=3636] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:62]		-> RestartElevated() |		Check MsiRunningElevated property.
# 2019-04-24 14-58-29 [PID=1352|Thread=3636] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:74]		-> RestartElevated() |		MsiRunningElevated property value is: 
# 2019-04-24 14-58-29 [PID=1352|Thread=3636] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:83]		-> RestartElevated() |		msiexec.exe path is: C:\Windows\SysWOW64\msiexec.exe
# 2019-04-24 14-58-29 [PID=1352|Thread=3636] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:93]		-> RestartElevated() |		MSI path is: "D:\temp\Run Admin Test.msi"
# 2019-04-24 14-58-29 [PID=1352|Thread=3636] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:99]		-> RestartElevated() |		The command line is: "C:\Windows\SysWOW64\msiexec.exe" /i "D:\temp\Run Admin Test.msi"
# 2019-04-24 14-58-29 [PID=1352|Thread=3636] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:116]		-> RestartElevated() |		The install parameters are: /i "D:\temp\Run Admin Test.msi"
# 2019-04-24 14-58-29 [PID=1352|Thread=3636] [d:\jobai\custact\aicustact\src\launcher\restartelevated.cpp:123]		-> RestartElevated() |		RunMsiAsAdmin - end.

<< Advanced Installer (x86) Log >>
OS Version: 6.1.7601 SP1 (workstation) [x64]

Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: •Request MSI elevation, aka "Run as administrator" (without an EXE bootstrapper)

Thu May 09, 2019 1:11 pm

Hi,

I apologize for the late reply. Thank you for the log you sent.

The developer that implemented this feature and our QA team investigated and tried to reproduce this problem during the last days, but we don't have any resolution yet. We will keep investigating this and update this thread as soon as we have a conclusive answer.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Antor
Posts: 6
Joined: Wed Jan 24, 2018 7:58 am
Contact:  Skype

Re: •Request MSI elevation, aka "Run as administrator" (without an EXE bootstrapper)

Wed Jun 12, 2019 11:17 am

I have same problem even with minimum project.

PC config: Windows 7, User isn't admin, UAC is !disabled!. Cyclic restart and AI_restartelevated error in log
Project: MSI with resources inside, Run as admin. AI - 15.9 Enterprise and 16.0 Enterprise

Return to “Common Problems”