# How to package my slicer app at every day 21:00 by a script

**URL:** <https://discourse.slicer.org/t/how-to-package-my-slicer-app-at-every-day-21-00-by-a-script/25287>\
**Category:** Development\
**Created:** [September 16, 2022, 2:23am UTC](https://discourse.slicer.org/t/how-to-package-my-slicer-app-at-every-day-21-00-by-a-script/25287 "2022-09-16T02:23:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay1987](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jay1987/32/16183_2.png) [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Post date:** [September 16, 2022, 2:23am UTC](https://discourse.slicer.org/t/how-to-package-my-slicer-app-at-every-day-21-00-by-a-script/25287/1 "2022-09-16T02:23:25Z")

</div>

all i know to package slicer app is to generate PACKAGE project  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/7/e713cf577983649daf04bb25de7b59e208095fb5.png)  
is there a way to package slicer app by a script ? in that way i can package slicer app every night after work , and test Engineer can get the app every morning .

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 16, 2022, 3:02am UTC](https://discourse.slicer.org/t/how-to-package-my-slicer-app-at-every-day-21-00-by-a-script/25287/2 "2022-09-16T03:02:36Z")

</div>

On Windows, we use the built-in Task Scheduler for this.

If you want to just update Slicer and create a package then putting the two commands that build `ALL_BUILD` and `PACKAGE` targets should be sufficient.

If you want more complete solution - run all tests, report results to dashboard, build all extensions, etc. - then you can adapt the [scripts that official Slicer build machines use](https://github.com/Slicer/DashboardScripts).

---

<div class="post-metadata">

**Author:** ![jay1987](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jay1987/32/16183_2.png) [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Post date:** [September 16, 2022, 3:19am UTC](https://discourse.slicer.org/t/how-to-package-my-slicer-app-at-every-day-21-00-by-a-script/25287/3 "2022-09-16T03:19:53Z")

</div>

thanks lassoan,we will learn the scripts you suggested  
we alreay have the ALL\_BUILD and PACKAGE project, how to call the PACKAGE project in Window built-in Task Scheduler?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 16, 2022, 3:54am UTC](https://discourse.slicer.org/t/how-to-package-my-slicer-app-at-every-day-21-00-by-a-script/25287/4 "2022-09-16T03:54:11Z")

</div>

You can build the `ALL_BUILD` target with a command like this:

`"c:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Current\Bin\MSBuild.exe" ALL_BUILD.vcxproj /p:Configuration=Release`

You can put all the build commands in a .bat file and run it using the Task Scheduler. Using the Task Scheduler is straightforward and is also widely documented on the web.

---

<div class="post-metadata">

**Author:** ![jay1987](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jay1987/32/16183_2.png) [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Post date:** [September 16, 2022, 5:11am UTC](https://discourse.slicer.org/t/how-to-package-my-slicer-app-at-every-day-21-00-by-a-script/25287/5 "2022-09-16T05:11:19Z")

</div>

> [@lassoan](#):
>
> /p:Configuration=Release

thank you very much  
@lassoan it works , i think i can have a good dream tonight!
