Hey,
I had a question does anyone know what could be causing this issue?
Hello,
In my environnement I don’t get this error, 5.0.6 => 5.0.7
You can try to install the msi package with log : msiexec /i “C:\MyPackage\Example.msi” /L*V “C:\log\example.log”
Maybe there is more details on the dll name for example.
Regards
Just a confirmation for troubleshooting sake, did you follow the Upgrading guide?
Were you on a previous version of PSU already? If so, did you uninstall that prior to attempting to install PSU 5.0.7? If not, that is a requirement and could cause your error.
No i only have this version installed
No i have not is this necessary?
Right - @Jesse.Peden brought up the prerequisite point. If it’s an initial install, you do not need to follow the installation guide.
Have you tried using the module installation instead?
Install-Module PowerShellUniversal
Relevant guide can be found here.
Powershell Universal still needs to be installed but i can’t install since i have this DLL issue
Were you able to find any log entries about the installation failing, using the arguments @V.PANNIER provided?
sadly i did not so im still confused what’s wrong
Is your host fully updated with Windows Updates? Do you have it set to update other Microsoft products along with Windows itself (such as .NET Framework, etc.)? If not, that could also be an issue.
Also, you could try installing another version of PSU 5.x first to see if there’s something wrong with that specific installer or if all of them have the same issue.
Okay! i did everything u said here, accept installing a different psu 5.x
Were there missing updates that you had to install?
no, i had no missing updates
What output did you get in the logs generated by the installer when you set the installer to output to a log file?
For example, if you open a command prompt and CD to the directory where your MSI package is located, then run PowerShellUniversal.5.0.7.msi /l* psu_log.txt
what do you get?
You could also try installing it in a Windows Sandbox or other VM instance to see if there is an issue with the computer you are installing it on. May still not work, but due to a lack of corresponding reports I’m suspecting this to be an issue localized to your setup.
Some other basic troubleshooting commands:
dism /online /cleanup-image /startcomponentcleanup
dism /online /cleanup-image /restorehealth
sfc /scannow
Those can be run from directly within PowerShell or CMD on the affected machine.
I’ve just ran across the same issue.
I haven’t used PowerShell Universal before, so we shouldn’t have any issues with older versions of the app on my device. I have also tried installing it in sandbox to no avail.
I have had a look at the log file associated with the installatio (from within the %temp%
directory), but it doesn’t provide any information on what .dll
is actually missing:
Error 1723. There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor. Action CREATESHORTCUT, entry: CreateStartupFolderShortcut, library: C:\WINDOWS\Installer\MSI87BA.tmp
=== Logging stopped: 06/12/2024 09:38:08 ===
The MSI dialogue at the end also mentions reviewing the log file within the %ProgramData%\PowerShellUniversal
directory. All I see within this location is the appsettings.json
no logs.
I am running Windows 11 24H2.
Just wanted to add that I’m experiencing this exact same issue - no specifics on the missing DLL and no log created at %ProgramData%\PowerShellUniversal. Have not used or installed any previous versions of PSU. Hoping for any insight or suggestions!
I’m wondering if this is the result of our custom action not being able to be run. It’s not used by PSU itself but does do some stuff during the install. A full MSI log would be helpful in figuring out what causes this.
The custom action DLL targets 4.7.2 of the .NET Framework so it should be available on all Windows 11 machines.