Installation successful prompt coming before actual installation completion
Installation successful prompt coming before actual installation completion
Hello, I have one software package which will take 10 min to install completely but when I am testing that package in package editor that time "Installation completed successfully" this prompt is coming within 10 sec , it should come after 10 min when installation will complete successfully, how to write command to give that prompt after installation done ?
-
- Moderator
- Posts: 8047
- Joined: 13. Dec 2004, 23:10
- Location: Adendorf/Lüneburg
Re: Installation successful prompt coming before actual installation completion
Sounds like you run an external installation EXE like setup.exe.
Did you start it with a CALL statement?
Please post that script section.
Did you start it with a CALL statement?
Please post that script section.
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.
Re: Installation successful prompt coming before actual installation completion
Below is my script -
[Product]
; ReplaceEnv <Variable>
#Set:CleanUp,DONTDELETE
#Reg:Product
#Set:Product
#Set:Config,DONTDELETE
#Set:Installation, DONTDELETE
#Set:Deinstallation, DELETE
#Reg:OnUninstallProduct, DELETE
#Ini:Product
#Security:Product
[Set:Product]
If DoesRegKeyExist ("HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MATLAB R2023a,UnInstallString") == "1" Then "Set:Repair" Else "Set:Installation" EndIf
[Set:Installation]
AddMeter -1
CallHidden CMD /C copy "%Src%\Files\license.dat" "C:\" /Y
Call "%Src%\Files\setup.exe" -inputFile %Src%\Files\installer_input.txt
If "%Errorlevel%" == "3010" Then "RebootRequired" Endif
If "%ErrorLevel%" <> "0" & "%ErrorLevel%" <> "3010" Then "Set:InstallationError" EndIf
[Product]
; ReplaceEnv <Variable>
#Set:CleanUp,DONTDELETE
#Reg:Product
#Set:Product
#Set:Config,DONTDELETE
#Set:Installation, DONTDELETE
#Set:Deinstallation, DELETE
#Reg:OnUninstallProduct, DELETE
#Ini:Product
#Security:Product
[Set:Product]
If DoesRegKeyExist ("HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MATLAB R2023a,UnInstallString") == "1" Then "Set:Repair" Else "Set:Installation" EndIf
[Set:Installation]
AddMeter -1
CallHidden CMD /C copy "%Src%\Files\license.dat" "C:\" /Y
Call "%Src%\Files\setup.exe" -inputFile %Src%\Files\installer_input.txt
If "%Errorlevel%" == "3010" Then "RebootRequired" Endif
If "%ErrorLevel%" <> "0" & "%ErrorLevel%" <> "3010" Then "Set:InstallationError" EndIf
-
- Moderator
- Posts: 8047
- Joined: 13. Dec 2004, 23:10
- Location: Adendorf/Lüneburg
Re: Installation successful prompt coming before actual installation completion
The CALL looks OK.
The setup.exe probably returns before the setup is finished.
I usually add a WaitUntilFileExists or WaitUntilRegKeyExists after the CALL for these scenarios.
So you can wait e.g. for the desktop link or a regkey that is created at the end of the setup.
The setup.exe probably returns before the setup is finished.
I usually add a WaitUntilFileExists or WaitUntilRegKeyExists after the CALL for these scenarios.
So you can wait e.g. for the desktop link or a regkey that is created at the end of the setup.
Last edited by Hendrik_Ambrosius on 21. Nov 2024, 11:28, edited 1 time in total.
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.
Re: Installation successful prompt coming before actual installation completion
Thank you so much for this information, it is very helpful
Who is online
Users browsing this forum: No registered users and 1 guest