Results 1 to 2 of 2

Thread: IIS7 and UAC

  1. #1
    Join Date
    Feb 2010
    Posts
    1

    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

  2. #2
    Join Date
    May 2004
    Location
    Woerden - The Netherlands
    Posts
    31
    a little bit late.....

    Use the SHELL_EXECUTE options for Launchapp, see my example code

    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 );
    Last edited by Paul Boerefijn; 05-31-2010 at 03:41 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •