This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- IIS7 and UAC
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 25, 2010
06:31 AM
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
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
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 31, 2010
03:39 PM
a little bit late.....
Use the SHELL_EXECUTE options for Launchapp, see my example code
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 );