command line app - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

gblorf
Posts: 1
Joined: Tue Dec 06, 2011 11:40 pm

command line app

Can anyone recommend an install strategy for a command line app? In particular, I don't know how to manage the path so users can run the app easily without specifying the full install path. I could try to update a global system path (assuming one exists), but this seems like unfriendly behavior: the path would grow with each application install if this were common practice. Or, I could provide a shortcut to a .bat file that sets the path and runs cmd.exe. But the .bat file would have to be generated at install time with the right path information. Is there a way to do this? Can I generate a file during the install that looks like

path=%path%;<application install directory pasted in here>
cmd

Or is there some better way?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: command line app

Hello and welcome to Advanced Installer forums,

Please keep in mind that appending your application install directory to path environment variable is the intended and only way to achieve this behavior in Windows OS.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”