‎Mar 10, 2008 05:34 AM
‎Mar 12, 2008 07:27 PM
Stephan H. wrote:
Hello everybody.
I have a small problem by setting permission or running a custom action script.
Well, I have to change the permission for one ini file so I guess I have to use xcacls.
To run this script I wrote a second one:
Dim WshShell, system_folder, program_path, command
Set WshShell = CreateObject("WScript.Shell")
system_folder = wshShell.ExpandEnvironmentStrings( "%Systemroot%" ) & "\System32\XCACLS.vbs"
program_path = wshShell.ExpandEnvironmentStrings( "%ProgramFiles%" ) & "\IMCOR GmbH\pep\pep.ini /e /g Users:m x l"
command = system_folder & " " & program_path
WshShell.Run command
But the last line will not work. I tried a lot of different versions (Call, True, Exec....) but nada.
So I thought maybe I can just run this vbs script as a kind of exe but also this wont work.
Please, has somebody a idea, I mean it cant be so difficult.
thx for your help
‎Mar 13, 2008 02:46 AM
‎Mar 13, 2008 03:22 AM