Search found 91 matches

Go to advanced search

by sasha
Mon Sep 28, 2026 7:07 pm
Forum: Common Problems
Topic: Problems running PowerShell scripts
Replies: 4
Views: 1980
 
Jump to post

Re: Problems running PowerShell scripts

Perhaps - for the future - AI could add a new PowerShell-based CA that implements your suggestion of using the -Command?
Basically, an inline script that is launched not via dot-source, but using your proposed workaround.

Thanks,
.a
by sasha
Mon Sep 28, 2026 5:31 pm
Forum: Common Problems
Topic: Problems running PowerShell scripts
Replies: 4
Views: 1980
 
Jump to post

Re: Problems running PowerShell scripts

Thanks for the reply, Liviu.

The inline scripts are used mostly to set various internal properties. So, invoking the external scripts via powershell.exe may not work well, I suspect.

Looks like I will need to convert them all to 'native' CAs invoked from a DLL.
Thanks,
.a

p.s. it's rather ironic ...
by sasha
Thu Sep 24, 2026 6:49 pm
Forum: Common Problems
Topic: Problems running PowerShell scripts
Replies: 4
Views: 1980
 
Jump to post

Problems running PowerShell scripts

Hello!

Our installer is using inline PS scripts (and at one point an external PS script).
Reports started coming in about installer failure.
The reason turned out to be tightly locked-down environments where the PowerShell is running in the Restricted or Constrained language mode.

Here is a ...
by sasha
Tue Apr 28, 2026 3:47 am
Forum: Common Problems
Topic: Visual C++ prerequisites - to be installed silently
Replies: 5
Views: 18995
 
Jump to post

Re: Visual C++ prerequisites - to be installed silently

Dear Catalin,

thanks for the reply and sorry about a delayed response.

I didn't mean the UAC, but rather the installer dialog changing into the one showing the VC++ redistributable with the checkmark prompting to install it.

Fortunately, as I started working on creating a reproducible .aip, I ...
by sasha
Fri Apr 10, 2026 7:10 pm
Forum: Common Problems
Topic: A truly strange issue
Replies: 1
Views: 15220
 
Jump to post

A truly strange issue

Hello,

before I describe the issue, I have to state that I am of sound mind and don't believe in miracles.

Now, I am seeing a really strange issue. We have a PowerShell script that is executed via the 'run powershell script file' custom action. In the script, a few properties are read and set.
I ...
by sasha
Fri Apr 10, 2026 6:59 pm
Forum: Common Problems
Topic: Visual C++ prerequisites - to be installed silently
Replies: 5
Views: 18995
 
Jump to post

Re: Visual C++ prerequisites - to be installed silently

Dear Liviu,

unfortunately, I can't supply the .aip file. I'll see if I can come up with a reduced/new .aip.
by sasha
Wed Apr 01, 2026 7:54 pm
Forum: Common Problems
Topic: Visual C++ prerequisites - to be installed silently
Replies: 5
Views: 18995
 
Jump to post

Visual C++ prerequisites - to be installed silently

Hello!

I have recently added installation of the VC++ redistributables to our installer. I have specified the /q /norestart to all 3 types if installation (on the 'Installation' page).
I expected that the installation would always be silent. Alas, when running with the full UI, there is the prompt ...
by sasha
Wed Apr 01, 2026 7:36 pm
Forum: Common Problems
Topic: Azure Artifact Signing with AI
Replies: 3
Views: 13568
 
Jump to post

Re: Azure Artifact Signing with AI

Thanks, Catalin.

The issue mentioned in the thread you linked is exactly what I see. Our Jenkins agents are hosted in Azure. Maybe there is some strange interaction.
I agree, this is something that MSFT should ultimately fix. Meanwhile - workarounds :)
by sasha
Fri Mar 27, 2026 10:11 pm
Forum: Common Problems
Topic: Azure Artifact Signing with AI
Replies: 3
Views: 13568
 
Jump to post

Azure Artifact Signing with AI

Hello!

We recently switched to the AAS for our signing needs. A part of signing is done by our build scripts using signtool.exe. Another part is performed by Advanced installer.

One thing I noticed with AAS is that on occasion, signtool.exe will simply hang. It will never exit (I've not tried ...
by sasha
Tue Mar 10, 2026 1:20 am
Forum: Common Problems
Topic: Installer allows a tampered script
Replies: 22
Views: 23571
 
Jump to post

Re: Installer allows a tampered script

Thanks, Catalin.

I do use the 'attached script' in some places and 'inline PS script' in other places.
The thing is that the inline PS script sources the temporary file via the dot operator.


$script = $param

. $script
# some PS code before calling a function from the temporary PS script file ...
by sasha
Wed Mar 04, 2026 1:12 am
Forum: Common Problems
Topic: Installer allows a tampered script
Replies: 22
Views: 23571
 
Jump to post

Re: Installer allows a tampered script

I just gave it a try.

Started the installer, found the .ps1 file extracted into the temp folder. Opened it - it's signed.
Modified the file, including deleting a part of the signature block.
Proceeded with the installation. It went without a hitch.

I suppose the reason for that is that this temp ...
by sasha
Tue Mar 03, 2026 7:35 pm
Forum: Common Problems
Topic: Installer allows a tampered script
Replies: 22
Views: 23571
 
Jump to post

Re: Installer allows a tampered script

yes, I noticed that.
by sasha
Fri Feb 27, 2026 9:45 pm
Forum: Common Problems
Topic: Installer allows a tampered script
Replies: 22
Views: 23571
 
Jump to post

Re: Installer allows a tampered script

I see that v23.5 has implemented the integrity check now.
Thanks.
by sasha
Wed Jan 21, 2026 2:11 am
Forum: Common Problems
Topic: PowerShell custom actions behave differently
Replies: 6
Views: 10614
 
Jump to post

Re: PowerShell custom actions behave differently

Thanks for the reply, Catalin. I'll see if I can move the CA to the place where the temp file is available or I really need it earlier.

Go to advanced search