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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
If i am right, you are looking for the location to place your CA using Cacls ??
Place it before InstallFinalize in Excecute Deferred.
Answered 09/19/2008 by: rayz_0020
Senior Purple Belt

Please log in to comment
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.
Answered 09/20/2008 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
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.....)
Answered 09/20/2008 by: captain_planet
Second Degree Brown Belt

Please log in to comment
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
Answered 09/21/2008 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
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.
Answered 09/21/2008 by: AngelD
Red Belt

Please log in to comment
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)
Answered 09/21/2008 by: jmcfadyen
Fifth Degree Black Belt

Please log in to comment
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.
Answered 09/22/2008 by: VBScab
Red Belt

Please log in to comment
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.
Answered 09/22/2008 by: AngelD
Red Belt

Please log in to comment
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
Answered 09/22/2008 by: VBScab
Red Belt

Please log in to comment
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
Answered 09/22/2008 by: unreal2me
Orange Senior Belt

Please log in to comment
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
Answered 09/22/2008 by: AngelD
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity