setup ended prematurely - Advanced Installer Community
tbdev
Posts: 5
Joined: Wed Nov 20, 2019 4:04 pm

setup ended prematurely

Hi,

On some systems (Win7 VM in this case) I'm getting an error during installation that the "setup ended prematurely". It's a 32 bit setup and it works fine on several 64 bit machines besides on the Win7 one.

Any ideas? Log and aip attached.

Thank you,
Michel
Attachments
install.log
(253.44 KiB) Downloaded 249 times
setup.aip
(214.71 KiB) Downloaded 247 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: setup ended prematurely

Hi Michel,

Looking over your log file it seems there is the "PowerShellScriptInline" custom action that fails on the related machine.

You could try to manually run the custom action code on the related machine and try to further troubleshoot its code or source of error.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tbdev
Posts: 5
Joined: Wed Nov 20, 2019 4:04 pm

Re: setup ended prematurely

You are right. When trying to execute the ps1 script I got the error:

Code: Select all

File C:\tmp\movereports.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.
At line:1 char:18
+ .\movereports.ps1 <<<<  -InstallPath "C:\temp\"
    + CategoryInfo          : NotSpecified: (:) [], PSSecurityException
    + FullyQualifiedErrorId : RuntimeException
And solved it with the power shell command

Code: Select all

Set-ExecutionPolicy RemoteSigned
Further read on stackoverflow.

Thank you,
Michel
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: setup ended prematurely

Hello,

Thank you for your followup on this and for sharing your solution with us.

I am sure this will be of help for further users facing a similar scenario.

Also, we're glad you got this working.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tbdev
Posts: 5
Joined: Wed Nov 20, 2019 4:04 pm

Re: setup ended prematurely

Sure. Any time.
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: setup ended prematurely

Just let us know if you have any other questions and we will be glad to assist. :)

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”