Hence why writing a batch wrapper, which can easily be launched "as
Administrator" will avoid any issues with the PowerShell execution policy.
You simply bypass it. ;-)

 

*         .NET 3.5 SP1 is built into Windows 7

*         PowerShell 2.0 is built into Windows 7

 

Nothing to worry about there. If you're still running an OS pre-Windows 7 ..
'eh, I wouldn't support that. Microsoft doesn't even support XP. :)

 

Cheers,

Trevor Sullivan

Microsoft PowerShell MVP

 

From: [email protected] [mailto:[email protected]]
On Behalf Of Nash Pherson
Sent: Monday, July 28, 2014 11:11 AM
To: [email protected]
Subject: RE: [mssms] OT: Need a software packing app

 

Ok, between what Daniel put out and why Ryan Ephgrave said to me, you could
make:

 

A self-extracting executable containing all your files,

which runs powershell bypassing the execution policy,

which prompts to relaunch elevated,

and then installs your dependencies and applications.

 

 

Not sure that PS2EXE would work for you.  Ryan points out it requires .NET
and the execution policy to be set.

 

 

 

 

 

From: [email protected] <mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Daniel Ratliff
Sent: Monday, July 28, 2014 11:01 AM
To: [email protected] <mailto:[email protected]> 
Subject: RE: [mssms] OT: Need a software packing app

 

PS2EXE works pretty well. It's a powershell wrapper for a powershell script.
I think it uses c# to compile. 

 

http://ps2exe.codeplex.com/ 

 

The biggest issue I see on the target machines is the PowerShell version
level, depending on what needs to be done. 

 

Any XP machines with no PowerShell? If the environment is Win7 or higher you
are golden. 

 

Daniel Ratliff 

 

From: [email protected] <mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Nash Pherson
Sent: Monday, July 28, 2014 11:55 AM
To: [email protected] <mailto:[email protected]> 
Subject: RE: [mssms] OT: Need a software packing app

 

> . You simply call

 

Trevor - He isn't the one calling it, the end user is.  He needs a packaged
application to distribute so the user ran just download the binary and
double click on it.  These are not managed computers.

 

 

 

 

 

From: [email protected] <mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Trevor Sullivan
Sent: Monday, July 28, 2014 10:51 AM
To: [email protected] <mailto:[email protected]> 
Subject: RE: [mssms] OT: Need a software packing app

 

Nash,

 

Script execution policy is a non-issue. You simply call (from a batch
wrapper):

 

powershell.exe -ExecutionPolicy Bypass -File "%~dp0%\MyScriptFile.ps1"; 

 

Cheers,

Trevor Sullivan

Microsoft PowerShell MVP

 

From: [email protected] <mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Brandon Linton
Sent: Monday, July 28, 2014 10:46 AM
To: [email protected] <mailto:[email protected]> 
Subject: RE: [mssms] OT: Need a software packing app

 

That makes more sense but I wouldn't completely agree that Powershell still
isn't a good fit depending on his needs.  Powershell DSC is very powerful
and if done properly the user wouldn't even know he was working with any
scripts etc.

 

http://technet.microsoft.com/en-us/library/dn249912.aspx

 

Thanks,

Brandon A. Linton | Sr. Consultant | [email protected]
<mailto:[email protected]>  | Work 484.323.7205 

 

From: [email protected] <mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Nash Pherson
Sent: Monday, July 28, 2014 11:42 AM
To: [email protected] <mailto:[email protected]> 
Subject: RE: [mssms] OT: Need a software packing app

 

> make available for download to our customers (outside of ConfigMgr),


Mike is trying to make a software package for people to install on their own
machines which are not managed by the organization.

 

> PowerShell is free and built-in.

 

As these are not managed devices, having end users deal with script
execution policies seems like a bad idea, and spending money on a public
cert seems like moving in the wrong direction.

 

 

Mike - I'd give the trial with Advanced Installer a shot.  For what you
need, I think it is the right features/price.  If it doesn't work for you,
Flexera offers a trial as well, but that is much more expensive and has a
lot that you don't need.

 

I hope that helps,

 

 

Nash

  

 

 

From: [email protected] <mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Brandon Linton
Sent: Monday, July 28, 2014 10:36 AM
To: [email protected] <mailto:[email protected]> 
Subject: RE: [mssms] OT: Need a software packing app

 

Even more so I am confused as this is built in to ConfigMgr 2012 in the
Application Model.  Why would you not want to use that assuming CM12?  But
yes to Trevor's point Powershell works well for this as well.

 

Thanks,

Brandon A. Linton | Sr. Consultant | [email protected]
<mailto:[email protected]>  | Work 484.323.7205 

 

From: [email protected] <mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Trevor Sullivan
Sent: Monday, July 28, 2014 11:33 AM
To: [email protected] <mailto:[email protected]> 
Subject: RE: [mssms] OT: Need a software packing app

 

PowerShell is free and built-in.

 

Cheers,

Trevor Sullivan

Microsoft PowerShell MVP

 

From: [email protected] <mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Murray, Mike
Sent: Monday, July 28, 2014 10:08 AM
To: [email protected] <mailto:[email protected]> 
Subject: [mssms] OT: Need a software packing app

 

Hey folks,

 

We have an application we want to make available for download to our
customers (outside of ConfigMgr), but it requires another app to be
installed along with it (the installer would check to see if app A exists
already, if not, it would install it). I'm looking for an easy packager app
that can handle prerequisites, and is fairly inexpensive/cheap. I'm looking
at Advanced Installer, I think the Professional license should cover what we
need.

 

Any other suggestions?

 

 

Best Regards,

 

Mike Murray

Desktop Management Coordinator - IT Support Services

California State University, Chico

530.898.4357
 <mailto:[email protected]> [email protected]

 

 

 

 

 

 

 

 


The information transmitted is intended only for the person or entity to
which it is addressed
and may contain CONFIDENTIAL material. If you receive this
material/information in error,
please contact the sender and delete or destroy the material/information.

 

 



Reply via email to