Новый участник
Сообщения: 9
Благодарности: 0
|
Профиль
|
Отправить PM
| Цитировать
Hi and apologies for using English on the board. (You can of course answer in Russian - appreciate it!)
My archive is a directory with files (MyDir), and the executable I want to run is inside it (MyProg.exe).
This is the basic configure file:
;!@Install@!UTF-8!
RunProgram="\"MyDir\\MyProg.exe\""
GUIMode="1"
;!@InstallEnd@!
The problem is that my .exe has dependencies and has to be run from its own folder, or these dependencies fail. (It loads plugins which are expected in the current dir, but can't find them because the current running folder is the dir containing MyDir).
My first idea was to use Directory but docs say:
"
Directory: Путь к папке команды исполнения 'RunProgram' (не путать с текущей папкой).
RunProgram="notepad.exe"
Directory="C:\\Windows\\system32\\"
равнозначны
RunProgram="C:\\Windows\\system32\\notepad.exe"
"
- so it's actually not helping me to define the "current directory".
My other solution was to change the RunProgram parameter to run a batch file: RunProgram="\"MyDir\\run.bat\"" and have this inside it:
"
cd MyDir
MyProg.exe
exit
"
The program runs, but I get a console window. If I use hidcon - there is no console window but also no program window for MyProg.exe.
Any other way to solve this?
|
Отправлено: 01:56, 31-01-2015
| #1542
|