View Full Version : File not found error when using powershell custom action

10-01-2012, 05:00 AM

I get a file not found error when running a powershell custom action in a Basic MSI project.

MSI (s) (74:04) [10:56:35:798]: Executing op: ActionStart(Name=Test,,)
Action 10:56:35: Test.
MSI (s) (74:04) [10:56:35:799]: Executing op: CustomActionSchedule(Action=Test,ActionType=3137,Source=BinaryData,Target=PS1,)
MSI (s) (74:BC) [10:56:35:801]: Invoking remote custom action. DLL: C:\Windows\Installer\MSIFB11.tmp, Entrypoint: PS1
InstallShield 10:56:35: Beginning Run PowerShell...
InstallShield 10:56:35: Error: File not Found: C:\Kongsberg\SiteCom\LookupService\bin\UpgradeLookupServiceConfiguration.ps1upgradelookupserviceconfigur

The file UpgradeLookupServiceConfiguration.ps1 which is the name of the powershell script file is present on the target machine. From the error message it looks like the filekey is part of the filename when installshield tries to find the file.

Custom Action configuration:
PowerShell Script FileKey: upgradelookupserviceconfigur
Return Processing: Synchronous (Ignores exit code)
In-Script Execution: Deferred Execution in System Context
Install Exec Sequence: After PatchFiles