Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set-ExecutionPolicy RemoteSigned not working - Unrestricted works #6

Closed
wrljet opened this issue Oct 22, 2023 · 3 comments
Closed

Set-ExecutionPolicy RemoteSigned not working - Unrestricted works #6

wrljet opened this issue Oct 22, 2023 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@wrljet
Copy link
Owner

wrljet commented Oct 22, 2023

arfineman reports:

Hi Bill,
Thank you for putting this together. It is a life saver for computer illiterates like me. I was able to do a build about a year ago on Windows 10 and was successful. But I tried to build a new one on the same PC and it did not work. After setting the execution-policy to remotesigned, I still got a message from PowerShell it it would not load the Hyperion-Buildall because it is not digitally signed. However, after doing some google searches, I set it to 'unrestricted' and it worked. I thought you may want to mention that in the instructions.
My question now is that if I want to make a modification to one of the .c modules and recompile, how can I do that ? If at all possible.
Best regards,

@wrljet
Copy link
Owner Author

wrljet commented Oct 22, 2023

Aaron,

I think you might have missed this snippet in the instructions:

Sometimes when files are copied to Windows, it will decide they have come from an untrusted remote system,
and a directory bit will be set to remember this fact. This will cause Windows to not allow them to be executed.

Right-click on the hercules-helper.zip file and select Properties. At the bottom ofthe Properties dialog, 
you may see a warning about the file coming from a remote system. Click the button to Unblock the file. 
Close this dialog.

If you do this I doubt you'll need unrestricted, which is more dangerous.

To answer your other question... hercules-buildall.ps1 creates a DOS batch file called rebuild.cmd.
Run that from a DOS command prompt and it'll redo just the compile part of the process for you.

You should examine it before running to verify the paths, etc. are what you want.

Bill

@wrljet wrljet self-assigned this Oct 22, 2023
@wrljet wrljet added the documentation Improvements or additions to documentation label Oct 22, 2023
@arfineman
Copy link

Thanks so much, Bill.
This worked great. I was actually able to use your instructions and update my Windows 7 PowerShell and do the build on my Windows 7.
Best regards,

@wrljet
Copy link
Owner Author

wrljet commented Oct 24, 2023

Great! I'm glad it all worked for you.

Bill

@wrljet wrljet closed this as completed Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants