/build/static/layout/Breadcrumb_cap_w.png

How to update packaged application by script ?

Hello everybody,
I currently trying to find the best way to update one of the application I installed with the k1000 appliance on Windows 7. I'm talking about application than you can't keep up to date with the k1000 lunention package.
I'm interested to know how you do that's.
For now I'm trying to update an application called Total Commander using the scripting function of the k1000.
I created a script called "Total Commander update to 7.57" to uninstall the software and then install it again

Dependencies:
Totalcmd-7.57-1_setup-IHEID.exe

Task 1
Verify
Verify that the file “C:\win32app\totalcmd\TOTALCMD.exe”
On Success
Launch “C:\win32app\totalcmd\unins-Totalcmd_IHEID.exe” with params “”
Launch “$(KACE_DEPENDENCY_DIR)\Totalcmd-7.57-1_setup-IHEID.exe” with params “/S”

My script start correctly but before the software had time to uninstall the next line start and install my software again.
Is there a way to avoid this behavior ?

Thanks

0 Comments   [ + ] Show comments

Answers (4)

Posted by: darkhawktman 12 years ago
Green Belt
0
I would try running a batch file instead. Just put this in the batch file.

C:\win32app\totalcmd\unins-Totalcmd_IHEID.exe
Totalcmd-7.57-1_setup-IHEID.exe /S
Posted by: cmccracken 12 years ago
Orange Senior Belt
0
You could also try start /wait C:\win32app\totalcmd\unins-Totalcmd_IHEID.exe.

If worst comes to worst, you could add a manual wait:
ping 1.1.1.1 -n 1 -w 5000
Would wait for 5 seconds.

Casey
Posted by: GillySpy 12 years ago
7th Degree Black Belt
0
ON the "launch a program" step there is a checkbox for "wait for startup". Unless the exe is spawning another process itself and not waiting for it that would work. If it is actually an exe wrapped around another installer then try extracting the true installer and running the command for that. Use task manager to see what actually runs and wmic to see how that program was started and use that directly in your extracted package. You may also find some information out about that software here on Appdeploy.

WMIC /OUTPUT:C:\ProcessList.txt path win32_process get Caption,Processid,Commandline


Then look in the c:\processList.txt file

Or if you want a specific process name (e.g. svchost), pid, etc then something like

WMIC path win32_process get Caption,Processid,Commandline | find /I "svchost"
Posted by: tahcor 12 years ago
Yellow Belt
0
Hello everyone,
Thank you for your responses.
GillySpy in fact I'm in the situation of an exe wrapped around another installer. My exe file is in charge of launch the uninstaller (an exe file) and cleaning different things I created during the install process.
This behaviour is due to the way I've packaged my software with NSIS. Am I the only one in this situation ?
What are you using to package your software ? The way you do it, make the problem disapear ?
Thanks again for your help.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ