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
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)
Please log in to answer
Posted by:
darkhawktman
12 years ago
Posted by:
cmccracken
12 years ago
Posted by:
GillySpy
12 years ago
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"
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
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.
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.
so that the conversation will remain readable.