Compiled .ps1 script to EXE not working.
Posted: Mon Feb 08, 2016 8:38 am
Product, version and build: 4.2.99
32 or 64 bit version of product: 64bit
Operating system: Windows 8.1 Patched current
32 or 64 bit OS: 64bit
I have been working on a script and when I compile it, it appears to compile fine. It is adding an elevated Manifest regardless of what I select in the build settings.
I have tried with "Create an application without Manifest", "Embed a default Manifest", "Embed a default Manifest for elevation".
What I actually need is "Embed a default Manifest for elevation", but when I compile using that option or "Embed a default Manifest" I receive the following error message when trying to run the EXE.
It is a dialog box, first line is the pathto\exename.exe I ran followed by:
I have also tried to build a .config file and without a .config file with no difference...
And finally, I can build a running exe if I select, "Create an application without Manifest", but again it defaults to an Admin Manifest, and I am still trying to find out why without specifying.
and even though that EXE runs successfully, after it runs I receive the following dialog box:
Please help...
Thanks,
Brian
32 or 64 bit version of product: 64bit
Operating system: Windows 8.1 Patched current
32 or 64 bit OS: 64bit
I have been working on a script and when I compile it, it appears to compile fine. It is adding an elevated Manifest regardless of what I select in the build settings.
I have tried with "Create an application without Manifest", "Embed a default Manifest", "Embed a default Manifest for elevation".
What I actually need is "Embed a default Manifest for elevation", but when I compile using that option or "Embed a default Manifest" I receive the following error message when trying to run the EXE.
It is a dialog box, first line is the pathto\exename.exe I ran followed by:
When I investigate the application event log, there is an error entry stating:The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
I obfuscated the username and exe name above.Activation context generation failed for "C:\Users\<UserNAME>\Documents\SAPIEN\Files\<EXEName>.exe".Error in manifest or policy file "C:\Users\<UserName>\Documents\SAPIEN\Files\<EXEName>.exe" on line 2. Invalid Xml syntax.
I have also tried to build a .config file and without a .config file with no difference...
And finally, I can build a running exe if I select, "Create an application without Manifest", but again it defaults to an Admin Manifest, and I am still trying to find out why without specifying.
and even though that EXE runs successfully, after it runs I receive the following dialog box:
I can provide the script and/or any exe upon any Sapien request...This program might not have installed correctly
If this program didn't install correctly, you can try installing the program using compatibility settings.
<Selectable option>Install using compatibility settings
<Selectable option>This program installed correctly
Please help...
Thanks,
Brian