/build/static/layout/Breadcrumb_cap_w.png

CACLS, where in sequence is best?

Hi,

If i want to make sure that every files and folder are created on the wks before doing a CACLS, what is the best place to install the Custom Action? After InstallFinalyse in Execute Immediate?

Many thanks,

Robert

0 Comments   [ + ] Show comments

Answers (11)

Posted by: AngelD 15 years ago
Red Belt
1
The InstallFiles action executes in deffered sequence, the same as all standard actions modifying the (machine) system.

If you would want to change permission on all files and subfolder within a folder I would first make sure that folder was created by the CreateFolders action (CreateFolder table) and then sequence the custom action directly after CreateFolders action. In this case any File & IniFile installed into that folder will inherit the permissions from the folder that was created by the CreateFolders action.
Posted by: rayz_0020 15 years ago
Senior Purple Belt
0
If i am right, you are looking for the location to place your CA using Cacls ??
Place it before InstallFinalize in Excecute Deferred.
Posted by: aogilmor 15 years ago
9th Degree Black Belt
0
ORIGINAL: unreal2me
If i want to make sure that every files and folder are created on the wks before doing a CACLS, what is the best place to install the Custom Action? After InstallFinalyse in Execute Immediate?


I'd put it After InstallFinalize in Execute Immediate
That way all the files are installed etc. and you still have access to all the properties.
Posted by: captain_planet 15 years ago
Black Belt
0
Well that's confused me then Owen.....I always thought best practice was to make system changes as deferred execution in a system context, especially if you're packaging for Vista (UAC issues etc). So long as it's sequenced after the InstallFiles standard action and before InstallFinalize it should be fine.....(or so I thought.....)
Posted by: aogilmor 15 years ago
9th Degree Black Belt
0
You may be correct on that for vista, not sure. This is an area that I've not explored much, but I know that in a deferred context you don't have access to all properties, etc.

http://msdn.microsoft.com/en-us/library/aa368268(VS.85).aspx
Posted by: jmcfadyen 15 years ago
5th Degree Black Belt
0
sorry aogilmor this is a bad place to put it.

you should never modify the system in any way using an immediate CA. I have been meaning to blog about this for sometime now. I have written the content just need to post it...

my latest sequencing diagram explains this a litte better. .

go with the deferred setting before installFinalize and after InstallFiles (run in system context also)
Posted by: anonymous_9363 15 years ago
Red Belt
0
ORIGINAL: AngelD
If you would want to change permission on all files and subfolder within a folder I would first make sure that folder was created by the CreateFolders action (CreateFolder table) and then sequence the custom action directly after CreateFolders action. In this case any File & IniFile installed into that folder will inherit the permissions from the folder that was created by the CreateFolders action.
Spot on. Anyone who's ever sat through a clunker like IBM Client/iSeries Access being permissioned will have learned to use inheritance.
Posted by: AngelD 15 years ago
Red Belt
0
ORIGINAL: VBScab
Anyone who's ever sat through a clunker like IBM Client/iSeries Access being permissioned will have learned to use inheritance.

Talking about iSeries Access, as I havn't checked the permissions yet do you have any reference on where the permission needs to be changed for this IBM "clunker". I tested this on Vista briefly and havn't yet seen any issues regarding permissions allthough the pcsws.exe has an "internal" manifest which prevents the Vista "virtualization" (file redirection) & UAC popup.
Posted by: anonymous_9363 15 years ago
Red Belt
0
ORIGINAL: AngelD
do you have any reference on where the permission needs to be changed for this IBM "clunker".
Following protracted UAT, my client's business unit requested that the entire contents - INSTALLDIR - be opened up, together with:

HKLM\Software\IBM\Client Access
HKLM\Software\IBM\Personal Communications
HKLM\Software\IBM\Trace Facility
Posted by: unreal2me 15 years ago
Orange Senior Belt
0
ever sat through a clunker like ORIGINAL: AngelD

The InstallFiles action executes in deffered sequence, the same as all standard actions modifying the (machine) system.

If you would want to change permission on all files and subfolder within a folder I would first make sure that folder was created by the CreateFolders action (CreateFolder table) and then sequence the custom action directly after CreateFolders action. In this case any File & IniFile installed into that folder will inherit the permissions from the folder that was created by the CreateFolders action.


This looks like a good way to do it. But am a noob at it.

Do i place my CA in Execute Immediate or Execute deferred after the create folder action?

Thanks for guiding,

Robert
Posted by: AngelD 15 years ago
Red Belt
0
You place it in deferred execution.
I have an old post for a vbscript custom action with SetACL, please have a look at http://www.appdeploy.com/messageboards/fb.asp?m=38536
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ