

automatically launched with the command line argument specifying the absolute path of the chosen file. The first command updates the Visual Studio Installer. shell Copy vsenterprise.exe -update -quiet -wait vsenterprise.exe update -wait -passive -norestart -installPath 'C:installPathVS' Note Both commands are advised. The command line arguments (in the case of a custom action of EXE type). The first command updates the installer, and the second command updates the Visual Studio product. I also tried unchecking the "Run as Administrator" checkbox and now cmd black windows shows, but it all ends with "Access denied". Add custom actions to your installation package. Description of all predefined custom actions available in Advanced Installer. The joke is that if I close this argument ("") into quotes in order to have parameter with path "C:\Program Files (x86)\CompanyFolder\." instead of "C:\Program" (which happens if I do not enclose the with quotes), the installation process crashes - cmd black window just flashes - obviously no action happened at all. Moreover I needed to set folder param as command line argument (to be able to set the scheduled task executable path according to user's installation folder choice), so I chose Application Folder from the folder tree - "" in "Command line" box.

To be able to create scheduled task, this action must be done under admin privileges, so I checked the "Run as Administrator" box. Then I defined Custom Action - Launch File, where I call the batch file (i.e. I need to call schtasks command with own XML file (settings, that are available for Scheduled Tasks in Installer itself, aren't enough for me), so I created a batch file with this command and placed it into Temporary folder (I placed some "debug sleeps" into the batch).
