Git Product home page Git Product logo

Comments (2)

MScholtes avatar MScholtes commented on August 16, 2024 1

Hello Sheehand,

I am a big fan of free software, so PS2EXE itself is free. I am reluctant to make the compilations generated by PS2EXE closed source.

There may be situations where this makes sense. Please replace the expression s.StartsWith("-extract", StringComparison.InvariantCultureIgnoreCase) in PS2EXE.ps1 with the expression false then the parameter -extract is gone for future compilations.

Greetings

Markus

PS: You can pass parameters to the generated EXE like you would do to the PowerShell script. The only restriction is that for all executables all parameters have the type STRING, if there is no implicit conversion for your parameter type you have to convert explicitly in your script.

PPS: Please do not put two requests into one issue.

from ps2exe.

sheehand avatar sheehand commented on August 16, 2024

I'm not sure I follow you on on PS2EXE being free in relation to asking how to block easy extraction of the imbedded PS1 file.

The reason for asking for this is some users try to be too smart for their own good and part of the reason for handing them an EXE file in the first place is so they can't shoot themselves in the foot by messing with a script. I see online there are ways to still extract a script from an EXE (even w/o the -Extract parameter) if they really wanted to go that far, I just didn't want to hand them an easy switch to do it.

I will try the script modification of $False, thank you for that help.

As for the two requests, I thought they were related as they were both parameters being passed to the EXE. My apologies for breaking protocol here by lumping them together. I think I follow you on the second part but if not I will spin up a new issue just for that.

from ps2exe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.