Page 1 of 1

System cannot execute specified program

Posted: Wed Mar 13, 2013 12:37 pm
by clum09
Hello,

I have PrimalScript 2009. When I packaged the Vbscript into a self-executable file, the packaged script execution failed with the error "The System cannot execute the specified program."

What can I do to fix this problem?

Thank you in advance.

Re: System cannot execute specified program

Posted: Wed Mar 13, 2013 1:07 pm
by davidc
Please answer the following questions:

1. What version of PrimalScript 2009 are you using?
2. What OS?
3. Are you using alternate credentials?


David

Re: System cannot execute specified program

Posted: Fri Apr 19, 2013 8:47 am
by clum09
David,

The problem occurred because when I packaged the script, I had the file version and product version not matching each other.

For example, the file version was 1.2.0.1 and the product version was 1.2 only. For some reason, this caused the "System cannot execute specified program" error in all Windows platforms, XP, Windows Server 2003, and Windows Server 2008.

Once I changed the product version number to match the file version, the error went away. However, found this to be a bug in the PrimalScript since this should not happen. I don't know this is the case with PrimalScript 2012 or not.

Thanks.

Re: System cannot execute specified program

Posted: Fri Apr 19, 2013 9:24 am
by davidc
The manifest / Windows requires that you set the version number in the packager as #.#.#.# format. Otherwise Windows is not happy and will refuse to run the exe.

David