Hi All,
I am having a small query about the MSI installation,
the below is the function I am using
Function "InstallFalsh9"
DetailPrint "Installing Flash Player Version 9.0.16.0, Please Wait."
SetDetailsPrint none
ExecWait 'MSIEXEC.EXE /i "$EXEDIR\install_flash_player_active_x.msi" /qb- ALLUSERS=2 REBOOT=Suppress"'
SetDetailsPrint both
DetailPrint "Installation For Flash Player Version 9.0.16.0 Complete."
FunctionEnd
I am getting worried If user cancels the installation (msi), how can I detect?
I want somthing like this...
ExecWait 'MSIEXEC.EXE /i "$EXEDIR\install_flash_player_active_x.msi" /qb- ALLUSERS=2 REBOOT=Suppress"'
${If} CanceledByUSer
DetailPrint "Installation aborted."
${Else}
DetailPrint "Installation Complete."
${EndIf}
OR there is a way if you can share
How can I make msi invisible
I tried /qn in place of /qb in the statement below
ExecWait 'MSIEXEC.EXE /i "$EXEDIR\install_flash_player_active_x.msi" /qb- ALLUSERS=2 REBOOT=Suppress"'
but it didn't worked.
Thanks you all guys at NSIS Forum, coz I had learnt many things from your posts in last one week.
Keep Sharing.🙂
Regards,
NBaua.
MSI Installer : Detect user cancelation for msi script
4 posts
ExecWait has an extra parameter.
See it in the manual.
-Stu
See it in the manual.
-Stu
Hi Afrow,
Thanks for the help.
I noticed "$0" for the error which we can trap into an execwait command. However the msi I am running didn't returned me anything. my code is as under
ExecWait 'MSIEXEC.EXE /i "$EXEDIR\install_flash_player_active_x.msi" /qb- ALLUSERS=2 REBOOT=Suppress"' $0
Am I making any mistake?
Please help me on the same ASAP.
One more question for the above line, I wany my MSI to fully disapper, while I am installing it. I tried the /qn tag as MSI option instead of /qb but that doesn't run and shows msi error box.
I assume I am clear to you.
Thanks in advance,
Regards,
NBaua.
Thanks for the help.
I noticed "$0" for the error which we can trap into an execwait command. However the msi I am running didn't returned me anything. my code is as under
ExecWait 'MSIEXEC.EXE /i "$EXEDIR\install_flash_player_active_x.msi" /qb- ALLUSERS=2 REBOOT=Suppress"' $0
Am I making any mistake?
Please help me on the same ASAP.
One more question for the above line, I wany my MSI to fully disapper, while I am installing it. I tried the /qn tag as MSI option instead of /qb but that doesn't run and shows msi error box.
I assume I am clear to you.
Thanks in advance,
Regards,
NBaua.
You've got one too many quotes in the command line at the end.
-Stu
-Stu