Search found 35 matches

Go to advanced search

by vpodans
Mon Sep 29, 2025 8:38 am
Forum: Common Problems
Topic: Weird behavior in property retrieval in custom actions
Replies: 3
Views: 57
 
Jump to post

Re: Weird behavior in property retrieval in custom actions


You can use this instead:

$PropValue = AI_GetMsiProperty PROP1
write-host "$PropName = $PropValue"


And this is the whole problem: I don't know exact property name to read at compile time, it is determined in runtime based on other properties. Here is an example:

I have a bunch of properties ...
by vpodans
Fri Sep 26, 2025 6:30 pm
Forum: Common Problems
Topic: Unable to populate multiple listboxes from script
Replies: 5
Views: 89
 
Jump to post

Re: Unable to populate multiple listboxes from script

Now I understand how AI_LISTBOX_DATA works. I eventually split listboxes in different dialogs. My approach now is as follows:

1. Have UI sequence script which pre-calculate all listboxes at wizard launch and store them in temporary property
2. In dialog initialization actions, copy value from temp ...
by vpodans
Fri Sep 26, 2025 4:46 pm
Forum: Common Problems
Topic: Weird behavior in property retrieval in custom actions
Replies: 3
Views: 57
 
Jump to post

Weird behavior in property retrieval in custom actions

I have a custom action (UI sequence) that writes some property, say PROP1:

AI_SetMsiProperty PROP1 "Some value"


Then in some UI dialog in init actions, I have another custom action (no sequence) which reads same property:

$PropName = "PROP1"
$PropValue = AI_GetMsiProperty $PropName

Note ...
by vpodans
Thu Sep 25, 2025 3:43 pm
Forum: Common Problems
Topic: Unable to populate multiple listboxes from script
Replies: 5
Views: 89
 
Jump to post

Re: Unable to populate multiple listboxes from script

Hi Liviu,

Thanks for your response! This is a very unfortunate behavior. The problem is that both listbox population logic share a lot in common, just slight differences and splitting them into separate scripts will cause a lot of duplicates and will be hard to maintain.

BTW, why do I need "Delete ...
by vpodans
Wed Sep 24, 2025 1:10 pm
Forum: Common Problems
Topic: Unable to populate multiple listboxes from script
Replies: 5
Views: 89
 
Jump to post

Unable to populate multiple listboxes from script

I have a custom dialog with two listboxes. They have property names "LB1" and "LB2" respectively. Then, I have a powershell script in UI sequence:

AI_SetMsiProperty AI_LISTBOX_DATA "LB1|val1|val2"
AI_SetMsiProperty AI_LISTBOX_DATA "LB2|val4|val5"

and I added a PopulateListBox helper action. Then ...
by vpodans
Thu Apr 03, 2025 9:01 am
Forum: Feature Requests
Topic: Do not require administrator permissions for hosted DevOps tasks
Replies: 3
Views: 8370
 
Jump to post

Re: Do not require administrator permissions for hosted DevOps tasks

Catalin, thanks for your response it explains some of my observations during testing. But I have a couple of other questions related to this.

Ok, Advanced Installer tool is per-machine and requires administrator permissions to install it. Then, I would expect the following workaround to work, which ...
by vpodans
Tue Apr 01, 2025 4:24 pm
Forum: Feature Requests
Topic: Do not require administrator permissions for hosted DevOps tasks
Replies: 3
Views: 8370
 
Jump to post

Do not require administrator permissions for hosted DevOps tasks

We are using Advanced Installer to build installers using Azure DevOps and generally it works like charm!

However, we found a problem when we moved from cloud-hosted to self-hosted agents, when we run build agents on our VMs. We use least privilege principle and didn't grant the agent account ...
by vpodans
Wed Feb 23, 2022 9:56 am
Forum: Common Problems
Topic: Windows service account and upgrades
Replies: 5
Views: 3374
 
Jump to post

Re: Windows service account and upgrades

Understood. Anyway, thanks for assistance!
by vpodans
Tue Feb 22, 2022 10:37 am
Forum: Common Problems
Topic: Windows service account and upgrades
Replies: 5
Views: 3374
 
Jump to post

Re: Windows service account and upgrades

This is very unfortunate behavior. Major upgrade strategy for smaller products is the most convenient way to update the product.

And for many aspects in AI it is possible to define task execution conditions. Services are not changed often even during major upgrades. Service executables -- they may ...
by vpodans
Sat Feb 19, 2022 12:36 pm
Forum: Common Problems
Topic: Display changes of previous version of an project
Replies: 5
Views: 3206
 
Jump to post

Re: Display changes of previous version of an project

disclaimer: I'm not an AI support, just random user of AI

Custom PS scripts aren't encrypted, they are encoded and you can easily recover the script using PowerShell. Copy encoded string from XML tag value to clipboard, then in PowerShell console insert copied base64 string:

$base64 = @"
<paste ...
by vpodans
Fri Feb 18, 2022 3:00 pm
Forum: Common Problems
Topic: Replace uninstaller
Replies: 5
Views: 2813
 
Jump to post

Re: Replace uninstaller

The ProductCode should be the same for the recache operation I've mentioned, not for installing the new MSI over the old MSI.
understood. I have to keep same product ID and upgrade ID in order to re-cache the installer.
by vpodans
Fri Feb 18, 2022 2:30 pm
Forum: Common Problems
Topic: Windows service account and upgrades
Replies: 5
Views: 3374
 
Jump to post

Windows service account and upgrades

Our application installs the Windows service along with install process. By default we configure the service to run under "Network Service" account, it is configured in AI project.

However, we treat this as default installation and recommend (though not requiring) customers to use gMSA service ...
by vpodans
Fri Feb 18, 2022 2:18 pm
Forum: Common Problems
Topic: Replace uninstaller
Replies: 5
Views: 2813
 
Jump to post

Re: Replace uninstaller

Hello Catlin,
thanks for your fast response!

That probably happens because you have changed the ProductCode property and now Windows Installer sees your MSI as an upgrade.
this may happen since we use Azure DevOps pipelines to build the MSI. It appears it re-generates the product code every time ...
by vpodans
Fri Feb 18, 2022 12:31 pm
Forum: Common Problems
Topic: Replace uninstaller
Replies: 5
Views: 2813
 
Jump to post

Replace uninstaller

We have an MSI package which includes custom actions executed during install and uninstall to configure certain things on install and roll back on uninstall. However we detected a major flaw in custom action script executed on uninstall.

My aim is to fix the MSI (only custom action, all other ...
by vpodans
Wed Oct 27, 2021 2:10 pm
Forum: Common Problems
Topic: Installer fails on Windows Server 2022 Server Core
Replies: 3
Views: 10097
 
Jump to post

Re: Installer fails on Windows Server 2022 Server Core

That was it! I have no idea why I tried to call misexec against .exe, must be some mind eclipse.

Go to advanced search