Hello!
I faced a problem while running EXE file from Temporal files.
This topic has similar problem viewtopic.php?t=47988, but in my case it is a bit different.
I am setting up the Advanced Installer usging Power Shell COM. The goal is to call an EXE program from inline Power Shell script Custom Action, the EXE should be located in temporary files.
Power Shell COM performs the folowing:
$newFolder = $project.PredefinedFolders.Temporary.CreateFolder("DBTool")
$newFolder.Synchronization.SourceFolder = "D:\Demo\DBTool"
As a result of this, in the AIP project I have a DBTool folder and a configured synchronization.
The action I call is a sequence one and it placed after "Install Execution Stage->Preparing". When I run the installer, inline script tries to call an EXE from C:/TEMP/DBTool/program.exe, but "C:/TEMP/DBTool" does not exist at the moment.
When I am adding DBTool folder to temporary files using UI, I see that all the files get added automatically and each file has a unique property like "AI_FILE_NAME". In this case when I run the installer, inline script can call EXE (from C:\TEMP\DBTool\program.exe) as well.
I want the same behaviour by using Power Shell COM. I did not find a method like $project.TempFilesComponent.AddFile , but for folder.
Is there any way to do this?
Thanks in advance!