Launching .netcore 3.0 PublishSingleFile after installation - Advanced Installer Community
advg44
Posts: 1
Joined: Thu Nov 14, 2019 10:59 pm

Launching .netcore 3.0 PublishSingleFile after installation

Hello,

I'm trying to run a .net Core 3.0 .exe after installation (launch installed file [placed afterFinish Execution]).

The .exe is compiled with

dotnet publish -r win-x64 -c Release /p:PublishSingleFile=true

compiled.

It is a 32/64 bit mixed installation.
The problem is, the installer seems to start the .exe, but it will be closed after a short time (after the SplashScreen).

Is it possible that Advanced Installer does not wait long enough until the .exe is unpacked (first launch)?

If I start the .exe with a shortcut after the installation, this works without problems.

Some side info: https://dotnetcoretutorials.com/2019/06 ... -core-3-0/
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Launching .netcore 3.0 PublishSingleFile after installation

Hi and welcome to our forums.

I'm not sure why you encounter this problem. The installer only launches the EXE file, so I do not think that the problem is because of the unpacking. Can you use the "Launch file" custom action and see if the behavior is the same? Does it also happen on multiple machines?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”