m.qayyum
Posts: 32
Joined: Thu Jul 30, 2015 5:15 pm
Contact: Website

Auto Close Applications not restarting app

Hi I have setup an updater for my software and check update by running updater.exe with following arguments

string filename = System.IO.Path.Combine(Application.StartupPath, "updater.exe");
var proc = System.Diagnostics.Process.Start(filename, string.Format("\"{0}\" \"{1}\" \"{2}\"", "/silentall", "-nofreqcheck", "-nogui"));

It installs the update fine but does not restart the main app that I setup in updater's Auto Close Applications tab.

Image
m.qayyum
Posts: 32
Joined: Thu Jul 30, 2015 5:15 pm
Contact: Website

Re: Auto Close Applications not restarting app

Tried to launch the file from within installer's custom actions but still its not starting. I have added /qn argument in updater to make it silent.
m.qayyum
Posts: 32
Joined: Thu Jul 30, 2015 5:15 pm
Contact: Website

Re: Auto Close Applications not restarting app

I have purchased the Advanced installer professional version, if that makes someone answer me quickly here.
Thanks
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: Auto Close Applications not restarting app

Hello,

I have tried to reproduce your scenario and everything worked fine.

In order for us to further investigate, can you please send us the .aip files (project files) of the following:
1) Old Product .aip.
2) Update Configuration Project .aip.
3) New Product .aip.

Please send the files mentioned above by e-mail at support at advancedinstaller dot com.

Also, if you could share with us the download links for the old and the new version, that would be very useful.

Regards,
Catlain
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
m.qayyum
Posts: 32
Joined: Thu Jul 30, 2015 5:15 pm
Contact: Website

Re: Auto Close Applications not restarting app

I have sent the email with three (aip) project files. Thanks
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: Auto Close Applications not restarting app

Hello,

First of all, the project you have sent me is different from the picture you have attached in your first post. Please keep in mind that it is recommended to use the "Windows Title Prefix".

Also, please keep in mind that the restart could fail if the application does not support a command line such as "/autoStart".

Outside of those mentioned above, everything seems fine in the sent projects.

If this does not help, can you please try to isolate the behavior in a buildable sample (.aip + its referenced files) which we can build and test on our side ?

Regards,
Catlain
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
m.qayyum
Posts: 32
Joined: Thu Jul 30, 2015 5:15 pm
Contact: Website

Re: Auto Close Applications not restarting app

Hi, thanks for checking.

I will try your suggestions and report back, space in exe name is not an issue?
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: Auto Close Applications not restarting app

Hello,
...space in EXE name is not an issue?
No, that is not an issue.

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

Return to “Common Problems”