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
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)
Please log in to answer
Posted by:
AngelD
16 years ago
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.
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
16 years ago
Posted by:
aogilmor
16 years ago
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
16 years ago
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
16 years ago
Posted by:
jmcfadyen
16 years ago
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)
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
16 years ago
ORIGINAL: AngelDSpot on. Anyone who's ever sat through a clunker like IBM Client/iSeries Access being permissioned will have learned to use inheritance.
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:
AngelD
16 years ago
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
16 years ago
ORIGINAL: AngelDFollowing protracted UAT, my client's business unit requested that the entire contents - INSTALLDIR - be opened up, together with:
do you have any reference on where the permission needs to be changed for this IBM "clunker".
HKLM\Software\IBM\Client Access
HKLM\Software\IBM\Personal Communications
HKLM\Software\IBM\Trace Facility
Posted by:
unreal2me
16 years ago
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
16 years ago
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
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.
so that the conversation will remain readable.