Hello,
First of all, thank you for your followup on this and for sharing your details with me.
I definitely understand your scenario and the struggle.
However, the good news is that we might have a solution here, through our PowerShell automation support.
Here's how I'm thinking to achieve this:
1. first of all, we create the AI com object in PowerShell
Code: Select all
$ai = new-object -comobject AdvancedInstaller
2. we then load our project
Code: Select all
$project = $ai.LoadProject("C:\Users\Catalin\Desktop\Your Application.aip")
3. we then retrieve all the files from the project. In my case, there are only DLLs just as in your case as well
Code: Select all
$files = $project.FilesComponent.Files
If we then run "$files" we can see that it returns an array of the two files in my case
- Screenshot_139.png (70.25 KiB) Viewed 9802 times
4. we then create the
"Assemblies" component to reflect the page from our project
Code: Select all
$assemblies = $project.AssembliesComponent
5. now, considering the files are stored in an array, we can use a foreach and add the files using the
"NewAssembly" method
Code: Select all
foreach ($file in $files){$assemblies.NewAssembly($file)}
- Screenshot_140.png (49.74 KiB) Viewed 9802 times
6. save the project
Upon opening the project, we can see that the DLLs were added in the
"Assemblies" page.
Hope this helps!
Best regards,
Catalin