Issue with Aspnet_regiis.exe -lk On Windows Vista RRS feed

  • Question

  •  In one of our product, we are using ASP.NET IIS Registration Tool (Aspnet_regiis.exe) with –lk option. The command used is "C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe –lk"

    The code exists in the rul file of the product installer. Following is the code snippet:

    bRtnFlag = _RegistryDBKeyValueGet( "\\SOFTWARE\\Microsoft\\ASP.NET\\2.0.50727.0", "Path", REGDB_STRING_EXPAND, szAspNetPath  );
    szRequiredVersion = "1.0.0000.0";
    szProgram = "cmd /c" + szAspNetPath ^ "aspnet_regiis.exe";
    szFileNameReg = "ASPNETSites.txt";
    szParameterPathReg =  SUPPORTDIR ^ szFileNameReg;  
    szParameters = " -lk > " + szParameterPathReg;
    _LogWrite(szProgram + szParameters  , INFORMATION);
    _AppLaunchReturnCode(szProgram, szParameters, WAIT, SW_HIDE, -1, nExitCode);

    As per my understanding, -lk option is not supported on Windows Vista. Due to this we expect issues in our product while installed on Windows Vista.

    What is the alternative way to achieve this functionality?
    Friday, July 11, 2008 7:05 AM


All replies