cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Please can someone give me some advice on the methods used to launch a batch file using Admin Studio. We have packaged several applications in MSI format and require the following batch file to run after the deplopyment.

#Sample Batch File# to run after visio has been depolyed

net localgroup "App Visio 2002" /ADD
%systemroot%\system32\xcacls.exe "%systemroot%\NRStart\NR Office Apps\Microsoft Visio 2002.lnk" /t /c /g administrators:f system:f "%computername%\App Visio 2002":r /Y >nul
%systemroot%\system32\xcacls.exe "%systemdrive%\Program Files\Microsoft Office\Visio10\Visio.exe" /t /c /g administrators:f system:f "%computername%\App Visio 2002":rx /Y >nul

Is this done using custom actions ?
Is this done using the installscript language ?

Samples of code would be great if anyone has any they can share , we need to run the batch files for both msi/mst and msi packages.

Many thanks in advance ...
(1) Reply
Check out the documentation on LockPermissions. You can also run this through a TRANSFORM if you need to .

In short, find the component for the directories you want to unlock and then set your permissions there. Your can specify a domain and user. If you want to unlock it for everyone Don't speicify a Domain and "Everyone" is the user.

You can run external programs like batch file through custom actions but it will be a nightmare to manage later.