JackAllread
Posts: 4
Joined: Tue May 15, 2012 5:50 pm

UAC Issues when Running a BootStrap EXE

Hello,

We have a DVD that follows this chain (when installing on a Server 2008 R2 machine):

-The Launcher.HTA starts the bootstrap EXE (an EXE, MSI and INI file set) created with AI 8.0.2.

-The bootstrap EXE installs and launches a C# app that we have written to allow the user to make selections and installs (among other things) SQL Server 2012 Express.

If I run the C# app directly everything installs (it allows the user to reference the location of the support files).
If I run the bootstrap EXE (that installs the C# app that tries to install SQL Server 2012) SQL Server 2012 Express fails to install.
If I run the Launcher.HTA (that installs bootstrap exe that installs the C# app that tries to install SQL Server 2012) SQL Server 2012 Express fails to install.

It seems to be a UAC issue as a lot of the files for SQL Server are not installed.

I will send the .AIP file and the SQL server logs to Support at AdvancedInstaller dot COM.

Thank you,
Jack
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: UAC Issues when Running a BootStrap EXE

Hi Jack,

Can you please set the custom action that launches your installer to run as "Deferred with no impersonation"? This will make it
run with full admin rights under the SYSTEM account, so it should clear out all permissions problems.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JackAllread
Posts: 4
Joined: Tue May 15, 2012 5:50 pm

Re: UAC Issues when Running a BootStrap EXE

Thanks for your response Bogdan,

However, when I use that option I get the following in the SQL Setup Summary log:
----------------------------------------------------------------
Overall summary:
Final result: Failed: see details below
Exit code (Decimal): -2067922934
Exit facility code: 1214
Exit error code: 10
Exit message: The account that is running SQL Server Setup does not have one or all of the following rights: the right to back up files and directories, the right to manage auditing and the security log and the right to debug programs. To continue, use an account with both of these rights. For more information, see http://msdn.microsoft.com/en-us/library/ms813696.aspx, http://msdn.microsoft.com/en-us/library/ms813959.aspx and http://msdn.microsoft.com/en-us/library/ms813847.aspx.
Start time: 2012-06-05 10:20:38
End time: 2012-06-05 10:21:31
Requested action: RunRules

----------------------------------------------------------------
So I don't even make it as far as when that value is set to "Deferred".

I also tried to set the "runas" as shown here: http://www.advancedinstaller.com/forums ... f=2&t=9993.

I also tried to run the bootstrap.exe file directly (not from the HTA file) and it gave the same error. As you can probably tell I am running out of ideas...

FYI, I am installing onto Windows Server 2008 R2 running on VMWare 7.1.2 build-301548.

Any more ideas would be great.
Thank you,
Jack
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: UAC Issues when Running a BootStrap EXE

Hi Jack,
So I don't even make it as far as when that value is set to "Deferred".
Just so I am sure, above you said "Deferred", which is a different setting from "Deferred with no impersonation". Have you tried the option I recommended?

As I said, a custom action set to "Deferred with no impersonation" runs under SYSTEM account, with full admin rights.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”