We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

nirs
Posts: 42
Joined: Wed Aug 13, 2014 2:46 pm

quiet installation errorlevel

Hi,

I am running my app on quiet mode via cmd.
The problem is that both on success and failure the %ERRORLEVEL% is 0.
The log in case failure writes: Installation success or error status: 1603.
In case of successs: Installation success or error status: 0.

Since my app is going to be deployed using automatic deployment tool, it must get the correct %ERRORLEVEL%

Thanks,
Nir
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: quiet installation errorlevel

Hello Nir,

I've tested the scenario but I cannot replicate the behavior. For testing I've used a failing setup and a BAT file with the following content:

Code: Select all

msiexec /i "C:\Users\<username>\Desktop\My_setup.msi" /L*V "C:\Users\<username>\Desktop\log.txt"
echo %errorlevel%
pause
Can you please use a similar BAT file like the above and see if this helps? If not, please give us more details about your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nirs
Posts: 42
Joined: Wed Aug 13, 2014 2:46 pm

Re: quiet installation errorlevel

Hi Daniel,

I tried your solution and it didn't work. I still get errorlevel of 0 (while on the log file it is written Installation success or error status: 1603.)

Can you please try running your application using the following command:
msi_file.msi /quiet /log test.txt

and then test the ERRORLEVEL.

Thanks
nirs
Posts: 42
Joined: Wed Aug 13, 2014 2:46 pm

Re: quiet installation errorlevel

Hi Daniel,

In addition your sample code opens interactive installation while I need quiet installation because it is going to be executed from remote tool (rundeck)
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: quiet installation errorlevel

Hello,

You can see my reply on the "Fail Installation" thread.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”