Installation successful prompt coming before actual installation completion

Post Reply
rshitole
Posts: 22
Joined: 09. Feb 2024, 10:26
Contact:

Installation successful prompt coming before actual installation completion

Post by rshitole » 18. Nov 2024, 21:44

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 ?

User avatar
Hendrik_Ambrosius
Moderator
Moderator
Posts: 8047
Joined: 13. Dec 2004, 23:10
Location: Adendorf/Lüneburg

Re: Installation successful prompt coming before actual installation completion

Post by Hendrik_Ambrosius » 19. Nov 2024, 14:43

Sounds like you run an external installation EXE like setup.exe.
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.

rshitole
Posts: 22
Joined: 09. Feb 2024, 10:26
Contact:

Re: Installation successful prompt coming before actual installation completion

Post by rshitole » 19. Nov 2024, 16:38

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

User avatar
Hendrik_Ambrosius
Moderator
Moderator
Posts: 8047
Joined: 13. Dec 2004, 23:10
Location: Adendorf/Lüneburg

Re: Installation successful prompt coming before actual installation completion

Post by Hendrik_Ambrosius » 20. Nov 2024, 18:53

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.
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.

rshitole
Posts: 22
Joined: 09. Feb 2024, 10:26
Contact:

Re: Installation successful prompt coming before actual installation completion

Post by rshitole » 20. Nov 2024, 19:56

Thank you so much for this information, it is very helpful 🙂

Post Reply

Return to “Packaging”

Who is online

Users browsing this forum: No registered users and 1 guest