Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Is there a way for setting process level security


3 replies to this topic

jagat

jagat
  • Members
  • 15 posts

Posted 05 July 2002 - 13:05

Hi,
I am using MTSAdmin.Catalog object for installing COM+ components through a custom action.Is there any property to set the Security level of the package in the Security tab of the packages to the process level.By default the second button that is Enforce component level access check is selected.

This are the package properties I am setting through the script.
try
      set catalog = CreateObject("MTSAdmin.Catalog.1");
     set ObjMachineProperty = catalog.GetCollection("LocalComputer");
     ObjMachineProperty.Populate;
set packages = catalog.GetCollection("Packages");
     packages.Populate;
       set newPack = packages.Add;
       newPack.Value("Name") = "Example";
       newPack.Value("SecurityEnabled") = "N";
       newPack.Value("RunForever") = "Y";
       newPack.Value("Authentication") = 1;
packages.SaveChanges ;
catch    
endcatch;


Is there any property to set the Security tabs Security level first option so that there is access checks only at the application or the process level.
Any help is highly appreciated.
Thanks and Regards,
Jagat
jagat
Software Engineer
http://www.icode.com

Leigh Ravenhall

Leigh Ravenhall
  • Members
  • 269 posts

Posted 08 July 2002 - 02:09

I think you want to set the AccessChecksLevel property to 0.
Leigh Ravenhall
Expert Information Services

jagat

jagat
  • Members
  • 15 posts

Posted 08 July 2002 - 15:35

Hi Leigh,
Thanks for your suggestion :)
can you please specify as how to use the property "AccessChecksLevel".
I tried to check the package property through
newPack.Value("AccessChecksLevel") = 0;
But the Caustom action would abort at this point without installing the package.
Am I doing something wrong or need to initialize some other properties before using it.
Regards,
Jagat
jagat
Software Engineer
http://www.icode.com

jagat

jagat
  • Members
  • 15 posts

Posted 11 July 2002 - 07:06

Hi,
I had to use  COMAdmin.COMAdminCatalog to set the property for OS > Win 2000.
Here is the sample code..
if (GetOS() > Win 2000) then
 try
   set catalogCOM = CreateObject("COMAdmin.COMAdminCatalog.1");
   set PackageCOM = catalogCOM.GetCollection("Applications");
   PackageCOM.Populate;
   n = PackageCOM.Count;
   for i = (n - 1) downto  0                            
     if PackageCOM.Item(i).Value("Name") = szPackageNAme then                        
       PackageCOM.Item(i).Value("AccessChecksLevel") = 0;
       PackageCOM.SaveChanges;  
       i=0;
     endif;
   endfor;
  catch
  endcatch;  
endif;
HTH someone.
Regards,
jagat
Software Engineer
http://www.icode.com