put_OutputPath
Description
Sets the output path for the packed executable file. This specifies where the resulting single-file package created by BoxedApp Packer will be saved after the build process completes.
Syntax
HRESULT put_OutputPath([in] BSTR strPath);Parameters
strPath
Type: BSTR
[in] The full or relative path for the output file that will be generated when the project is built. The directory must exist before calling IBxProject::Build.
Return Value
Returns an HRESULT.
S_OKif the output path was successfully set.E_INVALIDARGif the path is invalid or empty.- Other standard COM error codes on failure.
Example
CComPtr<IBxProject> project;
if (SUCCEEDED(BxPackerApi_CreateProject(&project))) {
project->put_InputPath(CComBSTR(L"C:\\Apps\\MyApp.exe"));
project->put_OutputPath(CComBSTR(L"C:\\Packed\\MyApp_Packed.exe"));
// ... add virtual files, configure options, then build
}Remarks
- The output path determines where the packed executable or DLL will be written to disk.
- Ensure that the directory exists and that the application has write permissions.
- If a file already exists at the specified location, it may be overwritten during the build process.
- You can retrieve the current output path using
get_OutputPath.
See Also
- get_OutputPath
- BxPackerApi_CreateProject
IBxProject::Build