简体   繁体   中英

Installshield installation ask the user to have iisadmin on a machine with iis7 installed

I am creating an installation that is adding a web site to IIS. But when I am trying to run the installation on a machine with IIS 7 installed and IIS 6 compatibility mode not installed, it fails the installation with:

Error 1920.Service IISADMIN (IISADMIN) failed to start. Verify that you have sufficient privileges to start system services

If I install the compatibility feature it fixes the problem and the installation succeeds. I want to know if there is a way to not install this feature on IIS 7. Or if it must be installed - how can I install it automatically?

btw, I have installShield 2011 Professional.

Eventually what I did is to run as custom actions this lines

dism /online /enable-feature /featurename:IIS-IIS6ManagementCompatibility
dism /online /enable-feature /featurename:IIS-Metabase

and use as condition Not Installed and IIS_VERSION > "#6"

Thanks for Cosmin Privu help Ben

You can try adding the compatibility fix as a custom prerequisite to your package: http://kb.flexerasoftware.com/doc/Helpnet/installshield12helplib/SetupPrereqEditor.htm

For example you can create a custom EXE which uses pkmgr.exe to install the IIS-IIS6ManagementCompatibility feature (it's like installing it from Control Panel).

It can be configured to install only when it's not found and only if IIS 7 is installed. This way you can make sure that the service can always be started for IIS 7.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM