Hi,
I need to install a powershell module.
Ir requires to install the package provider Nuget
I created a ps script called "installHL7Tools.ps1" :
Install-PackageProvider -Name Nuget -Force
Install-Module -Force HL7Tools
I need the first line, 'cause I'm not sure the Nuget is installed on the final computer.
In mu innosetup file, I have !
[Files]
Source: "installHL7Tools.ps1"; DestDir: "{tmp}"
[Run]
Filename: "powershell.exe"; Parameters: "-ExecutionPolicy Bypass -File ""{tmp}\installHL7Tools.ps1"""; WorkingDir: {tmp}; Flags : runascurrentuser
Of course, my setup is run with admin privileges.
If I run installHL7Tools.ps1 from a powershell console window as admin, it works
But, if I run it thru my install kit , I don't find the package when I check it in a power shell console window.
What's wrong ?
Thx