Hello Tech Support,
I am running an exe installer with a "Run Powershell Script File" custom action which is intended for upgrading a SQL database.
My installer places a folder with different files in it on my Desktop which includes a Zip file (named "HF1.zip") that my Powershell ISE script intends to unzip and extract in the process of installation.
However, the Zip file will not allow the Powershell script to extract from it, and I get an error in the log that says "ERROR: Access to the path 'HF1' is denied."
I tested just installing the folder to my Desktop, without the custom action, and manually running the Powershell script. That worked, but only when I ran the Powershell script as an Administrator. If I didn't run it as Administrator, I got the same error.
I'm suspecting this is a permissions/rights issue??
I re-added the custom action and tried using the "Run under the LocalSystem account with full privileges (no impersonation)" checkbox, but that gave me another error that I don't want - "Cannot open database "<database name>" requested by the login. The login failed.
Login failed for user 'NT AUTHORITY\SYSTEM'."
How can I run my Powershell script that needs to extract from a Zip file?
FOLLOW US
Get the latest news in Application Packaging