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
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
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'.
Answered 05/05/2009 by: VBScab
Red Belt

Please log in to comment
0
I was able to populate the domain into a property and do this with the lockpermissions table for a package that had similar requirements - no need for 2 packages.
Just be aware of the lockpermissions table limitations. If you don't know what those are, Ian will gladly point them out to you! [:D]
Answered 05/07/2009 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
0
Thanx, I will dig into custom actions and see what I can find out. aogilmor, how where you able to check which domain the machine belonged to?
Is there a command which can fetch this from the machines registry or similar?
Answered 05/12/2009 by: jgb
Orange Belt

Please log in to comment
0
I haven't looked but I'd imagine that WMI will come to your aid here.
Answered 05/12/2009 by: VBScab
Red Belt

Please log in to comment
0
set a system search for hklm\System\CurrentControlSet\Services\TCPIP\Parameters\Domain. This is pretty easy with Wise, use the system search to add this value to a property. Use the property to set domain in Lockpermissions table.
Answered 05/12/2009 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
0
Thanx guys! Works like a charm... [:D]
Answered 05/14/2009 by: jgb
Orange Belt

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