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

Run .bat file installed with APPDIR

Fri May 06, 2022 10:31 am

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: 1035
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Run .bat file installed with APPDIR

Fri May 06, 2022 11:08 am

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.93KiB)Viewed 1131 times

The APPDIR value is displayed as expected:
bat file 2.png
bat file 2.png (40.42KiB)Viewed 1131 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”