stukdev
Posts: 2
Joined: Tue Feb 26, 2019 9:11 am

Run .bat file installed with APPDIR

Hi, i've setup a .bat in my installation folder, i need to call it with APPDIR argument, for this i use "Launch installed file"

Image

the bat is called but APPDIR is empty, why?
Liviu
Posts: 1042
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Run .bat file installed with APPDIR

Hello,

Can you please enclose the APPDIR property in quotes? It is important to enclose the paths in quotation marks (" "):
bat file.png
bat file.png (161.93 KiB) Viewed 1150 times

The APPDIR value is displayed as expected:
bat file 2.png
bat file 2.png (40.42 KiB) Viewed 1150 times

For more details, you can have a look on our "Pass parameters to the .bat file" section from the How to launch a CMD or BAT file article.

Hope this helps!

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”