Hello,
I use AI 7.1.3 enterprise.
During the installation I want to add a task in windows task scheduler. As the tasks pane in AI does not offer all the options I need, I want to import the task during installation via a command line from an XML file, e.g.:
schtasks.exe /Create /TN MyCompany\MyTaskname /XML "[#MyTaskDefinition.xml]"
But that command line must be execute with admin privileges, but I do not succed to do so, as a custiom action seems always being executed in the environment as the installation was started in, though on Vista and 7 usually without Admin privileges.
Using 'deferred with no impersonation' does not work: schtasks.exe returns an error: "no mapping between acount name and security ids was done."
So, how to start a custom action with Admin privileges?
Thanks,
Chris
FOLLOW US
Get the latest news in Application Packaging