We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

tiffanym
Posts: 9
Joined: Tue Aug 31, 2021 6:48 pm

Theme Settings in Powershell

Hi,

I have recently been playing around with Powershell and building msi files. One option I don't have access to is changing the theme (dialog and banner) within Powershell. Will this be an option in the future?

Thanks,
~Tiffany
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Theme Settings in Powershell

Hello Tiffany and welcome to our forums,

I have added this improvement on our TODO list and hopefully this will be available in a future version of Advanced Installer.

Thank you for bringing this to our attention!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Theme Settings in Powershell

Hello Tiffany,

I have discussed this with our developer and it looks like it might not be feasible to add this support in our PowerShell automation feature.

However, as a workaround, we have thought about the following solution.

As a starting point, we could have more .AIP files, each of the .AIP files having a different theme. For this, we could use "Save as template" option.

We could then have a function that will do the custom changes to all the .AIP files.

With this, in the end, we will have multiple variations of the same project, each having a separate theme.

The code for this might look something as it follows:

Code: Select all

$myProjects = {"Application.aip", "Application_spring.aip", "Application_light.aip"}

$advinst = new-object -com AdvancedInstaller

function CustomizeProject($myProjectFile)
{
  $proj = $advinst.LoadProject($myProjectFile);
  # do project customization
  $proj.Save()
  $proj.Build()
}

foreach($myProject in $myProjects)
{
  CustomizeProject $myProject
}
Hope this will help and thank you for your understanding!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tiffanym
Posts: 9
Joined: Tue Aug 31, 2021 6:48 pm

Re: Theme Settings in Powershell

Hi Catalin
Thanks for talking with your developer and providing a response!

I ended up doing something very similar - there were a few features that aren't yet in powershell, so I made those changes in the GUI (as well as changing the theme, saved it, and then loaded the project into my powershell and made the rest of the changes. I now have a completely automated workflow to create and sign my msi file.

Thanks again!
~Tiffany
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Theme Settings in Powershell

You are always welcome, Tiffany!

I am glad to hear you were able to find a solution.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Feature Requests”