Powershell Unhide Folder

powershell

I am using PowerShell App Toolkit to package up an application deployment. I am uninstalling previous version and installing the new version.

The issue is that the uninstaller is a hidden folder in:

C:\Program Files (x86)\InstallShield Installation Information\{9A558293-3B60-4C8F-8FAF-80A1DBC4512B}

What command can I add to Unhide the uninstall folder before kicking in the Pre-Installation Step?

Pre-Installation Step:

Execute-Process -Path "$envProgramFilesX86\InstallShield Installation Information\{FFF49E64-0ACC-4CC0-8E37-BAE63AACF1C5}\setup.exe" -Parameters "-runfromtemp -l0x0409  -removeonly"

Thanks!

Best Answer

If you are just trying to see the file you could use:

Get-ChildItem -Force

Otherwise, you can use attrib to change the attributes:

attrib "C:\Program Files (x86)\InstallShield Installation Information{9A558293-3B60-4C8F-8FAF-80A1DBC4512B}\setup.exe" -s -h