I'm trying create Inno Setup with scheduled task from XML file. The scheduled task is: My Application need to start with user login.
in Inno Setup script:
[Run]
Filename: "schtasks.exe";
\Parameters: "/create /XML ""{app}\Schedule.xml"" /TN AppStart"
in Schedule.xml
file:
<Actions Context="Author">
<Exec>
<Command>"C:\Program Files\MyApp\MyApp.exe"</Command>
</Exec>
</Actions>
This works correctly. But I'd like to set the application path in XML file as {app}\MyApp.exe
, because user can install it any location. How can I change this path in the XML file in the setup's run time?