Silent Installer - Advanced Installer Community
pankaj.garg29
Posts: 12
Joined: Tue May 05, 2015 9:33 am

Silent Installer

Hi,

We are using Advance installer 11.5.1 version.

We have created a installer (.exe) and we want to install the application silently. We used command line "msiexec /i application.exe" but it is not installing the application and does not give any error.

However if i am creating application.msi then it is installing with command line switch.

1. Am i doing anything wrong with the exe?

2. We want to start the application after silent install, how can we achieve this?

Thanks & Regards
P
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Silent Installer

Hello,

We have created a installer (.exe) and we want to install the application silently. We used command line "msiexec /i application.exe" but it is not installing the application and does not give any error.
For .EXE, there is no need of msiexec.exe /i command line. Just type the name of your .exe using the /qn swich for silent installation. Please take a look on our How do I create a silent installation package? article with related information for hints and guidance.
2. We want to start the application after silent install, how can we achieve this?
In order to achieve this, you can follow the steps from the The user cannot decide if the file will be launched article.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pankaj.garg29
Posts: 12
Joined: Tue May 05, 2015 9:33 am

Re: Silent Installer

Hi Dan,

Thanks for your reply.

We are able to achieve both things and working fine. Thanks.

However we are getting new set of problems.

1. After installation application started successfully but when i close or exit the application it uninstall the application as well. I don't know why.
2. We want the application should start after machine restart , we have added in startup folder from advance installer but it is not starting.


Thanks & Regards
P
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Silent Installer

Hello,
1. After installation application started successfully but when i close or exit the application it uninstall the application as well. I don't know why.
This may happens if the installer is still running and the return code of your application is different than 0. Note that custom actions that are executable files must return a value of 0 for success. The installer interprets any other return value as failure.

In this case, can you please disable the Fail installation if custom action returns an error option from the Custom Actions properties. This way, the installer will not fail.
2. We want the application should start after machine restart , we have added in startup folder from advance installer but it is not starting.
Adding the shortcut to your application in the Startup folder from Advanced Installer should make the trick. In this case, can you please check if the shortcut was added in the C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup path after the installation ?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”