cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
hendrikk
Level 2

IIS7 and UAC

Hi,

We have and ASP.Net application that is installed via Installshield 2010 Professional. The application needs to be installed in a Classic .NET application pool.

We do this as show below:

LaunchAppAndWait("","C:\\Windows\\System32\\inetsrv\\appcmd set apppool /apppool.name: " + '"'+ "Classic .NET AppPool" +'"' + " /enable32bitapponwin64:true",WAIT);

On Windows 2008 (x64) wit UAC (User Account Control) enabled and logged in as a 'semi' administrator the call crashes and the installer rolls back.
Logged in as a 'real' administrator or with UAC turned off, the application installs fine.

When looking at the appcmd command in a command window, the cause of the crash is revealed.
"Cannot read configuration file due to insufficient permissions"

How can we overcome this issue since disabling UAC or logging in as a real admin will not be an option for larger IT organizations.

Hendrik
Labels (1)
0 Kudos
(1) Reply
Paul_Boerefijn
Level 3

a little bit late.....

Use the SHELL_EXECUTE options for Launchapp, see my example code


nShow = SW_HIDE;
nTimeOut = 60000; // wait 60 sec max
switch(SYSINFO.nISOSL)
case ISOSL_WINVISTA_SERVER2008, ISOSL_WIN7_SERVER2008R2:
LAAW_SHELLEXECUTEVERB = "runas";
nOptions = LAAW_OPTION_USE_SHELLEXECUTE | LAAW_OPTION_WAIT;
default:
nOptions = LAAW_OPTION_WAIT;
endswitch;

LaunchApplication ( svProgram , svParam , svWorkPath , nShow , nTimeOut , nOptions );
0 Kudos