You are here

Change directory before starting the application

3 posts / 0 new
Last post
3X4Portable
Offline
Last seen: 11 years 6 days ago
Joined: 2010-09-14 17:04
Change directory before starting the application

Is there any possibility to change directory (application specific directory) before launching the application?

I'm writing a launcher for an application already installed on the system in use. As I often have to change the settings (a lot of registry values) I exported them as set to files and would like to import them and then start the application automatically. So my PortableApp is not a real portable one, it's just a tool helping me to manage the different configurations.

This ... application doesn't start properly if the current directory is not set to the appropriate subfolder in %programfiles%

In a batch file I would just write

cd "%programfiles%\appldir"
"%programfiles%\appldir\appl.exe"

Is it possible to script this in NSIS?

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 10 months ago
Joined: 2007-04-15 21:08
Use the PortableApps.com Launcher

Use the PortableApps.com Launcher. Then it's setting [Launch]:WorkingDirectory.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

3X4Portable
Offline
Last seen: 11 years 6 days ago
Joined: 2010-09-14 17:04
That's it!

Thanks a lot, exactly I was looking for!

Log in or register to post comments