PrimalScript 2009 Packager not launching exe's

Use this forum to ask questions before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
User avatar
obiwein
Posts: 18
Joined: Mon Dec 14, 2009 1:57 am

PrimalScript 2009 Packager not launching exe's

Post by obiwein » Fri Jan 29, 2010 5:53 am

Created a new Powershell script with only one line to test the packager out.
The line is:
get-user jsmith

Created a script package. The created script.exe does not launch.

Powershell.exe does launch from the Start-Run area on the same machine.

Are there files other than the test.ps1 that have to be added to the script in order to get it to launch?
What should the engine type be?
What is the difference between using STA and not?

Thanks.

User avatar
Alexander Riedel
Posts: 6861
Joined: Tue May 29, 2007 4:43 pm

PrimalScript 2009 Packager not launching exe's

Post by Alexander Riedel » Fri Jan 29, 2010 6:13 am

Which engine did you actually specify?
When you say "does not launch", do you get an error message?
STA refers to the threading model, vs. MTA. Not important unless you do Windows Forms with it.
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
obiwein
Posts: 18
Joined: Mon Dec 14, 2009 1:57 am

PrimalScript 2009 Packager not launching exe's

Post by obiwein » Fri Jan 29, 2010 6:23 am

So MTA used when a form is involved?

The error is:
This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.

I've tried basically all the engine types for PowerShell. Unsure which would be which and what the difference is between the choices.

User avatar
Alexander Riedel
Posts: 6861
Joined: Tue May 29, 2007 4:43 pm

PrimalScript 2009 Packager not launching exe's

Post by Alexander Riedel » Fri Jan 29, 2010 6:49 am

What OS is this? 64/32 bit?
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
Alexander Riedel
Posts: 6861
Joined: Tue May 29, 2007 4:43 pm

PrimalScript 2009 Packager not launching exe's

Post by Alexander Riedel » Fri Jan 29, 2010 6:56 am

Wait a second. Where is "get-user" from?
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
obiwein
Posts: 18
Joined: Mon Dec 14, 2009 1:57 am

PrimalScript 2009 Packager not launching exe's

Post by obiwein » Fri Jan 29, 2010 7:02 am

Running on Windows XP 32bit.

Get-User is just a powershell command. Ultimately though we'd want to be using Exchange and Quest addons for PowerShell and have them all packaged in as well.

User avatar
Alexander Riedel
Posts: 6861
Joined: Tue May 29, 2007 4:43 pm

PrimalScript 2009 Packager not launching exe's

Post by Alexander Riedel » Fri Jan 29, 2010 7:23 am

Get-user is not a standard PowerShell cmdlet, neither from V1 or V2.
If you use snapins you need to load them in your script since packages do not process any profiles to avoid dependencies on specific machines.

If you package with one of the command line package types, please understand that you need to launch the exe from a console window. Otherwise you see a brief console flashing at best.

If you use the Windows package type, you need to create a form or a window of some kind, otherwise it won't do much.
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
obiwein
Posts: 18
Joined: Mon Dec 14, 2009 1:57 am

PrimalScript 2009 Packager not launching exe's

Post by obiwein » Fri Jan 29, 2010 7:58 am

Changed the script to now be:

Add-PSSnapin quest.activeroles.admanagement
Add-PSSnapin *exchange*
get-user benw

Packaged it again. Still no good. Same error.

Do I need to add those files somehow? Where would I maybe find them and how would they added to the package?

User avatar
obiwein
Posts: 18
Joined: Mon Dec 14, 2009 1:57 am

PrimalScript 2009 Packager not launching exe's

Post by obiwein » Fri Jan 29, 2010 8:02 am

Also tried a script with only:
Get-Date

Same issue.

User avatar
Alexander Riedel
Posts: 6861
Joined: Tue May 29, 2007 4:43 pm

PrimalScript 2009 Packager not launching exe's

Post by Alexander Riedel » Fri Jan 29, 2010 8:45 am

Please zip the exe you produced and email it to support@sapien.com
Alexander Riedel
SAPIEN Technologies, Inc.