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

Theme Settings in Powershell

Tue Aug 31, 2021 6:52 pm

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: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Theme Settings in Powershell

Tue Aug 31, 2021 7:16 pm

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: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Theme Settings in Powershell

Thu Sep 02, 2021 10:18 am

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: 8
Joined: Tue Aug 31, 2021 6:48 pm

Re: Theme Settings in Powershell

Thu Sep 02, 2021 6:16 pm

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: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Theme Settings in Powershell

Thu Sep 02, 2021 7:04 pm

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”