Subinacl.vbs - different permissions if different domain
Hi,
I've got an action in the "Execute Deferred" section in "MSI Script" in Wise Packager.
It goes like this:
"cscript.exe "[%ProgramFiles]\APPNAME\Shared\xcacls.vbs" "[%ProgramFiles]\APPNAME\Shared" /E /G DOMAIN2\"DOMAIN2-SECURITYGROUP":XW"
This works fine, but my problem is that I have two domains, and I've had to make one package for each domain.
The only difference in the packages is the scripcommand above, which is going to be the same, except the domainname and securitygroup will be different.
I'd prefer to have only one package. Somehow I can't get this to work.
1. Is there a way to make a "if domain is domain1 - do add these permissions - if domain is domain2- do add these permissions" ?
2. I tried to add both permissiongroups (since I couldnt find a way to check which domain the server was in), but somehow I couldn't get it work.
Got errormessages that said that it couldn't find the security group. Could this be because the machines are in seperate domains? (to-way trust) or could it be the user I'm using to run the installation with? (a domain user from one Domain1)
Anybody got some input for me?
Thanks
I've got an action in the "Execute Deferred" section in "MSI Script" in Wise Packager.
It goes like this:
"cscript.exe "[%ProgramFiles]\APPNAME\Shared\xcacls.vbs" "[%ProgramFiles]\APPNAME\Shared" /E /G DOMAIN2\"DOMAIN2-SECURITYGROUP":XW"
This works fine, but my problem is that I have two domains, and I've had to make one package for each domain.
The only difference in the packages is the scripcommand above, which is going to be the same, except the domainname and securitygroup will be different.
I'd prefer to have only one package. Somehow I can't get this to work.
1. Is there a way to make a "if domain is domain1 - do add these permissions - if domain is domain2- do add these permissions" ?
2. I tried to add both permissiongroups (since I couldnt find a way to check which domain the server was in), but somehow I couldn't get it work.
Got errormessages that said that it couldn't find the security group. Could this be because the machines are in seperate domains? (to-way trust) or could it be the user I'm using to run the installation with? (a domain user from one Domain1)
Anybody got some input for me?
Thanks
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
anonymous_9363
15 years ago
You need to bone up on using the special CustomActionData property, in particular on passing multiple "elements" for use in the target Custom Action. You can then parse the property's content for the domain name and group in the script. It's far too lengthy to go into here again so have a search on AppDeploy for 'CustomActionData'.
Posted by:
aogilmor
15 years ago
Posted by:
jgb
15 years ago
Posted by:
anonymous_9363
15 years ago
Posted by:
aogilmor
15 years ago
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.