I just purchased this, and I think it is wonderful, but I do have a problem I hope you can help me with.
I use PureBasic in portable mode using a special application I wrote with PureBasic.
Code: Select all
fix$ = GetPathPart(ProgramFilename())
Path$ = fix$ + "PureBasic\PureBasic.exe"
Working$ = fix$ + "PureBasic\"
arg$ = ProgramParameter() + Chr(32)
Param$ = "/P " + Chr(34) + fix$ + "Preferences\PureBasic.prefs" + Chr(34) +
"/T " + Chr(34) + fix$ + "Preferences\Templates.prefs" + Chr(34) +
"/H " + Chr(34) + fix$ + "Preferences\History.db" + Chr(34) +
"/A " + Chr(34) + fix$ + "Preferences\Tools.prefs" + Chr(34) +
"/NOEXT" + Chr(34)
If Not RunProgram(Path$, arg$ + Param$, Working$)
MessageRequester("PureBasic Application Not Found..","Please be sure that PureBasic is installed in the correct location.", #PB_MessageRequester_Warning | #PB_MessageRequester_Ok)
;Result = RunProgram(Filename$ [, Parameter$, WorkingDirectory$ [, Flags [, SenderProgram]]])
EndIf
Your application, with a manual editing of its .ini file will run using relative path to find my launcher. Thus making it close to a fully functional portable companion.
however, my launcher does not know what to pass to PureBasic when it launches it via request by your application. Breaking the functionality of your applications integration with PureBasic.