Skip to content

add powershell wrapper for the Windows installer#1746

Closed
ebr wants to merge 2 commits into
invoke-ai:mainfrom
ebr:win-powershell-install
Closed

add powershell wrapper for the Windows installer#1746
ebr wants to merge 2 commits into
invoke-ai:mainfrom
ebr:win-powershell-install

Conversation

@ebr
Copy link
Copy Markdown
Contributor

@ebr ebr commented Dec 3, 2022

proposal / for discussion

hoping 🤞 for a "pipe to bash" equivalent on Windows, to put this activity "on rails" such that there's less room for user error.

Requires testing by someone on a Windows system with antivirus enabled, in Powershell, by copying and pasting this command:

Invoke-WebRequest -Uri https://raw.githubusercontent.com/invoke-ai/InvokeAI/1acba80e6691b5b0a81377366228c9d9e8232f71/source_installer/Install.ps1 -UseBasicParsing -OutFile Install.ps1; .\Install.ps1

If that pans out, such command can be added to documentation, for a curl | bash -c -like experience (yuck, but it does help)

hoping 🤞 for a "pipe to bash" equivalent on Windows,
to put this activity "on rails" such that there's less room for user error.
Copy link
Copy Markdown
Collaborator

@lstein lstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to help out with this one, but I don't feel comfortable enough in the Windows powershell environment to feel qualified to review. I'd suggest @hipsterusername and @tildebyte as suitable reviewers.

@tildebyte
Copy link
Copy Markdown
Contributor

Requires testing by someone on a Windows system with antivirus enabled, in Powershell

I'm happy to try it, but I don't (and won't) use a 3rd-party AV

@tildebyte
Copy link
Copy Markdown
Contributor

So far, so good, with a minor syntactical caveat:

Suggestion [3,General]: The command Install.ps1 was not found, but does exist in the current location.
PowerShell does not load commands from the current location by default.
If you trust this command, instead type: ".\Install.ps1".
See "get-help about_Command_Precedence" for more details.

retrying with the suggested fix works as expected

@ebr
Copy link
Copy Markdown
Contributor Author

ebr commented Dec 3, 2022

thx @tildebyte, I updated the command in the PR description. maybe we could ask someone in Discord to give this a try?

@ebr
Copy link
Copy Markdown
Contributor Author

ebr commented Dec 5, 2022

Not sure if it's still relevant, and I did ask someone in Discord to try it and they never did... But either way, this approach can be reused for the binary installer.

@ebr
Copy link
Copy Markdown
Contributor Author

ebr commented Dec 12, 2022

this is probably not going to be useful; closing and can reopen if we so decide

@ebr ebr closed this Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants