View Single Post
Old 02-01-18, 04:26 PM   #30
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

Quote:
Originally Posted by sputterfish View Post
Sure we can do that, if its just a sub folder tho it would be easier to just run one file.

So lets say you run the file from the MAINDIR path you get:
Code:
C:\MAINDIR\GenericPatcher.cfg
if the other file needs to be saved below that it is easy. Example:

Code:
C:\MAINDIR\SUBDIR\NOMATTER\OptionsFileEditorViewer.cfg
Otherwise I can just make two separate files.
I think I have a small problem sputterfish.

When my SFX finishes extraction and execute your exe files, the output files are created directly in the main SH5 root directory and not where they should be, even though my installer did place them in correct subfolders.

Of course, when executed manually by mouse click, everything is OK, so I'm not really sure what is going on...Tried both with and without administration rights on my SFX TWoS installer.

Do you have any suggestions ? Maybe we could try your suggestion from above?

EDIT:
Found this on the net, maybe it's related to the mentioned problem in some way...

Quote:
If Install.bat is added to archive in a subfolder, it is necessary to specify the batch file with subfolder\Install.bat in Setup dialog of SFX options respectively the comment file. *Done that

And inside the batch file the command line cd "%~dp0" must be added at top to change current directory from target directory of extraction set by SFX module to the extracted subfolder containing the batch file.

Last edited by vdr1981; 02-01-18 at 05:31 PM.
vdr1981 is offline   Reply With Quote